Skip to content

Instantly share code, notes, and snippets.

@Tschrock
Last active December 5, 2019 21:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Tschrock/0aeb7802dd741bfa7601ee3426ad6f06 to your computer and use it in GitHub Desktop.
Save Tschrock/0aeb7802dd741bfa7601ee3426ad6f06 to your computer and use it in GitHub Desktop.
A ponysay MOTD for Ubuntu 16.04

A ponysay MOTD for Ubuntu 16.04

Screenshot

  1. 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
  2. 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 >.<
  3. 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
  4. (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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment