Skip to content

Instantly share code, notes, and snippets.

@etheleon
Forked from Tschrock/ponysay_motd.md
Created November 8, 2017 03:33
Show Gist options
  • Save etheleon/fa2dc7904c72ea4ae3747811ca57f05b to your computer and use it in GitHub Desktop.
Save etheleon/fa2dc7904c72ea4ae3747811ca57f05b 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