Customizing System Info Display

36 views
Skip to first unread message

Shawn Kroetsch

unread,
Sep 14, 2024, 1:59:46 AM9/14/24
to Glances Users
I'm currently running Glances in a Docker container (ubuntu-latest-full). By default, the Linux distro is displayed along the top in the "system" section as Ubuntu 22.04.

Is there a way to instead show the more detailed "pretty name" of the Linux distro? (i.e. Ubuntu 22.04.4 LTS)

The following command allows me to extract the full Linux distro name from the terminal, but I can't figure out how to accomplish this in Glances:

cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2


I have looked through the glances.conf file already, and found the {linux_distro} key, but wasn't able to modify it to fetch the full version. For the system info details specifically, where does Glances pull these values from, and can a script be modified to allow for the full Linux distro to be presented?
Reply all
Reply to author
Forward
0 new messages