Table of Contents
This tip is about the how to modify Linux Terminal Splash Screen. So read this free guide, How to modify Linux Terminal Splash Screen. If you have query related to same article you may contact us.
How to modify Linux Terminal Splash Screen – Guide
Screen is a full-screen software program that can be used to multiplex a physical console across multiple processes (usually interactive shells). It offers the user the opportunity to open multiple separate terminal instances within a single terminal window manager.
The canvas application is very useful if you are handling multiple programs from a command line interface and for separating shell and terminal programs. It also allows you to share your sessions with other users and disconnect / connect terminal sessions.
On my Ubuntu Server Edition, Screen was installed by default. But, on Linux Mint it doesn’t have a screen installed by default, I need to install it first using the apt-get command before using it.
In this article, we’ll see how to customize your Linux terminal’s home screen for jazz up your command-line classes.
Step 1: Discovering the Shell Configuration File
The terminal emulator installed on your Linux machine acts as a front-end to the underlying shell. In most Linux distros, Bash is the default shell that comes pre-installed with the system. On Linux, if you don’t like the default shell – usually Bash – you can always change the shell using chsh.
Each shell has a configuration file saved in the consumer’s home list. For Bash, the file is known as a .bashrc. And if you’re using Zsh, it’s probably .zshrc.
In the list of homes, find the configuration file equivalent to the shell you are currently using. For the purpose of this information, we will reveal to discover how to customize the home screen in Bash. However, note that the steps are also comparable for different shells.
To customize the terminal splash screen, first open the shell configuration file using your favorite textual content editor. In this case, Vim:
came ~ / .bashrc
Step 2: Adding the Splash Screen Content Material
Before starting to include subtle scripts in the file, try printing an easy string first to confirm that the configuration file was learned correctly by the shell. To do this, append the next line to the configuration file:
echo “Welcome to the Terminal!”
Now save and exit Vim and restart the terminal to see the settings.
The welcome textual content message may be displayed each time the shell is started, usually after you restart the terminal.
Now that you recognize that the configuration file works, it’s time to add some intriguing data and instructions to the file.
1. Show system information on home screen
To spice up the questions up, you possibly can show system data at the start of a new terminal occasion in a sexy way. You don’t have to worry about extracting the particulars of the system and presenting them properly; several instruments are already available to make this work for you. Two of the most used are Neofetch and Screenfetch.
Earlier than you can add the instructions to the configuration file, set up Neofetch (or Screenfetch) using the default business package supervisor on your system.
Then, relying on the package you placed above, add the following two instructions to the final from the shell configuration file:
neofetch
screen search
Save the settings and restart the terminal.
2. Show a random message
You should use fortune to show random (usually humorous) quotes whenever you start the terminal. Before enhancing the configuration file, set up the pack of fortune in your system.
On Ubuntu / Debian:
sudo apt set up fortune
On Arch Linux:
sudo pacman -S fortune-mod
To make a fortune on Fedora and CentOS:
sudo dnf set up lucky mod
Once placed, add the next command to the top of the configuration file:
fortune
You possibly can channel fortune with different utilities like cowsay to create attractive splash screen prompts. To define up the cowsay package on your machine and add the next line to the shell configuration file:
fortune | cowsay
3. Display ASCII art at launch
Regular textual content can be a big disincentive for some customers. Although the Linux terminal doesn’t help photos and movies, you can still use ASCII art to add a visible contact to the display screen.
For this you need to use the figlet utility to transform regular textual content into ASCII art. The package can be obtained from the official distro repositories and can be downloaded using the default package supervisor.
On Debian-based techniques like Ubuntu:
sudo apt set up figlet
To put figlet on Arch Linux:
sudo pacman -S figlet
On Fedora / CentOS and different RPM-based distros:
sudo dnf set up figlet
Once entered, append the next statement to the shell’s configuration file:
figlet -cl “It’s a rope”
… The “It’s a String” location is the textual content you want to display as ASCII art.
4. Add weather and date information
If you’re crazy about Linux and can’t remember the current date and weather while using the command line, you can configure the terminal to remind you of these details at launch.
To define up curl on your system if you don’t already have it. Then, to get weather details each time you start the terminal, append the next line to the configuration file:
curl wttr.in/paris?0
Be sure to change “paris” within the above mentioned command along with your geographic location. O? 0 instructs this system to print only the current weather as a replacement for the standard three-day forecast.
You can even print the current date and day using the date utility. Just add the next line to the shell configuration:
meeting
Step 3: Save and verify changes
When you’re done tweaking and enhancing the configuration file, it’s time to fully apply those tweaks by saving and exiting the file. To view the splash screen, simply restart the terminal from the Functions menu or use the keyboard shortcut Ctrl + Alt + T as a replacement.
You can even create custom scripts that print what you want to see on the terminal’s home screen. Then just add the command to run the script inside the shell’s configuration file and you’re done.
Final note
I hope you like the guide How to modify Linux Terminal Splash Screen. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.