A "welcome script" typically refers to a script or program that is automatically executed when a user logs into a computer system or a specific user account. Its purpose is to provide a personal or informative welcome message, define the user environment or perform other tasks to improve the user experience.
This script (welcome.sh) tries to provide the user with the most fundamental set of information about a Linux-based device, such as Raspberry Pi, when they are in the "construction phase" and therefore prevent confusion or misremembering some things when working with many similar devices. The script shows, for example, the temperature of the Raspberry Pi device, which can unexpectedly rise when the load is increased, for example due to insufficient cooling of the case.
The welcome script includes the following functions:
- checks internet connection when connected locally
- displays CPU temperature (Raspberry OS only)
- displays CPU architecture
- displays SBC (Single-board computer) or CPU model
- displays current local time
- displays ASCII art
- displays OS version
- displays if bluetooth adapter is up or found
- displays screen/windows size in characters
- shows if specific commands are installed or not
- Copy the script into your user script directory
- Call it at the end of ~/.bashrc file to run it each time you login
To change the default ASCII art into your own just provide the correct path to text file as only parameter.
<><>< raspi-welcome v0.2 beta usage: welcome.sh ascii-art-file
The script is tested on Raspberry Pi Model B Rev 2. Here is what it looks like:
The script may also work on most Linux distros and versions, but it has not been tested yet. Here is what it looks like on Linux Mint:
Since supported commands varies a little the provided information differs.
Thats it. You welcome!