How to install gcc and Glances on Home Assistant OS

Hi all, newbie here.

I’m trying to get Glances installed on a Home Assistant OS running on a Raspi 4.

I tried the commonly suggested script:
curl -L https://bit.ly/glances | /bin/bash

But while it is installing psutil I get an error saying gcc is not installed:
error: command 'gcc' failed: No such file or directory

How to proceed?
I tried apt and yum in order to install gcc, but found that they are not working either. I quess the store is the package manager we get on hassos?

Thanks in advance.

If you are running Home Assistant OS then Glances is available as an addon.

Where did you see that advice?

1 Like

People tend to mix up the various options for HA like Docker, supervised or HA OS…

With HA OS the concept behind is that you DON‘T install any components like GCC or additional software but have a managed and updated stable operating system for HA. And the only way to add software is through the Add-On-Store (and HACS, if you want to go down that road…)

Thanks, this cleared it up for me. I managed to get it running, nothing appeared on dashboard, but I can see Glances web ui through the add-on page. Still need to figure later how to get some of that data showing on dashboard and history, but this is enough for today :slight_smile:

From the Glances addon docs: https://github.com/hassio-addons/addon-glances/blob/3b73f621d899a8889ebf554da8de5c6724c4a1e7/glances/DOCS.md#adding-glances-as-a-sensor-into-home-assistant

If all you want is information about your system CPU, memory use, and the like then this integration uses far less resources:

Glances spews out an enormous amount of information.

Thanks. I saw that earlier, but only took a glance at it.
Later on when fiddling with the HA I didn’t find such an addon or integration.
But now I (think I) understand it is built-in.

So Glances without the sensor is good for… glancing at it, through the web ui? If I don’t add the Glances sensor / integration, I can still have a look at it but won’t get a history or “black box data” out after a possible crash.

I just changed to a USB SSD drive on my raspi, in order to make the system more stable. With SD card it lasted only about a week until crash. Good SD card, official supply and all. In case it will still crash at one point, I’d like to see what the circumstances were. But seems system monitor will give me enough info.

I posted this in the HA Facebook group as well - system monitor does not show real CPU usage.


top command is showing that CPU use is 2x LESS than that shown in system monitor in HA