ScreenFetch at Login on Fedora Linux

screenFetch is a Bash Screenshot Information Tool that prints ASCII art along with basic system information when executed. Many distributions including Fedora Linux are supported with unique ASCII art included. It is useful to run it on login automatically to immediately see system information.

 

Install Screenfetch

Install from the official repository.

sudo dnf install screenfetch

 

Fix Screenfetch Gnome Bug

There is still a bug that causes Gnome Terminal to fail to open after screenfetch has been executed and the terminal closed. Rebooting the system is the only apparent fix when this happens. The issue is only of concert if Gnome Terminal is installed on the host system. Remote systems running Gnome Terminal connecting to the host are unaffected.

 

Open screenfetch script.

sudo nano /usr/bin/screenfetch

 

Comment out the lines below.

#LANG=C
#LANGUAGE=C
#LC_ALL=C

 

Run Screenfetch on Login

Open the user login shell initialisation file.

nano ~/.bash_profile

Commands in this file will be executed at login for the current user only.

 

Open the system wide login shell initialisation file.

sudo nano /etc/profile

Commands in this file will be executed at login for all users.

 

Run Screenfetch on Shell Open

Open the user interactive shell initialisation file.

nano ~/.bashrc

Commands in this file will be executed every time a shell is opened for the current user only.

 

Open the system wide interactive shell initialisation file.

sudo nano /etc/bashrc

Commands in this file will be executed every time a shell is opened for all users.

 

Append the script to the end of the chosen file.

screenfetch

 

Depending on the configuration each time a specific user or any user logs in or opens a terminal window, screenFetch output will be printed automatically displaying system information and a nice distribution specific ASCII drawing.