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.

  • Cyrus Taraporvala

    Hi there, Interesting site 🙂 I use both Arch and Fedora on different machines and have no problem with screenfetch on opening a terminal after including the command in ./bashrc

    However, with Gnome on Fedora 26 I can type screenfetch in a terminal to activate it, but get no response if I include the command in ./bashrc, in fact the terminal comes up but I cannot type anything.

    Appreciate your input.

    • Luckily I also happen to use Fedora so I ended up posting a Fedora specific article: https://dominicm.com/screenfetch-login-fedora-linux/

      The issue in your case was very simple, /etc/bash.bashrc path is actually just /etc/bashrc in Fedora.

      P.S. Let me know if the Gnome bug is also present in Fedora and if the fix in this article works for Fedora as well.

      • Cyrus Taraporvala

        Thanks for your response. No, the fix did not work for me. In fact, after that I couldn’t get the terminal to start. So to change /etc/bashrc again I had to Ctrl+Alt+F4 and login again to sudo and change the file like it was. I guess that the problem still remains with Gnome on F26

        • Thanks for reporting back, will update fedora post woth the fix. Will have to give neofetch a try too, thanks.