Skip to main content

A trivial alternative to Ubuntu's landscape-info with no external dependencies

Project description

HeadsUp-Fast

A trivial alternative to Ubuntu's landscape-info with no external dependencies, that runs in 10% of the time of /etc/update-motd.d/50-landscape-sysinfo. Because perf matters.

Originally forked from landscape-sysinfo-mini. Changes include removing utmp dependency and generally speeding things up.

Features

  • Fast: Runs in ~10% of the time of the standard Ubuntu landscape-sysinfo
  • Zero dependencies: Pure Python 3.6+ with standard library only
  • Linux-focused: Designed specifically for Linux systems with /proc filesystem
  • Drop-in replacement: Easy to replace Ubuntu's default MOTD script

Sample Output

  System information as of Wed Sep 18 15:04:32 2025

  System load:  12.5%              Processes:        145
  Usage of /:   67.2% of 29.84GB   Users logged in:  2
  Memory usage: 41.3%              IP address for eth0: 192.168.1.100
  Swap usage:   2.1%

Installation

Option 1: Install as a command

pip install headsup-fast

Then run:

headsup

Option 2: Replace Ubuntu's default MOTD (recommended)

  1. Copy the script to your motd directory:

    sudo cp headsup.py /etc/update-motd.d/50-headsup
    sudo chmod +x /etc/update-motd.d/50-headsup
    
  2. Remove the standard Ubuntu one (optional):

    sudo rm /etc/update-motd.d/50-landscape-sysinfo
    
  3. Test it:

    sudo run-parts /etc/update-motd.d/
    

Requirements

  • Linux system with /proc filesystem
  • Python 3.6 or higher
  • Standard Linux utilities: ip, who

Performance

This implementation focuses on speed by:

  • Using /proc filesystem directly instead of external tools where possible
  • Avoiding heavy dependencies like python-utmp
  • Efficient parsing and minimal subprocess calls
  • Optimized string formatting

License

MIT License

Contributing

Bug reports and pull requests are welcome on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

headsup_fast-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

headsup_fast-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file headsup_fast-1.0.0.tar.gz.

File metadata

  • Download URL: headsup_fast-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for headsup_fast-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bcd0aebfec468fd97108ae7c514ffb8c3819fdb7907f9953ba04620fcec293e2
MD5 eb588715aeb6741d3fac7e587118f618
BLAKE2b-256 327697072d0c373c2eb42391ca9e1b7d0303277153464b6f8e63308aa1e05779

See more details on using hashes here.

File details

Details for the file headsup_fast-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: headsup_fast-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for headsup_fast-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22b7952bee5a17fedb76c731727168c41f69120933e40292e7e4ec36a955df05
MD5 546287ff2b3a7b761437c48ffefb19f4
BLAKE2b-256 bf52ff20af54a68c5db4615d0a558d48a15941ed9888b01a3d8a88f22d39895e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page