Install Shell In a Box

This article illustrates how to install Shell In A Box on your Acme Board to have access to Linux command line from the web interface.

Shell In A Box is a program create by Markus Gutschke that implements an in-browser command line shell. It works on any JavaScript and CSS enabled web browser.

Installing it on your Linux board you can get the access to the command prompt directly from web without any needs to install terminal software on your PC.

Installing Shell In A Box

From the Acme board command line install the shellinabox debian package by typing:

~# apt-get update
~# apt-get install shellinabox 

When finished edit the file /etc/default/shellinabox by changing this line:

SHELLINABOX_ARGS="-s/:LOGIN -t --no-beep"

then restart the Shell In A Box daemon typing:

~# /etc/init.d/shellinabox restart

Create an user for the first login:

~# adduser acme
...

Open your browser on http://board_ip_address:4200 and see the prompt Login via web.

Use the acme user to login and then if you need root privileges change to root by typing:

~# su
...

Troubleshooting

Could happen that the terminal text remain in a single line. In this case use this CSS file

Save this CSS file in /etc/shellinabox/:

Change this line in /etc/default/shellinabox:

SHELLINABOX_ARGS="-s/:LOGIN -t  --no-beep --static-file=styles.css:/etc/shellinabox/shellinabox.css"

Then restart shellinabox:

~# /etc/init.d/shellinabox restart

Related links