HASS.IO and installing linux commands

So I have been running HASSIO on Hyper-V for some time, and now starting to look at building up the system to do some stuff, other than turn lights on and off…

I can SSH to the host, but for the life of me I cant get anything to run on the command line… Things like, the apt-get command, for example to install things like NMAP…

_bash keeps coming up with the :command not found error…

I realise that HASS.IO is a lightweight build of linux, but my assumption is it wouldnt have this sort of thing stripped out…

Anyone able to give some basic advice, so I can get someone please?

I have installed the NMAP Tracker on HA, but its not listing anything being found… I have found ARP in /sbin, but nmap isnt there, so my guess is that I need to get nmap installed for the tracker to fire up…

HAOS is a locked down OS that is not meant for being meddled with.
First your normal SSH is probably for an addon in a docker container and not for the HAOS in another docker container.
There is a way to get to the right docker container with HAOS.

Secondly know that HAOS use an overlay filesystem, which means changes might get lost on a reboot.
Likewise an update of HAOS might also rewind any changes you made.

The NMAP Tracker is an Integration. Any time you see the term “Integration” it means that it is running in what is called HA Core. For your installation, HA Core runs in its own Docker container and already has the command nmap available for it to use.

Once you have the NMAP Tracker integration running, you should see devices that nmap found. You can see these the UI->System->Integration, click on NMAP Integration and you should see X entities, click on this to see the entities that nmap actually found. If there are no entities, then I suggest playing around with the NMAP Tracker Integration’s configuration.

If you are using a SSH AddOn to SSH into HA, be aware that it, like any AddOn, runs in its own Docker Container which has its own set of commands available to it (sometimes fewer, sometime more commands than HA Core). It can be confusing to users because it looks like they have SSH’d into HA’s linux shell, when all they have done is SSH’d into the AddOn’s shell.