{"repo":"SixBytesUnder/custom-motd","free":true,"listed":false,"github":"https://github.com/SixBytesUnder/custom-motd","clone":"git clone https://github.com/SixBytesUnder/custom-motd.git","description":"Highly customizable Message of the Day script for Raspberry Pi","language":"Shell","stars":27,"topics":["bash","motd","raspberry-pi","bash-script","linux"],"license":"MIT","category":"cli-tools","readme_excerpt":"Custom MOTD ==== Highly customizable Message of the Day script for Raspberry Pi #### Written in Bash. No other dependancies. So far tested with Raspbian Jessie only, but should work with most other Linux distributions. The following steps may vary depending on the OS. - Download and save the motd.sh bash script onto your machine. Remember to add execute permissions and change the owner: Simply execute the script to test if it works That's it, from now on every time you ssh into your Raspberry, you should see the custom message of the day. All below is optional - You can remove default MOTD, but it's not necessary since the script will clean the screen anyway. - For the same reason as above, not necessary, but you may want to remove the \"last login\" message. Disable the PrintLastLog option from the sshd service. You should see: Change it to: Restart the sshd service: Options ### At the top of the file are variables allowing customization of the messages: - settings array contains all possible messages to be displayed. Comment lines with a # for messages you don't want to see. Change order of items in array to change order of displayed messages. - weatherCode set region code for the weather message. Full list of available Accuweather location codes - degrees change value to \"C\" to show all temperatures in Celsius or \"F\" for Fahrenheit - colour array, lets you set your own colours. List of colour codes: Colour Value -------- :-----: black 0 red 1 green 2 yellow 3 blue 4 magenta ","default_branch":null,"files":null,"tree":[],"storefront":"/r/SixBytesUnder","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SixBytesUnder/custom-motd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}