howto:linux_motd
Update MOTD Banner
Assuming you want to add some fancy graphic at the top of the banner. Generate one using TAAG.
- Edit the file
/etc/update-motd.d/00-header
- Using
printf
add the banner title. Remember to add newlines\n
) at the end of each printf (good old C style), e.g.printf "\n\n ██╗ ███╗ █████╗ ██╗ ████████╗ █████╗\n" printf "████╗ ████║██╔══██╗██║ ╚══██╔══╝██╔══██╗\n" printf "██╔████╔██║███████║██║ ██║ ███████║\n" printf "██║╚██╔╝██║██╔══██║██║ ██║ ██╔══██║\n" printf "██║ ╚═╝ ██║██║ ██║███████╗██║ ██║ ██║\n" printf "╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝\n"
- To assemble and update the MOTD, run
sudo run-parts /etc/update-motd.d/
. This will concatenate all output of the scripts in that directory.
howto/linux_motd.txt · Last modified: 2018/10/09 10:12 by 127.0.0.1