No announcement yet.

Shell in the Box for Linux

  • Filter
  • Time
  • Show
Clear All
new posts

  • Shell in the Box for Linux

    Here utilize the built in Linux command line tools.

    Just note that there is an Arm and Intel based tool in the Homeseer directory called check_passwd. I have attached both at the end of this post labeled:


    Rename them to check_passwd depending on what you are running Homeseer on. Note that there is two versions; one included with the Homeseer lite build (ARM) and one included with the Homeseer 3 for Linux build (Intel)

    Note that this has been documented here on the forum and this is just a repost. It is a bit limited.


    I have added another mechanism for a remote shell called "shell in a box". It is very easy to install.
    There are two of these programs. Base shellinabox is part of Ubuntu/Raspberian these days.

    There is a fork for Shellinabox which also provides an explorer like interface which I will try to get working here and post instructions.

    1 - sudo apt update
    2 - sudo apt-get shellinabox

    The installation will create an autostart script, shell configuration file in the etc directory and a subdirectory called /etc/shellinabox.

    I have edited the configuration file /etc/default/shellinabox as follows.

    sudo nano /etc/default/shellinabox

    Then restart the shellinabox daemon:

    sudo invoke-rc.d shellinabox restart

    # Should shellinaboxd start automatically
    # TCP port that shellinboxd's webserver listens on
    # specify the IP address of a destination SSH server
    SHELLINABOX_ARGS="--o-beep -s /:SSH:"
    # if you want to restrict access to shellinaboxd from localhost only
    # SHELLINABOX_ARGS="--o-beep -s /:SSH: --localhost-only"
    # Parameters that are managed by the system and usually should not need
    # changing:
    # SHELLINABOX_DATADIR=/var/lib/shellinabox
    # SHELLINABOX_USER=shellinabox
    # SHELLINABOX_GROUP=shellinabox
    # Any optional arguments (e.g. extra service definitions).  Make sure
    # that that argument is quoted.
    #   Beeps are disabled because of reports of the VLC plugin crashing
    #   Firefox on Linux/x86_64.
    # Additional examples with custom options:
    # Fancy configuration with right-click menu choice for black-on-white:
    OPTS="--user-css Normal:+white-on-black.css,Reverse:-black-on-white.css --disable-ssl-menu -s /:LOGIN"
    Note: I have changed port to 6175. Note the IP of is my Homeseer Lite IP. Change yours accordingly.

    Configure a Homeseer Link to use shellinabox:


    Afterwards you can go to a shell prompt. Right clicking on the window changes some stuff.

    Last edited by Pete; September 4th, 2017, 06:01 AM.
    - Pete

    Auto mator
    Homeseer 3 Pro - (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.8X
    Homeseer Zee2 (Lite) - (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.8X
    HS4 pro - - Ubuntu 18.04/W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.8X

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant