Daily Archives: November 12, 2014

Build shellinabox for Tiny Core Linux 5.3


With this extension one can logon to remote console using a webbrowser (with ssh encryption).


1. openssl-1.0.0.tcz
2. openssl-1.0.0-dev.tcz


1. Download shellinabox source:

~$ wget http://shellinabox.googlecode.com/files/shellinabox-2.14.tar.gz

2. Extract tarball:

~$ tar xzvf shellinabox-2.14.tar.gz

3. Configure:

~$ cd shellinabox-2.14
~/shellinabox-2.14$ ./configure

4. Make:

~/shellinabox-2.14$ make

5. Install:

~/shellinabox-2.14$ make install

Create Tiny Core Linux Extension:

1. Create SSL (self signed) Certificate:

~/shellinabox-2.14$ cd ~
~$ ln -s /usr/local/etc/ssl /usr/local/ssl
~$ openssl req -new -x509 -keyout certificate.pem -out certificate.pem -days 365 -nodes

2. Create a new directory:

~$ mkdir shellinabox

3. Prepare sub directories:

~$ mkdir -p shellinabox/usr/local/bin
~$ mkdir -p shellinabox/usr/local/etc/ssl/certs
~$ mkdir -p shellinabox/usr/local/share/doc
~$ mkdir -p shellinabox/usr/local/share/man/man1

4. Copy files and directories into newly created directories:

~$ cp /usr/local/bin/shellinaboxd shellinabox/usr/local/bin/.
~$ mv certificate.pem shellinabox/usr/local/etc/ssl/certs/.
~$ cp -R /usr/local/share/doc/shellinabox shellinabox/usr/local/share/doc/.
~$ cp /usr/local/share/man/man1/shellinaboxd.1 shellinabox/usr/local/share/man/man1/.

5. Create extension module:

  ~$ mksquashfs shellinabox shellinabox.tcz


1. Copy shellinabox.tcz into directory /mnt/sda1/tce/optional/

2. Make shellinabox to be loaded on boot:

sudo echo shellinabox.tcz >> /mnt/sda1/tce/onboot.lst

3. Add line “shellinaboxd -c /usr/local/etc/ssl/certs -s /:LOGIN” to the end of file “/opt/bootlocal.sh”

   or execute this command:

sudo echo "shellinaboxd -c /usr/local/etc/ssl/certs -s /:LOGIN" >> /opt/bootlocal.sh

4. Reboot the system and shellinabox should start automatically at boot time.

5. Connect shellinabox using webbrowser from other computer: <tiny-core-linux-ip-address>:4200