[LINUX] Change the message displayed when logging in to Raspberry Pi

I know how to change not only the Raspberry Pi but also the message displayed when logging in to Linux, so I will write it down.

1. Initial login message


Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l

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.

The texts that list Linux licenses are dull, so if you want to add something, you can change it by changing the text in `/ etc / motd`. Japanese is not supported, so please enter in English only.


$ sudo nano /etc/motd
#Only superuser can edit

## Bonus: AA generation tool: figlet It will convert the entered characters to AA.



$sudo apt update
$sudo apt install figlet


$figlet "Hello World"
 _   _      _ _        __        __         _     _ 
| | | | ___| | | ___   \ \      / /__  _ __| | __| |
| |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` |
|  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| |
|_| |_|\___|_|_|\___/     \_/\_/ \___/|_|  |_|\__,_|

Recommended Posts

Change the message displayed when logging in to Raspberry Pi
Automatically acquire the operation log in the terminal when logging in to Linux
What to do when a warning message is displayed in pip list
Change the decimal point of logging from, to.
Try to visualize the room with Raspberry Pi, part 1
How to use the Raspberry Pi relay module Python
When a file is placed in the shared folder of Raspberry Pi, the process is executed.
What to do when only the window is displayed and nothing is displayed in pygame Note
[Raspberry Pi] Store the timestamp in the Firebase Realtime Database when the motion sensor detects it.
I want to be notified of the connection environment when the Raspberry Pi connects to the network
Introduced python3-OpenCV3 to Raspberry Pi
Make a note of what you want to do in the future with Raspberry Pi
Change the standard output destination to a file in Python
How to update user information when logging in to Django RemoteUserMiddleware
I talked to Raspberry Pi
It was great to edit the Python file in the Raspberry Pi with Atom's remote function
In Django, how to abbreviate the long displayed string as ....
Change the installation destination when --user is added to pip
The minimum methods to remember when aggregating data in Pandas
I sent the data of Raspberry Pi to GCP (free)
About the error I encountered when trying to use Adafruit_DHT from Python on a Raspberry Pi
Log in to Raspberry PI with ssh without password (key authentication)
Resolved an error when putting pygame in python3 on raspberry pi
I tried to automate the watering of the planter with Raspberry Pi
[Linux] I want to know the date when the user logged in
How to change the color of just the button pressed in Tkinter
Feel free to change the label of the legend in Seaborn in python
A memo when connecting bluetooth from a smartphone / PC to Raspberry Pi 4
Raspberry Pi --1 --First time (Connect a temperature sensor to display the temperature)
Change the active version in Pyenv from anaconda to plain Python
What to do when the value type is ambiguous in Python?
Run Polyglot on Raspberry Pi to perform morphological analysis in English
Programming to fight in the world ~ 5-1
Port FreeRTOS to Raspberry Pi 4B
Programming to fight in the world ~ 5-5,5-6
Change the Flyweight pattern to Pythonic (?) (3)
Change the Flyweight pattern to Pythonic (?) (2)
In the python command python points to python3.8
Output from Raspberry Pi to Line
Cython to try in the shortest
When the node disappears in rqt_graph
Programming to fight in the world ~ 5-2
[Raspberry Pi] Changed Python default to Python3
[Python] Change the alphabet to numbers
I want to change the color by clicking the scatter point in matplotlib
A memo to simply use the illuminance sensor TSL2561 with Raspberry Pi 2
Use Raspberry Pi to solve the problem of insufficient mobile Wi-Fi connection
What to do when the result downloaded via scrapy is in English
How to hide the command prompt when running python in visual studio 2015
Use python on Raspberry Pi 3 to light the LED with switch control!
When you want to change the HTTP headers of Flask's test client
RabbitMQ message notification app in Python with Growl ~ with Raspberry Pi and Julius ~
I connected the thermo sensor to the Raspberry Pi and measured the temperature (Python)
Logging the value of Omron environment sensor with Raspberry Pi (USB type)
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
Ansible role to prevent the initial confirmation message when connecting with SSH
I want to prevent the speaker connected to the Raspberry Pi (jessie) from bouncing when the OS is restarted (Python script)
Put ROS melodic in Raspberry Pi 4 / Buster
Connect two USB cameras to Raspberry Pi 4
Try logging in to qiita with Python
Behavior when returning in the with block