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 are supported with unique ASCII art included. It is useful to run it on login automatically to immediately see system information.

 

Screenfetch on Login

Install from the official repository.

sudo pacman -S screenfetch

 

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.

 

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 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 login shell initialisation file.

sudo nano /etc/profile

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

 

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 script to the end of the chosen file.

screenfetch

 

Each time a specific user or any user logs in or opens a terminal, screenFetch output will be printed automatically.

dom