Skip to content

Instantly share code, notes, and snippets.

@jrean
Forked from Tschrock/ponysay_motd.md
Created July 27, 2017 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrean/3c61c8d952fe80c9b6e53ff4499e9193 to your computer and use it in GitHub Desktop.
Save jrean/3c61c8d952fe80c9b6e53ff4499e9193 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