Installing Glances on Linux

What is Glances System Monitoring?

Glances is a really cool Linux monitoring tool written in Python and available on nearly all Linux Distributions. The project’s full title is Glances – An Eye on Your System, and it is a popular Github project written by NicoLargo and maintained by the community.

It is a great tool for monitoring a server. It gives detailed information about CPU, MEM, DISK, and server performance; it can also be hosted as a webserver, which is a great feature, allowing system administrators to give developers real-time monitoring of a platform during upgrades or peak season.

Click here for the GitHub site.

How to install Glances on CentOS / Red Hat / Rocky Linux

Here is a quick guide to installing Glances in CentOS 7.

Step 1 – Install the Pre-Reqs

It is recommended to complete a yum update before proceeding; this ensures that any dependencies are at the right level.

ShellScript
yum update -y

Next install wget if you do not already have it

ShellScript
yum install wget -y

Step 2 – Add the Fedora Repo That Contains Glances

Add the fedora repo to CentOS – this is not a default repository so you have to manually add it.

ShellScript
wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

Install the package with RPM.

ShellScript
rpm -ivh epel-release-7-11.noarch.rpm

Step 3 – Install glances

ShellScript
yum install glances -y

Glances

Step 4 – Start Glances

ShellScript
glances

How to install Glances on Ubuntu / Debian

Step 1: Update the Package List

Before installing any new software, it’s a good practice to update the package list to ensure you are installing the latest version. Open a terminal and run the following command:

Bash
sudo apt update -y

Step 2: Install Glances

Next, install Glances using the following command:

Bash
sudo apt install glances -y

You should see output like this:

Bash
sudo apt install glances -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-6.5.0-14-generic linux-hwe-6.5-headers-6.5.0-14 linux-image-6.5.0-14-generic
  linux-modules-6.5.0-14-generic linux-modules-extra-6.5.0-14-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  blt fonts-lyx libboost-dev libboost1.74-dev libjs-jquery-ui liblbfgsb0 libopenblas-dev
  libopenblas-pthread-dev libopenblas0 libopenblas0-pthread libtk8.6 libxsimd-dev lm-sensors
  python-matplotlib-data python3-appdirs python3-attr python3-beniget python3-bottle python3-brotli
  python3-bs4 python3-cycler python3-decorator python3-defusedxml python3-docker python3-fonttools
  python3-fs python3-future python3-gast python3-influxdb python3-kiwisolver python3-lxml
  python3-lz4 python3-matplotlib python3-mpmath python3-numpy python3-pil.imagetk python3-ply
  python3-psutil python3-pycryptodome python3-pysmi python3-pysnmp4 python3-pystache
  python3-pythran python3-scipy python3-soupsieve python3-sympy python3-tk python3-ufolib2
  python3-unicodedata2 python3-websocket tk8.6-blt2.5 unicode-data
Suggested packages:
  blt-demo glances-doc python3-pynvml libboost-doc libboost1.74-doc libboost-atomic1.74-dev
  libboost-chrono1.74-dev libboost-container1.74-dev libboost-context1.74-dev
  libboost-contract1.74-dev libboost-coroutine1.74-dev libboost-date-time1.74-dev
  libboost-exception1.74-dev libboost-fiber1.74-dev libboost-filesystem1.74-dev
  libboost-graph1.74-dev libboost-graph-parallel1.74-dev libboost-iostreams1.74-dev
  libboost-locale1.74-dev libboost-log1.74-dev libboost-math1.74-dev libboost-mpi1.74-dev
  libboost-mpi-python1.74-dev libboost-numpy1.74-dev libboost-program-options1.74-dev
  libboost-python1.74-dev libboost-random1.74-dev libboost-regex1.74-dev
  libboost-serialization1.74-dev libboost-stacktrace1.74-dev libboost-system1.74-dev
  libboost-test1.74-dev libboost-thread1.74-dev libboost-timer1.74-dev
  libboost-type-erasure1.74-dev libboost-wave1.74-dev libboost1.74-tools-dev libmpfrc++-dev
  libntl-dev libboost-nowide1.74-dev libjs-jquery-ui-docs tk8.6 libxsimd-doc fancontrol read-edid
  i2c-tools python-attr-doc python-cycler-doc python-future-doc python-lxml-doc dvipng
  fonts-staypuft inkscape ipython3 python-matplotlib-doc python3-cairocffi python3-gobject
  python3-pyqt5 python3-sip python3-tornado texlive-extra-utils texlive-latex-extra
  python-mpmath-doc python3-gmpy2 gfortran python-numpy-doc python3-pytest python-pil-doc
  python-ply-doc python-psutil-doc python-scipy-doc texlive-fonts-extra python-sympy-doc tix
  python3-tk-dbg
The following NEW packages will be installed
  blt fonts-lyx glances libboost-dev libboost1.74-dev libjs-jquery-ui liblbfgsb0 libopenblas-dev
  libopenblas-pthread-dev libopenblas0 libopenblas0-pthread libtk8.6 libxsimd-dev lm-sensors
  python-matplotlib-data python3-appdirs python3-attr python3-beniget python3-bottle python3-brotli
  python3-bs4 python3-cycler python3-decorator python3-defusedxml python3-docker python3-fonttools
  python3-fs python3-future python3-gast python3-influxdb python3-kiwisolver python3-lxml
  python3-lz4 python3-matplotlib python3-mpmath python3-numpy python3-pil.imagetk python3-ply
  python3-psutil python3-pycryptodome python3-pysmi python3-pysnmp4 python3-pystache
  python3-pythran python3-scipy python3-soupsieve python3-sympy python3-tk python3-ufolib2
  python3-unicodedata2 python3-websocket tk8.6-blt2.5 unicode-data
0 to upgrade, 53 to newly install, 0 to remove and 3 not to upgrade.
Need to get 69.1 MB of archives.
After this operation, 463 MB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-defusedxml all 0.7.1-1 [43.2 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-future all 0.18.2-5ubuntu0.1 [344 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-psutil amd64 5.9.0-1build1 [158 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 glances all 3.2.4.2+dfsg-1 [262 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 libtk8.6 amd64 8.6.12-1build1 [784 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-4.1build2 [643 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 blt amd64 2.5.3+dfsg-4.1build2 [4,838 B]
Get:8 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 fonts-lyx all 2.3.6-1 [159 kB]
Get:9 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 libboost1.74-dev amd64 1.74.0-14ubuntu3 [9,609 kB]
Get:10 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 libboost-dev amd64 1.74.0.3ubuntu7 [3,490 B]
Get:11 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 libjs-jquery-ui all 1.13.1+dfsg-1 [253 kB]
Get:12 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas0-pthread amd64 0.3.20+ds-1 [6,803 kB]
Get:13 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 liblbfgsb0 amd64 3.0+dfsg.3-10 [29.9 kB]
Get:14 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas0 amd64 0.3.20+ds-1 [6,098 B]
Get:15 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas-pthread-dev amd64 0.3.20+ds-1 [4,634 kB]
Get:16 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas-dev amd64 0.3.20+ds-1 [18.6 kB]
Get:17 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 libxsimd-dev amd64 7.6.0-2 [108 kB]
Get:18 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python-matplotlib-data all 3.5.1-2build1 [2,942 kB]
Get:19 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-appdirs all 1.4.4-2 [11.4 kB]
Get:20 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-attr all 21.2.0-1 [44.0 kB]
Get:21 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-gast all 0.5.2-2 [9,394 B]
Get:22 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-beniget all 0.4.1-2 [9,904 B]
Get:23 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-bottle all 0.12.19-1+deb11u1build0.22.04.1 [42.2 kB]
Get:24 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-brotli amd64 1.0.9-2build6 [319 kB]
Get:25 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-soupsieve all 2.3.1-1 [33.0 kB]
Get:26 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-bs4 all 4.10.0-2 [79.1 kB]
Get:27 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-cycler all 0.11.0-1 [8,156 B]
Get:28 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-decorator all 4.4.2-0ubuntu1 [10.3 kB]
Get:29 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-websocket all 1.2.3-1 [34.7 kB]
Get:30 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-docker all 5.0.3-1 [89.3 kB]
Get:31 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-numpy amd64 1:1.21.5-1ubuntu22.04.1 [3,467 kB]
Get:32 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-ply all 3.11-5 [47.5 kB]
Get:33 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-pythran amd64 0.10.0+ds2-1 [423 kB]
Get:34 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-scipy amd64 1.8.0-1exp2ubuntu1 [14.7 MB]
Get:35 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-ufolib2 all 0.13.1+dfsg1-1 [32.2 kB]
Get:36 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-mpmath all 1.2.1-2 [419 kB] 
Get:37 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-sympy all 1.9-1 [4,312 kB]  
Get:38 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-fs all 2.4.12-1 [84.9 kB]   
Get:39 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-lxml amd64 4.8.0-1build1 [1,150 kB]
Get:40 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-lz4 amd64 3.1.3+dfsg-1build3 [33.3 kB]
Get:41 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-unicodedata2 amd64 14.0.0+ds-8 [376 kB]
Get:42 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 unicode-data all 14.0.0-1.1 [8,206 kB]
Get:43 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-fonttools amd64 4.29.1-2build1 [810 kB]
Get:44 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-influxdb all 5.3.1-2 [52.5 kB]
Get:45 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-kiwisolver amd64 1.3.2-1build1 [48.0 kB]
Get:46 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-tk amd64 3.10.8-1~22.04 [110 kB]
Get:47 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pil.imagetk amd64 9.0.1-1ubuntu0.2 [9,616 B]
Get:48 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-matplotlib amd64 3.5.1-2build1 [5,937 kB]
Get:49 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-pycryptodome amd64 3.11.0+dfsg1-3ubuntu0.1 [1,029 kB]
Get:50 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-pysmi all 0.3.2-2 [49.0 kB]     
Get:51 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 python3-pysnmp4 all 4.4.12-2 [159 kB]   
Get:52 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-pystache all 0.6.0-1 [33.9 kB]
Get:53 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 lm-sensors amd64 1:3.6.0-7ubuntu1 [91.0 kB]
Fetched 69.1 MB in 13s (5,438 kB/s)                                                                 
Extract templates from packages: 100%
Selecting previously unselected package python3-defusedxml.
(Reading database ... 284370 files and directories currently installed.)
Preparing to unpack .../00-python3-defusedxml_0.7.1-1_all.deb ...
Unpacking python3-defusedxml (0.7.1-1) ...
Selecting previously unselected package python3-future.
Preparing to unpack .../01-python3-future_0.18.2-5ubuntu0.1_all.deb ...
Unpacking python3-future (0.18.2-5ubuntu0.1) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../02-python3-psutil_5.9.0-1build1_amd64.deb ...
Unpacking python3-psutil (5.9.0-1build1) ...
Selecting previously unselected package glances.
Preparing to unpack .../03-glances_3.2.4.2+dfsg-1_all.deb ...
Unpacking glances (3.2.4.2+dfsg-1) ...
Selecting previously unselected package libtk8.6:amd64.
Preparing to unpack .../04-libtk8.6_8.6.12-1build1_amd64.deb ...
Unpacking libtk8.6:amd64 (8.6.12-1build1) ...
Selecting previously unselected package tk8.6-blt2.5.
Preparing to unpack .../05-tk8.6-blt2.5_2.5.3+dfsg-4.1build2_amd64.deb ...
Unpacking tk8.6-blt2.5 (2.5.3+dfsg-4.1build2) ...
Selecting previously unselected package blt.
Preparing to unpack .../06-blt_2.5.3+dfsg-4.1build2_amd64.deb ...
Unpacking blt (2.5.3+dfsg-4.1build2) ...
Selecting previously unselected package fonts-lyx.
Preparing to unpack .../07-fonts-lyx_2.3.6-1_all.deb ...
Unpacking fonts-lyx (2.3.6-1) ...
Selecting previously unselected package libboost1.74-dev:amd64.
Progress: [  8%] [####................................................] ..
Unpacking libboost1.74-dev:amd64 (1.74.0-14ubuntu3) ...
Selecting previously unselected package libboost-dev:amd64.
Preparing to unpack .../09-libboost-dev_1.74.0.3ubuntu7_amd64.deb ...
Unpacking libboost-dev:amd64 (1.74.0.3ubuntu7) ...
Selecting previously unselected package libjs-jquery-ui.
Preparing to unpack .../10-libjs-jquery-ui_1.13.1+dfsg-1_all.deb ...
Unpacking libjs-jquery-ui (1.13.1+dfsg-1) ...
Selecting previously unselected package libopenblas0-pthread:amd64.
Preparing to unpack .../11-libopenblas0-pthread_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas0-pthread:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package liblbfgsb0:amd64.
Preparing to unpack .../12-liblbfgsb0_3.0+dfsg.3-10_amd64.deb ...
Unpacking liblbfgsb0:amd64 (3.0+dfsg.3-10) ...
Selecting previously unselected package libopenblas0:amd64.
Preparing to unpack .../13-libopenblas0_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas0:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libopenblas-pthread-dev:amd64.
Preparing to unpack .../14-libopenblas-pthread-dev_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas-pthread-dev:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libopenblas-dev:amd64.
Preparing to unpack .../15-libopenblas-dev_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas-dev:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libxsimd-dev:amd64.
Preparing to unpack .../16-libxsimd-dev_7.6.0-2_amd64.deb ...
Unpacking libxsimd-dev:amd64 (7.6.0-2) ...
Selecting previously unselected package python-matplotlib-data.
Preparing to unpack .../17-python-matplotlib-data_3.5.1-2build1_all.deb ...
Unpacking python-matplotlib-data (3.5.1-2build1) ...
Selecting previously unselected package python3-appdirs.
Preparing to unpack .../18-python3-appdirs_1.4.4-2_all.deb ...
Unpacking python3-appdirs (1.4.4-2) ...
Selecting previously unselected package python3-attr.
Preparing to unpack .../19-python3-attr_21.2.0-1_all.deb ...
Unpacking python3-attr (21.2.0-1) ...
Selecting previously unselected package python3-gast.
Preparing to unpack .../20-python3-gast_0.5.2-2_all.deb ...
Unpacking python3-gast (0.5.2-2) ...
Selecting previously unselected package python3-beniget.
Preparing to unpack .../21-python3-beniget_0.4.1-2_all.deb ...
Unpacking python3-beniget (0.4.1-2) ...
Selecting previously unselected package python3-bottle.
Preparing to unpack .../22-python3-bottle_0.12.19-1+deb11u1build0.22.04.1_all.deb ...
Unpacking python3-bottle (0.12.19-1+deb11u1build0.22.04.1) ...
Selecting previously unselected package python3-brotli.
Preparing to unpack .../23-python3-brotli_1.0.9-2build6_amd64.deb ...
Unpacking python3-brotli (1.0.9-2build6) ...
Selecting previously unselected package python3-soupsieve.
Preparing to unpack .../24-python3-soupsieve_2.3.1-1_all.deb ...
Unpacking python3-soupsieve (2.3.1-1) ...
Selecting previously unselected package python3-bs4.
Preparing to unpack .../25-python3-bs4_4.10.0-2_all.deb ...
Unpacking python3-bs4 (4.10.0-2) ...
Selecting previously unselected package python3-cycler.
Preparing to unpack .../26-python3-cycler_0.11.0-1_all.deb ...
Unpacking python3-cycler (0.11.0-1) ...
Selecting previously unselected package python3-decorator.
Preparing to unpack .../27-python3-decorator_4.4.2-0ubuntu1_all.deb ...
Unpacking python3-decorator (4.4.2-0ubuntu1) ...
Selecting previously unselected package python3-websocket.
Preparing to unpack .../28-python3-websocket_1.2.3-1_all.deb ...
Unpacking python3-websocket (1.2.3-1) ...
Selecting previously unselected package python3-docker.
Preparing to unpack .../29-python3-docker_5.0.3-1_all.deb ...
Unpacking python3-docker (5.0.3-1) ...
Selecting previously unselected package python3-numpy.
Preparing to unpack .../30-python3-numpy_1%3a1.21.5-1ubuntu22.04.1_amd64.deb ...
Unpacking python3-numpy (1:1.21.5-1ubuntu22.04.1) ...
Selecting previously unselected package python3-ply.
Preparing to unpack .../31-python3-ply_3.11-5_all.deb ...
Unpacking python3-ply (3.11-5) ...
Selecting previously unselected package python3-pythran.
Preparing to unpack .../32-python3-pythran_0.10.0+ds2-1_amd64.deb ...
Unpacking python3-pythran (0.10.0+ds2-1) ...
Selecting previously unselected package python3-scipy.
Preparing to unpack .../33-python3-scipy_1.8.0-1exp2ubuntu1_amd64.deb ...
Unpacking python3-scipy (1.8.0-1exp2ubuntu1) ...
Selecting previously unselected package python3-ufolib2.
Preparing to unpack .../34-python3-ufolib2_0.13.1+dfsg1-1_all.deb ...
Unpacking python3-ufolib2 (0.13.1+dfsg1-1) ...
Selecting previously unselected package python3-mpmath.
Preparing to unpack .../35-python3-mpmath_1.2.1-2_all.deb ...
Unpacking python3-mpmath (1.2.1-2) ...
Selecting previously unselected package python3-sympy.
Preparing to unpack .../36-python3-sympy_1.9-1_all.deb ...
Unpacking python3-sympy (1.9-1) ...
Selecting previously unselected package python3-fs.
Preparing to unpack .../37-python3-fs_2.4.12-1_all.deb ...
Unpacking python3-fs (2.4.12-1) ...
Selecting previously unselected package python3-lxml:amd64.
Preparing to unpack .../38-python3-lxml_4.8.0-1build1_amd64.deb ...
Unpacking python3-lxml:amd64 (4.8.0-1build1) ...
Selecting previously unselected package python3-lz4.
Preparing to unpack .../39-python3-lz4_3.1.3+dfsg-1build3_amd64.deb ...
Unpacking python3-lz4 (3.1.3+dfsg-1build3) ...
Selecting previously unselected package python3-unicodedata2.
Preparing to unpack .../40-python3-unicodedata2_14.0.0+ds-8_amd64.deb ...
Unpacking python3-unicodedata2 (14.0.0+ds-8) ...
Selecting previously unselected package unicode-data.
Preparing to unpack .../41-unicode-data_14.0.0-1.1_all.deb ...
Unpacking unicode-data (14.0.0-1.1) ...
Selecting previously unselected package python3-fonttools.
Preparing to unpack .../42-python3-fonttools_4.29.1-2build1_amd64.deb ...
Unpacking python3-fonttools (4.29.1-2build1) ...
Selecting previously unselected package python3-influxdb.
Preparing to unpack .../43-python3-influxdb_5.3.1-2_all.deb ...
Unpacking python3-influxdb (5.3.1-2) ...
Selecting previously unselected package python3-kiwisolver.
Preparing to unpack .../44-python3-kiwisolver_1.3.2-1build1_amd64.deb ...
Unpacking python3-kiwisolver (1.3.2-1build1) ...
Selecting previously unselected package python3-tk:amd64.
Preparing to unpack .../45-python3-tk_3.10.8-1~22.04_amd64.deb ...
Unpacking python3-tk:amd64 (3.10.8-1~22.04) ...
Selecting previously unselected package python3-pil.imagetk:amd64.
Preparing to unpack .../46-python3-pil.imagetk_9.0.1-1ubuntu0.2_amd64.deb ...
Unpacking python3-pil.imagetk:amd64 (9.0.1-1ubuntu0.2) ...
Selecting previously unselected package python3-matplotlib.
Preparing to unpack .../47-python3-matplotlib_3.5.1-2build1_amd64.deb ...
Unpacking python3-matplotlib (3.5.1-2build1) ...
Selecting previously unselected package python3-pycryptodome.
Preparing to unpack .../48-python3-pycryptodome_3.11.0+dfsg1-3ubuntu0.1_amd64.deb ...
Unpacking python3-pycryptodome (3.11.0+dfsg1-3ubuntu0.1) ...
Selecting previously unselected package python3-pysmi.
Preparing to unpack .../49-python3-pysmi_0.3.2-2_all.deb ...
Unpacking python3-pysmi (0.3.2-2) ...
Selecting previously unselected package python3-pysnmp4.
Preparing to unpack .../50-python3-pysnmp4_4.4.12-2_all.deb ...
Unpacking python3-pysnmp4 (4.4.12-2) ...
Selecting previously unselected package python3-pystache.
Preparing to unpack .../51-python3-pystache_0.6.0-1_all.deb ...
Unpacking python3-pystache (0.6.0-1) ...
Selecting previously unselected package lm-sensors.
Preparing to unpack .../52-lm-sensors_1%3a3.6.0-7ubuntu1_amd64.deb ...
Unpacking lm-sensors (1:3.6.0-7ubuntu1) ...
Setting up python3-attr (21.2.0-1) ...
Setting up libboost1.74-dev:amd64 (1.74.0-14ubuntu3) ...
Setting up libopenblas0-pthread:amd64 (0.3.20+ds-1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 to provide /usr/li
b/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3 to provide /usr/
lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblas.so.0 to provide /us
r/lib/x86_64-linux-gnu/libopenblas.so.0 (libopenblas.so.0-x86_64-linux-gnu) in auto mode
Setting up python3-bottle (0.12.19-1+deb11u1build0.22.04.1) ...
Setting up python3-lz4 (3.1.3+dfsg-1build3) ...
Setting up python3-defusedxml (0.7.1-1) ...
Setting up python3-influxdb (5.3.1-2) ...
Setting up python3-unicodedata2 (14.0.0+ds-8) ...
Setting up fonts-lyx (2.3.6-1) ...
Setting up python3-pycryptodome (3.11.0+dfsg1-3ubuntu0.1) ...
Setting up libtk8.6:amd64 (8.6.12-1build1) ...
Setting up python3-ply (3.11-5) ...
Setting up python3-gast (0.5.2-2) ...
Setting up python3-psutil (5.9.0-1build1) ...
Setting up unicode-data (14.0.0-1.1) ...
Setting up python3-beniget (0.4.1-2) ...
Setting up libxsimd-dev:amd64 (7.6.0-2) ...
Setting up python3-decorator (4.4.2-0ubuntu1) ...
Setting up libjs-jquery-ui (1.13.1+dfsg-1) ...
Setting up python3-brotli (1.0.9-2build6) ...
Setting up python3-cycler (0.11.0-1) ...
Setting up python3-kiwisolver (1.3.2-1build1) ...
Setting up python3-numpy (1:1.21.5-1ubuntu22.04.1) ...
Setting up lm-sensors (1:3.6.0-7ubuntu1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lm-sensors.service  /lib/systemd/system/
lm-sensors.service.
Setting up python3-pysmi (0.3.2-2) ...
Setting up libopenblas0:amd64 (0.3.20+ds-1) ...
Setting up python3-lxml:amd64 (4.8.0-1build1) ...
Setting up libboost-dev:amd64 (1.74.0.3ubuntu7) ...
Setting up python3-future (0.18.2-5ubuntu0.1) ...
update-alternatives: using /usr/bin/python3-futurize to provide /usr/bin/futurize (futurize) in auto 
mode
update-alternatives: using /usr/bin/python3-pasteurize to provide /usr/bin/pasteurize (pasteurize) in
 auto mode
Setting up python3-mpmath (1.2.1-2) ...
Setting up python-matplotlib-data (3.5.1-2build1) ...
Setting up python3-appdirs (1.4.4-2) ...
Setting up python3-soupsieve (2.3.1-1) ...
Setting up python3-websocket (1.2.3-1) ...
Setting up python3-pystache (0.6.0-1) ...
Setting up liblbfgsb0:amd64 (3.0+dfsg.3-10) ...
Setting up libopenblas-pthread-dev:amd64 (0.3.20+ds-1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so to provide /usr/lib/
x86_64-linux-gnu/libblas.so (libblas.so-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so to provide /usr/li
b/x86_64-linux-gnu/liblapack.so (liblapack.so-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblas.so to provide /usr/
lib/x86_64-linux-gnu/libopenblas.so (libopenblas.so-x86_64-linux-gnu) in auto mode
Setting up python3-sympy (1.9-1) ...
Setting up tk8.6-blt2.5 (2.5.3+dfsg-4.1build2) ...
Setting up python3-pysnmp4 (4.4.12-2) ...
Setting up glances (3.2.4.2+dfsg-1) ...
Creating system user 'glances'.
Created symlink /etc/systemd/system/multi-user.target.wants/glances.service  /lib/systemd/system/gla
nces.service.
Setting up blt (2.5.3+dfsg-4.1build2) ...
Setting up python3-docker (5.0.3-1) ...
Setting up python3-tk:amd64 (3.10.8-1~22.04) ...
Setting up python3-bs4 (4.10.0-2) ...
Setting up python3-fs (2.4.12-1) ...
Setting up libopenblas-dev:amd64 (0.3.20+ds-1) ...
Setting up python3-pil.imagetk:amd64 (9.0.1-1ubuntu0.2) ...
Setting up python3-pythran (0.10.0+ds2-1) ...
Setting up python3-scipy (1.8.0-1exp2ubuntu1) ...
Setting up python3-fonttools (4.29.1-2build1) ...
Setting up python3-ufolib2 (0.13.1+dfsg1-1) ...
Setting up python3-matplotlib (3.5.1-2build1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for menu (2.1.47ubuntu4) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...

Step 3: Verify the Installation

After the installation is complete, you can verify that Glances was installed correctly by running the following command:

Elsewhere On TurboGeek:  Understanding the Linux File System

Bash
glances -V

You should see output like this:

Bash
glances -V
Glances v3.2.4.2 with PsUtil v5.9.0
Log file: /home/rbailey/.local/share/glances/glances.log

This command should return the version of Glances that is currently installed on your system.

Step 4: Run Glances

Now, you can run Glances to monitor your system. Use the following command to start Glances:

Bash
glances

This will open the Glances interface, where you can monitor various system metrics such as CPU usage, memory usage, disk usage, and more.

Step 5: Exploring Additional Options

Glances offers several additional options and features. You can explore these by using the help command:

Bash
glances -h

This command will display a list of all the available options and how to use them.

Such as:

Bash
Examples of use:
  Monitor local machine (standalone mode):
    $ glances

  Display all Glances modules (plugins and exporters) and exit:
    $ glances --module-list

  Monitor local machine with the Web interface and start RESTful server:
    $ glances -w
    Glances web server started on http://0.0.0.0:61208/

  Only start RESTful API (without the WebUI):
    $ glances -w --disable-webui
    Glances API available on http://0.0.0.0:61208/api/

  Monitor local machine and export stats to a CSV file (standalone mode):
    $ glances --export csv --export-csv-file /tmp/glances.csv

  Monitor local machine and export stats to a InfluxDB server with 5s refresh rate (standalone mode):
    $ glances -t 5 --export influxdb

  Start a Glances XML-RPC server (server mode):
    $ glances -s

  Connect Glances to a Glances XML-RPC server (client mode):
    $ glances -c <ip_server>

  Connect Glances to a Glances server and export stats to a StatsD server (client mode):
    $ glances -c <ip_server> --export statsd

  Start the client browser (browser mode):
    $ glances --browser

  Display stats to stdout (one stat per line):
    $ glances --stdout now,cpu.user,mem.used,load

  Display CSV stats to stdout (all stats in one line):
    $ glances --stdout-csv now,cpu.user,mem.used,load

  Disable some plugins (comma separated list):
    $ glances --disable-plugin network,ports

  Enable some plugins (comma separated list):
    $ glances --enable-plugin sensors

Install Glances via Python Pip (Optional)

Alternatively, you can install Glances using pip, the Python package installer. First, install pip with the following command:

Bash
sudo apt install python3-pip

Next, install Glances using pip:

Bash
sudo pip3 install glances

This method can be used if you want to install a newer version of Glances that may not be available in the Ubuntu repositories.

Requirements

  • python 2.7,>=3.4
  • psutil>=5.3.0 (better with latest version)

Optional dependencies:

  • bernhard (for the Riemann export module)
  • bottle (for Web server mode)
  • cassandra-driver (for the Cassandra export module)
  • couchdb (for the CouchDB export module)
  • docker (for the Docker monitoring support) [Linux-only]
  • elasticsearch (for the Elastic Search export module)
  • hddtemp (for HDD temperature monitoring support) [Linux-only]
  • influxdb (for the InfluxDB export module)
  • kafka-python (for the Kafka export module)
  • netifaces (for the IP plugin)
  • nvidia-ml-py3 (for the GPU plugin)
  • pika (for the RabbitMQ/ActiveMQ export module)
  • potsdb (for the OpenTSDB export module)
  • prometheus_client (for the Prometheus export module)
  • py-cpuinfo (for the Quicklook CPU info module)
  • pygal (for the graph export module)
  • pymdstat (for RAID support) [Linux-only]
  • pySMART.smartx (for HDD Smart support) [Linux-only]
  • pysnmp (for SNMP support)
  • pystache (for the action script feature)
  • pyzmq (for the ZeroMQ export module)
  • requests (for the Ports, Cloud plugins and RESTful export module)
  • scandir (for the Folders plugin) [Only for Python < 3.5]
  • statsd (for the StatsD export module)
  • wifi (for the wifi plugin) [Linux-only]
  • zeroconf (for the auto-discover mode)

Glances interactive command list

Sort process list automatically

  • If CPU >70%, sort processes by CPU usage
  • If MEM >70%, sort processes by MEM usage
  • If CPU iowait >60%, sort processes by I/O read and write

A – Enable/disable Application Monitoring Process

b – Switch between bit/s or Byte/s for network I/OB

B – View disk I/O counters per second

c – Sort processes by CPU usage

d -Show/hide disk I/O stats

D - Enable/disable Docker stats

e – Enable/disable top extended stats

E -Erase the current process filter

f -Show/hide file system and folder monitoring stats

F – Switch between the file system used and free space

g – Generate graphs for current history

h – Show/hide the help screen

i – Sort processes by I/O rate

I – Show/hide the IP module

l – Show/hide log messages

m – Sort processes by MEM usage

M – Reset processes summary min/max

n – Show/hide network stats

N – Show/hide the current time

p – Sort processes by name

q|ESC|CTRL-C – Quit the current Glances session

Q – Show/hide the IRQ module

r – Reset history

R – Show/hide the RAID plugin

s – Show/hide sensors stats

t – Sort process by CPU times (TIME+)

T – View network I/O as a combination

u – Sort processes by USER

U – View cumulative network I/O

w – Delete finished warning log messages

W – Show/hide Wifi module

x – Delete finished warning and critical log messages

z– Show/hide processes stats0

Enable/disable Irix/Solaris mode

The task’s CPU usage will be divided by the total number of CPUs

1Switch between global CPU and per-CPU stats

2Enable/disable left sidebar

3Enable/disable the quick look module

4Enable/disable all but quick look and load module

5Enable/disable top menu (QuickLook, CPU, MEM, SWAP and LOAD)

6Enable/disable mean GPU mode/Switch between process command line or command name

Richard.Bailey

Richard Bailey, a seasoned tech enthusiast, combines a passion for innovation with a knack for simplifying complex concepts. With over a decade in the industry, he's pioneered transformative solutions, blending creativity with technical prowess. An avid writer, Richard's articles resonate with readers, offering insightful perspectives that bridge the gap between technology and everyday life. His commitment to excellence and tireless pursuit of knowledge continues to inspire and shape the tech landscape.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »