-
Install ponysay: (You may have to
sudo apt install software-properties-common
first)sudo add-apt-repository ppa:vincent-c/ponysay
sudo apt-get update
sudo apt-get install ponysay
-
Move the existing motd scripts
sudo mkdir /etc/update-motd.d/innermessage
sudo mv /etc/update-motd.d/* /etc/update-motd.d/innermessage
- this will complain about moving a directory into iself, ignore it >.<
-
Make a custom motd script to run the innermessage scripts and pipe them to ponysay
echo -e '#!/bin/sh\nrun-parts /etc/update-motd.d/innermessage | ponysay' | sudo tee /etc/update-motd.d/50-ponysay
sudo chmod +x /etc/update-motd.d/50-ponysay
-
(Optional) Install screenfetch & add to motd scripts
sudo apt-get install screenfetch
echo -e '#!/bin/sh\necho\nscreenfetch -nd' "'distro,kernel,uptime,cpu,mem'" | sudo tee /etc/update-motd.d/innermessage/05-screenfetch
sudo chmod +x /etc/update-motd.d/innermessage/05-screenfetch
Last active
December 5, 2019 21:28
-
-
Save Tschrock/0aeb7802dd741bfa7601ee3426ad6f06 to your computer and use it in GitHub Desktop.
A ponysay MOTD for Ubuntu 16.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment