BaReinhard's Tech Blog

A blog of various technologies, largely based around the Raspberry Pi.

Follow me on GitHub Follow me on Instagram

Setting custom Message of the Day or greeting on terminal/ssh logon

Good Afternoon and Happy Sunday, Today will be a super short post, but allows for some fun to make your Raspberry Pi your own.

First we need to choose what we want to be displayed on terminal/ssh login. I’ve used Text to ASCII Art Generator in the past with several distro’s (OSX,Kali,Raspbian,OSMC,Ubuntu,etc.) with good results. However, any text to ascii generator will work.

Now we need to place that text somewhere, open up your /etc/motd file

$ sudo nano /etc/motd

You should see something similar to :

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

You can keep that text or completely get rid of it and simply paste in your new text. Save (Ctrl+o), then exit (Ctrl+x).

Now you have a custom Message of the Day, now everytime you login through ssh or on boot to the console you will see your new message displayed!

Enjoy! -Brett