With dynamic_motd
there is a quite nice MOTD replacement to make the boring greeting via SSH or console more appealing and informative. This replacement is quickly installed after adapting the package source with pkg install -y dynamic_motd figlet
.
NEW: For the very impatient I have a console only section. There are only commands, no explanations.
Last update:
Firstly, the old MOTD (Message of the day) service must be deactivated with sysrc update_motd=‘NO’
, otherwise they will get in each other's way. With cp /usr/local/share/examples/dynamic_motd/rc.motd /usr/local/etc/rc.motd
and cp /usr/local/share/examples/dynamic_motd/motd.subr /usr/local/etc/motd.subr
the example files are copied. Finally, the new service is activated and started with service dynamic_motd enable
& service dynamic_motd start
. The next time you log in, it will look something like this:
Last login: Sun Oct 27 15:03:38 2024 from 0.0.0.0
_
___ ___ _ __ ___| |___ _____
/ __/ _ \| '__/ _ \ __\ \ /\ / / _ \
| (_| (_) | | | __/ |_ \ V V / (_) |
\___\___/|_| \___|\__| \_/\_/ \___/
FreeBSD 14.1-RELEASE-p5 GENERIC
Supermicro X12STL-IF 1.01 ZM299999999
Intel(R) Xeon(R) E-2334 CPU @ 3.40GHz
Host: coretwo (192.168.1.100 10.0.0.1)
Up: 3 hours, 52 minutes
CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 6936K Active, 34M Inact, 537M Wired, 56K Buf, 62G Free
ARC: 111M Total, 13M MFU, 94M MRU, 20K Anon, 517K Header, 3889K Other
21M Compressed, 103M Uncompressed, 4.83:1 Ratio
Swap: 2048M Total, 2048M Free
Load: 0.08, 0.09, 0.08
sysrc update_motd="NO"
cp /usr/local/share/examples/dynamic_motd/rc.motd /usr/local/etc/rc.motd
cp /usr/local/share/examples/dynamic_motd/motd.subr /usr/local/etc/motd.subr
service dynamic_motd enable
service dynamic_motd start