Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Created September 16, 2017 13:07
Show Gist options
  • Save swyngaard/9d2ae523750948b29858f0356cd6c207 to your computer and use it in GitHub Desktop.
Save swyngaard/9d2ae523750948b29858f0356cd6c207 to your computer and use it in GitHub Desktop.
Install Neofetch Debian 9 Stretch

Install Neofetch Debian 9 Stretch

Install neofetch on a server to display useful information when a user logs in.

Install package

sudo aptitude install neofetch

Configure output (optional)

Edit the file /usr/share/neofetch/config as superuser root to display desired information.

Disable MOTD SSH login message

Edit or comment out all lines in /etc/update-motd.d/10-uname. Remove all lines from /etc/motd to remove the message of the day notice.

Disable lastlog SSH login message

Append the following to the file to disable lastlog message notice:

PrintLastLog no

Restart the ssh server:

sudo systemctl restart ssh

Install for all users

Append the following line to /etc/profile to display neofetch for all users on login:

neofetch --config none

Check via SSH

Login with any user through ssh to make sure that neofetch displays system information to the current terminal.

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