You are here: Home / Debian GNU/Linux / System / Software / Install Glances on Debian

Install Glances on Debian

by Pierre-Yves Landuré last modified Aug 16, 2018 08:33

Glances is a local monitoring software that displays various statistics of the system state. This post ease its installation on Debian.

This how-to is tested on:

  • Debian 7.0 Wheezy
  • Ubuntu 13.10 Saucy Salamander

This how-to is tested with theses Glances' versions:

  • 1.7.4

Installation from Debian repository

 If Glances is available in your distribution repositories, install it:

if [[ -n "$(command apt-cache pkgnames 'glances')" ]]; then
command apt-get install 'glances'
else
command echo "Glances is not available in your distribution repositories.
Please proceed with the installation from sources."
fi

Installation from sources

Environment preparation

Install the needed software:

command apt-get install 'python-dev' 'python-jinja2' 'python-psutil' \
'python-setuptools' 'hddtemp' 'python-pip' 'lm-sensors'

Detect the hardware sensors available on your system:

command sensors-detect

Note: You can additionnaly install software dependencies not available in Debian repositories:

# command pip install 'batinfo' 'pysensors'

Software installation

Install the software with pip:

command pip install 'Glances'

Glance is now available on the system:

command glances

Upgrades

Upgrade the software with:

command pip install --upgrade 'Glances'

Thanks