Monthly Archives: November 2014

Build shellinabox for Tiny Core Linux 5.3

Introduction:

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

Prerequisites:

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

Build:

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

Install:

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

Enjoy!

Build x11vnc (VNC Server) for Tiny Core Linux 5.3

Introduction:

With this VNC Server one can control real x-display desktop remotely.

Prerequisites:

1. Xorg-7.7-dev.tcz
2. compiletc.tcz
3. squashfs-tools-4.x.tcz
4. openssl-1.0.0-dev.tcz

Build:

1. Download x11vnc source:

~$ wget http://downloads.sourceforge.net/project/libvncserver/x11vnc/0.9.13/x11vnc-0.9.13.tar.gz

2. Extract tarball:

~$ tar xzvf x11vnc-0.9.13.tar.gz

3. Configure:

~$ cd x11vnc-0.9.13
~/x11vnc-0.9.13$ ./configure

4. Make:

~/x11vnc-0.9.13$ make

5. Install:

~/x11vnc-0.9.13$ make install

Create Tiny Core Linux Extension:

1. Create a new directory:

~/x11vnc-0.9.13$ cd ~
~$ mkdir x11vnc

2. Prepare sub directories:

~$ mkdir -p x11vnc/usr/local/bin
~$ mkdir -p x11vnc/usr/local/man/man1
~$ mkdir -p x11vnc/usr/local/share/applications

3. Copy files and directories into newly created directories:

~$ cp /usr/local/bin/x11vnc x11vnc/usr/local/bin/.
~$ cp /usr/local/man/man1/x11vnc.1 x11vnc/usr/local/man/man1/.
~$ cp /usr/local/share/applications/x11vnc.desktop x11vnc/local/share/applications/.
~$ cp -R /usr/local/share/x11vnc x11vnc/local/share/.

4. Create extension module:

~$ mksquashfs x11vnc x11vnc.tcz

Install:

1. Copy x11vnc.tcz to /mnt/sda1/tce/optional/.
2. Copy startvnc to /home/tc/.X.d/.
3. Reboot.

Enjoy!