chmod +x 01-custom
zemerdon@nvr:~$ cat /etc/update-motd.d/01-custom
#!/bin/sh
echo "GENERAL SYSTEM INFORMATION"
#/usr/bin/screenfetch
/usr/bin/neofetch
echo
echo "SYSTEM DISK USAGE"
export TERM=xterm; inxi -D
echo
echo "CURRENT WEATHER AT THE LOCATION"
# Show weather information. Change the city name to fit your location
ansiweather -l brisbane
custom SSH login
Re: custom SSH login
if neofetch / fastfetch displays no colour, append the following to your .bashrc file at the bottom.
Code: Select all
# Run fastfetch on interactive terminal login
if [[ $- == *i* ]]; then
fastfetch
fiCode: Select all
# Run fastfetch on interactive terminal login
if [[ $- == *i* ]]; then
echo "GENERAL SYSTEM INFORMATION"
/usr/bin/fastfetch
echo
echo "SYSTEM DISK USAGE"
export TERM=xterm; inxi -D
echo
fi