ScreenFetch at Login on Arch Linux

screenFetch on Arch Linux

screenFetch is a Bash Screenshot Information Tool that prints ASCII art along with basic system information when executed. Many distributions including Arch 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 pacman -S screenfetch

 

Fix Screenfetch Gnome Bug

Open screenfetch script.

sudo nano /usr/bin/screenfetch

 

Comment out the lines below.

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

This is needed to prevent 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.

 

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/bash.bashrc

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

 

Append the command 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.