There's a bunch of options on github, some of my favorites:
https://github.com/sophieforceno/motd-scripts
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
There's a bunch of options on github, some of my favorites:
https://github.com/sophieforceno/motd-scripts
Thanks!
Why not write your own version? Getting the temperatures is easy and portable with the sensors
command from lm-sensors. The rest of the info is easy to get using various commands (e.g. uptime, free) combined with a bit of sed/grep/awk for formatting.
Does anyone else prefer no MOTD? You can SSH into your server without clobbering your scroll back buffer. It makes everything feel more seamless.
Looks like that config info might be defined in this script
Yes, that script depends on /usr/lib/armbian/armbian-allwinner-battery
that, in turn, depends on the armbianmonitor service. :(
Can’t you cut out the battery code since your screenshot indicates it wasn’t used? I should be clear that you’ll have to edit some bash scripts to make what you’re asking for happen.
That's an example, for instance the CPU temps depend on another os those files that is written by the armbianmonitor service... and I don't want to run that service on a generic machine. In the past I modified the script to read temps from lm-sensors
but that doesn't seem to be very portable as both Intel and AMD have multiple variations on way they report the temps.
This is why I'm mostly looking for an alternative.
Dude, I know your IP now. You're hacked!
😂 😂 😂 god damn it. You took so long.
Stop pinging yourself, stop pinging yourself!
There's Armbian for x86... https://www.armbian.com/uefi-x86/
I managed to mount the image and extract the files, however it still fails on a regular Debian box, x86 as a few tools seem to be missing:
./30-armbian-sysinfo
./30-armbian-sysinfo: line 41: /usr/lib/armbian/armbian-allwinner-battery: No such file or directory
./30-armbian-sysinfo: line 92: ambienttemp: command not found
./30-armbian-sysinfo: line 94: batteryinfo: command not found
./30-armbian-sysinfo: line 96: getboardtemp: command not found
System load: 1% Up time: 7 days 19:15
Memory usage: 34% of 15.59G Zram usage: 1% of 14.90G IP: 10.12.125.1 172.21.1.11
Usage of /: 24% of 916G
storage/: 1% of 952M
Grabbing armbian-allwinner-battery
doesn't help as it depends of stuff like /etc/armbianmonitor/datasources/ambienttemp
I'm aware... but where can I get the included MOTD without having to burn the image and whatnot?
Sorry. Can't help you there.
you should be able to drop an executable in /etc/update-motd.d/
also have a look at libpam-motd or at the systemd scripts that ubuntu uses
Yes... but this armbian thing has too many dependencies I wouln't want to run the armbianmonitor service just to power this up.
sorry, I should have replied as top comment. I meant that on plain debian you can put executables in /etc/update-motd.d. That should do, otherwise have a look at libpam-motd , or steal the systemd scripts from an ubuntu install