Skip to content

Instantly share code, notes, and snippets.

@jakelee8
Last active July 12, 2016 14:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakelee8/5cbbd28da508421603fb0057c0bcea4b to your computer and use it in GitHub Desktop.
Save jakelee8/5cbbd28da508421603fb0057c0bcea4b to your computer and use it in GitHub Desktop.
Glances system dashboard for Linux

http://askubuntu.com/a/293447

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment