EanderAlx.org

Linux, Virtualization and whatever I find interesting ...

User Tools


Site Tools


linux:shellinabox

Shell in a box for Archlinux

An AJAX web-based fullscreen terminal emulator where you can mark an copy text (depending on your browser, according to my tests opera is optimal). Forget Ajaxterm! You find shellinabox in the AUR.

Installation

Using aurget

aurget -S shellinabox

or manual

wget https://aur.archlinux.org/packages/sh/shellinabox/shellinabox.tar.gz
tar xvzf shellinabox.tar.gz
cd shellinabox 
wget http://shellinabox.googlecode.com/files/shellinabox-2.14.tar.gz
# you need several dependings
makepkg
sudo pacman -U shellinabox-2.14-2-x86_64.pkg.tar.xz

Configuration

To get an ssh login on the machine shellinabox is running on use –service=/:SSH. I had it running with login service but don't get it again.

edit /etc/conf.d/shellinaboxd and set the options

--background=/var/run/shellinaboxd.pid --port=8888 --service=/:SSH --css=/usr/share/doc/shellinabox/white-on-black.css --cert=/tmp/

or other if you like

Perhaps you want to use –localhost-only so only your HTTP Proxy could access the web-interface. Otherwise on a system with an public IP everyone could connect to the web-interface.

The certificate in tmp because shellinabox create the certificate himself while running as nobody so it needs a place where it could write

Enable and start service

systemctl enable shellinaboxd
systemctl start shellinaboxd

Additional infos

Path to css files

./usr/share/doc/shellinabox/white-on-black.css
./usr/share/doc/shellinabox/black-on-white.css
./usr/share/doc/shellinabox/color.css
./usr/share/doc/shellinabox/monochrome.css

Comments

I could build shellinabox with your manual way. But after installing via Pacman, there is no file /etc/conf.d/shellinaboxd. I i generate this file manulay and enter your content, this file seems to be ignored by shellinabox, if i run it. However, i can start shellinabox with the Options you specified on Commandline. Also i have a problem to use shellinabox as a service. If try to start it with “systemctl start shellinaboxd”, i get the message “Failed to start shellinaboxd.service: Unit shellinaboxd.service failed to load: No such file or directory.”. Could you please update your HowTo a little bit?

PTW: The Url to https://aur.archlinux.org/packages/sh/shellinabox/shellinabox.tar.gz is outdated.

1 |
Arch User
| 10.01.2016 12:30 | reply
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
linux/shellinabox.txt · Last modified: 29.03.2013 14:56 by eanderalx