Skip to content

jarvenja/raspi-welcome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

raspi-welcome

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.

Functions

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

Usage

  1. Copy the script into your user script directory
  2. Call it at the end of ~/.bashrc file to run it each time you login

Parameters

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

Raspberry OSes

The script is tested on Raspberry Pi Model B Rev 2. Here is what it looks like:

Welcome RPi

Linux Mint

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:

Welcome Mint

Since supported commands varies a little the provided information differs.

Thats it. You welcome!

About

My Raspberry welcome script

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages