#insight #login #dynamic #real-time #highly #configurable #gb

app motdyn

🛠️ motdyn (Dynamic MOTD): Rust-powered and highly configurable for real-time login insights

3 releases (1 stable)

new 1.0.2 Dec 29, 2024
0.1.5 Dec 29, 2024
0.1.1 Dec 27, 2024

#181 in Filesystem

Download history 98/week @ 2024-11-10 102/week @ 2024-12-22

102 downloads per month

MIT license

30KB
625 lines

Table of Contents↗️

motdyn

🛠️ motdyn (Dynamic MOTD): Rust-powered and highly configurable for real-time login insights.


Example

$ motdyn

Welcome!

Current time (TZ): 2024-12-27 22:36:25 +00:00
System uptime:     80 days, 05:13:42
Operating system:  Rocky Linux 9.5 (Blue Onyx)
Kernel version:    5.14.0-503.15.1.el9_5.x86_64
Host name:         localhost
CPU:               AMD EPYC 7313 16-Core Processor (32 cores)
Memory used/total: 100.67/127.77 GB (78.79%)
Swap used/total:   0.00/0.00 GB (0.00%)
Current user:      root (from 192.168.0.1)
Login user count:  11
Disk usage (root): / => 43.61 GB/98.40 GB (44.32%)
Disk usage (nfs):  /mnt => 1.51 TB/1.97 TB (76.51%)

Have a nice day!

Usage

motdyn [subcommand] [options]

Where:

  • install places a script (/etc/profile.d/motdyn.sh) to run motdyn on login (root privileges).
  • uninstall removes that script, stopping MOTD from running automatically.
  • status checks if the script is currently installed.
  • (no subcommand) prints the dynamic MOTD immediately.
  • -v, --verbose shows additional details.

Dependencies

~9–20MB
~269K SLoC