<commit_before>#!/bin/bash

cd $HOME

mkdir -p shellinaboxd_install

cd shellinaboxd_install

SHELL_INSTALL_HOME=`pwd`
shellinaboxfile=shellinabox-2.14.tar.gz
shellinaboxlocation=${SHELL_INSTALL_HOME}/${shellinaboxfile}
shellinaboxdir=`basename ${shellinaboxfile} .tar.gz`

/usr/bin/wget -O${shellinaboxlocation} http://shellinabox.googlecode.com/files/${shellinaboxfile} #2>&1 # &>/dev/null
echo Downloaded shellinabox.

if [ -f  "${shellinaboxlocation}" ]; then
    /bin/tar xfz ${shellinaboxlocation} #2>&1 # &>/dev/null 
    echo Uncompressed and untared shellinabox.
else
    echo File not found.
fi

echo "
./configure;make;make install
"

cd ${SHELL_INSTALL_HOME}/${shellinaboxdir} #2>&1 #&>/dev/null

echo "---
 shellinabox/vt100.jspp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp
index 7a72d0c..578a1b6 100755
--- a/shellinabox/vt100.jspp
+++ b/shellinabox/vt100.jspp
@@ -2898,10 +2898,10 @@ VT100.prototype.keyDown = function(event) {
     event.keyCode == 226;
   var normalKey                 =
     alphNumKey                                   ||
-    event.keyCode ==  59 || event.keyCode ==  61 ||
+    event.keyCode >=  59 && event.keyCode <=  64 ||
     event.keyCode == 106 || event.keyCode == 107 ||
     event.keyCode >= 109 && event.keyCode <= 111 ||
-    event.keyCode >= 186 && event.keyCode <= 192 ||
+    event.keyCode >= 160 && event.keyCode <= 192 ||
     event.keyCode >= 219 && event.keyCode <= 223 ||
     event.keyCode == 252;
   try {
-- " > 0001-add-new-keyCodes-used-by-FF15.patch

echo "
patching fix for firefox 15 keyCode changes.
"

patch -p1 < 0001-add-new-keyCodes-used-by-FF15.patch

CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash #2>&1 # &>/dev/null

/usr/bin/make #2>&1 # &>/dev/null
/usr/bin/make install ##2>&1 # &>/dev/null
if [ $? -eq 0 ]; then
    echo shellinabox installed!
else
    exit -1
fi

#cd ../..
#
#/usr/bin/nohup /usr/local/bin/shellinaboxd -b -t -f beep.wav:/dev/null > /var/log/atmo/shellinaboxd.log 2>&1 &
#
echo shellinaboxd installed. To run as daemon:
echo /usr/bin/nohup /usr/local/bin/shellinaboxd -b -t -f beep.wav:/dev/null > /var/log/atmo/shellinaboxd.log 2>&1 &

exit 0<commit_msg>Allow shellinaboxd run from install<commit_after>#!/bin/bash

cd $HOME

mkdir -p shellinaboxd_install

cd shellinaboxd_install

SHELL_INSTALL_HOME=`pwd`
shellinaboxfile=shellinabox-2.14.tar.gz
shellinaboxlocation=${SHELL_INSTALL_HOME}/${shellinaboxfile}
shellinaboxdir=`basename ${shellinaboxfile} .tar.gz`

/usr/bin/wget -O${shellinaboxlocation} http://shellinabox.googlecode.com/files/${shellinaboxfile} #2>&1 # &>/dev/null
echo Downloaded shellinabox.

if [ -f  "${shellinaboxlocation}" ]; then
    /bin/tar xfz ${shellinaboxlocation} #2>&1 # &>/dev/null 
    echo Uncompressed and untared shellinabox.
else
    echo File not found.
fi

echo "
./configure;make;make install
"

cd ${SHELL_INSTALL_HOME}/${shellinaboxdir} #2>&1 #&>/dev/null

echo "---
 shellinabox/vt100.jspp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp
index 7a72d0c..578a1b6 100755
--- a/shellinabox/vt100.jspp
+++ b/shellinabox/vt100.jspp
@@ -2898,10 +2898,10 @@ VT100.prototype.keyDown = function(event) {
     event.keyCode == 226;
   var normalKey                 =
     alphNumKey                                   ||
-    event.keyCode ==  59 || event.keyCode ==  61 ||
+    event.keyCode >=  59 && event.keyCode <=  64 ||
     event.keyCode == 106 || event.keyCode == 107 ||
     event.keyCode >= 109 && event.keyCode <= 111 ||
-    event.keyCode >= 186 && event.keyCode <= 192 ||
+    event.keyCode >= 160 && event.keyCode <= 192 ||
     event.keyCode >= 219 && event.keyCode <= 223 ||
     event.keyCode == 252;
   try {
-- " > 0001-add-new-keyCodes-used-by-FF15.patch

echo "
patching fix for firefox 15 keyCode changes.
"

patch -p1 < 0001-add-new-keyCodes-used-by-FF15.patch

CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash #2>&1 # &>/dev/null

/usr/bin/make #2>&1 # &>/dev/null
/usr/bin/make install ##2>&1 # &>/dev/null
if [ $? -eq 0 ]; then
    echo shellinabox installed!
else
    exit -1
fi

cd ../..

/usr/bin/nohup /usr/local/bin/shellinaboxd -b -t -f beep.wav:/dev/null > /var/log/atmo/shellinaboxd.log 2>&1 &

#echo shellinaboxd installed. To run as daemon:
#echo /usr/bin/nohup /usr/local/bin/shellinaboxd -b -t -f beep.wav:/dev/null > /var/log/atmo/shellinaboxd.log 2>&1 &

exit 0
{'fraction_non_alphanumeric': 0.16519043401240036, 'fraction_numerical': 0.05757307351638618, 'mean_word_length': 3.102633969118983, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5547802', 'n_tokens_mistral': 1985, 'n_tokens_neox': 1774, 'n_words': 345}