Ubuntu- Shell Access in Browser

Ubuntu- Shell Access in Browser

Hello Everyone, In this Post we will discuss how to install and configure web based terminal in Ubuntu 12.04 with the help of shellinabox.

Before proceeding, we assume that you have installed Ubuntu base system. If not, then you can use this link http://how2install.in/index.php/ubuntu-12-10-installation/ for basic system installation.

Simply We need ssh & web service running before proceeding.

Afterwards we login to the system & start with this process.

  • In First step we have to update apt source file, Open it with any text-editor
root@ubuntu:~# vim /etc/apt/sources.list

& then add these two lines in this file

deb http://us.archive.ubuntu.com/ubuntu/ precise universe

deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe






 Then Save this file & Exit.

  • In Second step we have to Update the base system
root@ubuntu:~# apt-get update

It will update the base system.
  • In Third step we will download & install shellinabox package
You can use any of below links as per your system architecture:-

For 32-bit
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/shellinabox/shellinabox_2.14-1_i386.deb For 64-bit wget http://archive.ubuntu.com/ubuntu/pool/universe/s/shellinabox/shellinabox_2.14-1_amd64.deb

I am having 64-bit System, so i used the 2nd option






 It will download the required .deb package. Just enter below command to install the same.

root@ubuntu:~# dpkg -i shellinabox_2.14-1_amd64.deb
  • In Fourth step, we will check the service status
root@ubuntu:~# /etc/init.d/shellinabox status
Shell In A Box Daemon is running

root@ubuntu:~# /etc/init.d/shellinabox stop

root@ubuntu:~# /etc/init.d/shellinabox status
Shell In A Box Daemon is not running

root@ubuntu:~# /etc/init.d/shellinabox start root@ubuntu:~# /etc/init.d/shellinabox status Shell In A Box Daemon is running root@ubuntu:~#





It indicates the service is running without any error.

  • In Last step, we’ll check the shell access using web-browser

Type System ip address or  hostname to get access, I am having system’s IP address, so i  typed in web-browser

By-default shellinabox works on port no. 4200, we can also change it  but that’s a later part.







Enter username & password to login to shell.







 You can change the port no. by modifying few parameters in configuration file located under /etc/default/signalinabox 

Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.