Skip to content

Instantly share code, notes, and snippets.

@linuswillner
Created February 9, 2020 15:31
Show Gist options
  • Save linuswillner/f8c15385e8a88017a70bdc3f18a688a2 to your computer and use it in GitHub Desktop.
Save linuswillner/f8c15385e8a88017a70bdc3f18a688a2 to your computer and use it in GitHub Desktop.
Add neofetch display to system login scripts
#!/bin/bash
sudo apt install neofetch
sudo cp motd.sh /etc/profile.d/motd.sh
sudo chmod +x /etc/profile.d/motd.sh
#!/bin/bash
printf "\n"
neofetch
@francisuk1989
Copy link

francisuk1989 commented May 27, 2024

I know this is 4 years but i replaced neofetch with fastfetch and works still the same with Ubuntu 24.04 x64 LTS

sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo apt-get update
sudo apt-get install fastfetch

sudo nano /etc/profile.d/motd.sh

#!/bin/bash
printf "\n"
fastfetch

sudo chmod +x /etc/profile.d/motd.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment