Announcement

Collapse
No announcement yet.

Shell in the Box for Linux

Collapse
X
 
  • 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:

    check_passwd.rpi
    check_passwd.386

    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.

    [ATTACH]63183[/ATTACH]

    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

    Code:
    # Should shellinaboxd start automatically
    SHELLINABOX_DAEMON_START=1
    
    # TCP port that shellinboxd's webserver listens on
    SHELLINABOX_PORT=6175
    
    # specify the IP address of a destination SSH server
    SHELLINABOX_ARGS="--o-beep -s /:SSH:192.168.244.164"
    
    # if you want to restrict access to shellinaboxd from localhost only
    # SHELLINABOX_ARGS="--o-beep -s /:SSH:192.168.244.164 --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.
    SHELLINABOX_ARGS="--no-beep"
    
    # 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 192.168.244.164 is my Homeseer Lite IP. Change yours accordingly.

    Configure a Homeseer Link to use shellinabox:

    [ATTACH]63185[/ATTACH]

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

    [ATTACH]63186[/ATTACH]
    Last edited by Pete; September 4th, 2017, 06:01 AM.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU - Mono 6.00
    Homeseer Zee2 (Lite) - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.00

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation.
Working...
X