All commands are run as root.
apt install build-essential glances python3-pip
# use py3sensors because pysensors doesn't work on Python 3.x
pip3 install https://bitbucket.org/gleb_zhulik/py3sensors/get/0cf96f4e2cfe.zip
change -s
(server) to -w
(web) and add -1b
for per-cpu mode, network rate in bytes per second
/etc/default/glances
# Default is to launch glances with '-s' option.
DAEMON_ARGS="-1bw"
# Change to 'true' to have glances running at startup
RUN="true"
/etc/avahi/services/glances.service
<?xml version="1.0" standalone="no"?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_http._tcp</type>
<port>61208</port>
</service>
</service-group>
The dashboard is now accessible at localhost:61208
locally and, if your firewall allows, remotely.