News
Faster Speeds: Bandwidth for vStack Servers in Kazakhstan Increased to 200 Mbps
DF
May 23 2025
Updated May 23 2025

How to install and use Glances on Debian 12?

Debian

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

Glance installation

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:

How glance utility for Debian looks

  • CPU: per-core CPU usage
  • Mem: RAM usage
  • Swap: swap usage
  • Disk I/O: disk activity
  • Network: network traffic
  • Processes: list of resource-consuming processes

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:

  • Web UI: running `glances -w` launches a web interface (available at http://localhost:61208)
  • SNMP, Prometheus, InfluxDB, and more for metrics export

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.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
1101 CT Amsterdam The Netherlands, Herikerbergweg 292
+31 20 262-58-98
700 300
ITGLOBAL.COM NL
700 300

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.