Last active
March 29, 2016 16:32
-
-
Save bionik/483b4b144da5cb54606b to your computer and use it in GitHub Desktop.
Slim down Ubuntu server dynamic motd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The dynamic motd shows a bit too much info by default: | |
| Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-45-generic x86_64) | |
| * Documentation: https://help.ubuntu.com/ | |
| System information as of Thu Feb 12 22:05:52 EET 2015 | |
| System load: 0.01 Processes: 153 | |
| Usage of /home: 11.8% of 274.89GB Users logged in: 0 | |
| Memory usage: 4% IP address for eth0: 10.0.1.2 | |
| Swap usage: 0% | |
| Graph this data and manage this system at: | |
| https://landscape.canonical.com/ | |
| I decided to remove the documentation link and the shameless Landscape plug. | |
| /etc/update-motd.d/ includes the scripts which are used to generate the motd. Edit these files: | |
| /etc/update-motd.d/10-help-text | |
| =============================== | |
| - Comment the file that starts with printf. This line outputs the "* Documentation: https://help.ubuntu.com/". | |
| /etc/update-motd.d/50-landscape-sysinfo | |
| ======================================= | |
| - (Optional) Comment these lines: | |
| echo -n " System information as of " | |
| /bin/date | |
| echo | |
| - Comment this line: | |
| /usr/bin/landscape-sysinfo | |
| - Add this underneath it: | |
| /usr/bin/landscape-sysinfo --exclude-sysinfo-plugins=LandscapeLink | |
| This will remove the link to Landscape. | |
| Tada! It's prettier now: | |
| Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-45-generic x86_64) | |
| System load: 0.46 Processes: 159 | |
| Usage of /home: 11.8% of 274.89GB Users logged in: 2 | |
| Memory usage: 6% IP address for eth0: 10.0.1.2 | |
| Swap usage: 0% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment