PDA

View Full Version : Custom MOTD for the Raspberry Pi



wraggster
December 20th, 2012, 23:27
http://hackadaycom.files.wordpress.com/2012/12/motd.png?w=580&h=175
With so many uses for a Raspberry Pi in a headless configuration – especially with the impending release of the Raspi Model A – we’re surprised it has taken so long for someone to send in a way to create a custom message of the day (http://www.raspberrypi.org/phpBB3/viewtopic.php?t=23440) that is displayed whenever you SSH into everyone’s favorite Linux board.
A MOTD is used by servers to display messages to new users, or simply system information for server admins. It’s a simple text file stored in /etc/motd, but with some proper beardly Unix wizardry it’s possible to display uptime, free memory, and even the weather wherever the Raspi is located.
[yanewby] over on the Raspberry Pi forums created a nice little MOTD that grabs weather data from the Internet and displays it alongside an ASCII rendering of the Raspberry Pi logo (http://www.raspberrypi.org/phpBB3/viewtopic.php?p=78678#p78678). Of course like everything in Unix, this MOTD can be modified to do just about anything, from checking your Twitter to sending a text message to your phone.
http://hackaday.com/2012/12/20/custom-motd-for-the-raspberry-pi/