23.05.2025

How to install and use Glances on Debian 12?

When working with Linux systems, it's important to have a convenient tool for monitoring system resources: CPU, memory, disk, network, and processes. The utility Glances is a powerful monitoring tool written in Python that displays real-time information in a convenient format and runs in the terminal. In this article, we'll look at how to install Glances on Debian and use it in practice.

Installing Glances

There are several ways to install Glances, but the most reliable on Debian is via `apt` or `pip`.

Option 1: Installing via APT

sudo apt update
sudo apt install glances

Option 2: Installing the latest version via pip

sudo apt install python3-pip
pip3 install glances

If you want to install system-wide, add --break-system-packages for newer versions of Debian:

pip3 install glances --break-system-packages
Do not install Glances with sudo pip directly — it may damage system Python libraries.

Launching and Using

Just type:

glances

You’ll see a statistics dashboard:

Useful Key Bindings

Key Action
q or Ctrl+C Quit
c Sort processes by CPU
m Sort processes by memory
d Sort processes by I/O
f Search for a process
l Show/hide log file
b Enable/disable color highlight
h Show help

Remote Monitoring

Glances can be used in client-server mode.

1. Start the server on a remote machine:

glances -s

(default port is 61209)

2. Connect to it from another machine:

glances -c <ip-address>

Extensions and Plugins

Glances can be integrated with:

Example:

glances -w # available via browser on port 61208

Conclusion

Glances is a convenient alternative to tools like htop, top, nmon, and even Grafana (when paired with Prometheus). It's suitable for both beginners and system administrators who need to quickly understand what's happening on the system.