This is a preset for fastfetch that is intended to run on login when you open a terminal, or login to your server over SSH. It shows relavant system information and an ASCII logo of your operating system.
This preset requires a Nerd Font to be installed and set in your terminal to properly display the icons.
If you are using a mobile device (such as a laptop) you can use the login-mobile.jsonc preset instead to show power adaptor and battery information.
If your computer does not have an active Wi-Fi connection you can use the login-no-wifi.jsonc preset.
Here is a list of the modules included with this preset:
- title (user@hostname)
- datetime (MMM dd, yyyy: hh:mm:ss timezone)
- loadavg (1m, 5m, 15m)
- processes
- break
- OS
- kernel
- uptime
- packages
- break
- poweradapter —
⚠️ login-mobile.jsonc only - battery [ {bar}{num}: {status} - {manufacturer} - {technology} - {cycles} ] —
⚠️ login-mobile.jsonc only - memory [ {bar}{num}: {used} / {total} ]
- swap [ {bar}{num}: {used} / {total} ]
- drives [ {bar}{num}: {used} / {total} - {filesystem} ]
- break
- wifi [ {bar}{num}: {SSID} - {frequency} {channel} - {encryption} - {Rx} {Tx} ] — ❌ not included with login-no-wifi.jsonc
- localip [ {device} ({speed}) - {IPv4} - {IPv6} - {MAC} ]
- publicip [ {IPv4} {location} ]
- dns [ {IPv4} {IPv6} ]
- netio [ {IN} - {OUT} ]
-
Clone the Github repository:
git clone https://github.com/benhaube/fastfetch-login-preset.git
-
Install
fastfetchif you have not already:-
Fedora/RHEL based distributions:
sudo dnf install fastfetch
-
Debian/Ubuntu based distributions:
sudo apt install fastfetch
-
Visit the
fastfetchGithub repository if it is not available in your distribution's package manager.
-
-
Backup your
.bashrcfile in case you make a mistake:cp .bashrc .bashrc.bkp
-
Enter the project directory:
cd fastfetch-login-preset/ -
Copy the file
login.jsoncto the/usr/share/fastfetch/presets/directory and confirm fastfetch can see the preset:sudo cp login.jsonc /usr/share/fastfetch/presets/ fastfetch --list-presets
-
Go back to your
/home/user/directory and edit the.bashrcfile to add thefastfetchcommand:cd nano .bashrc -
Add the following to the end of your
.bashrcfile:# Run the fastfetch command with the login.jsonc profile at login to show relavant system information fastfetch -c login -
Ctrl+OandEnterto save the changes andCtrl+Xto close the file
Now you should be able to open a new terminal window or tab and see the fastfetch command run with the login.jsonc profile before you get your terminal prompt.


