Please use ascii-header-install.sh for a fully automated installation.
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y figlet lolcat neofetch
Figlet is an application which can gegerate ascii-art-like logo's from text_ Lolcat will add rainbow colors to your output Neofetch generates a nice ascii sysinfo
git clone https://github.com/xero/figlet-fonts
mv figlet-fonts/* /usr/share/figlet/ && rm -rf figlet-fonts
/usr/bin/figlet "Wortell" -f larry3d -w 140 | /usr/games/lolcat -f -p 6 -S 47 >> wortell-figlet.txt
/usr/bin/figlet " Enterprise Security" -f small -w 140 | /usr/games/lolcat -f -p 6 -S 47 >> wortell-figlet.txt
Notice how two different fonts are used. The logo is stored in ~/wortell-figlet.txt
sudo rm /etc/update-motd.d/00-header
sudo rm /etc/update-motd.d/10-help-text
sudo rm /etc/update-motd.d/50-landscape-sysinfo
sudo rm /etc/update-motd.d/50-motd-news
sudo rm /etc/update-motd.d/80-livepatch
Set HOME variable because that's where the ansi art resides
HOME=~
And add the appropriate lines to the 00-header
echo '#!/bin/bash' >> 00-header
echo 'cat '"$HOME"'/wortell-figlet.txt | /usr/games/lolcat -f -p 6 -S 47' >> 00-header
echo 'printf "\n"' >> 00-header
Nothing special just disabling Neofetch color blocks because it looks better IMHO
echo '#!/bin/bash' >> 01-neofetch
echo '/usr/bin/neofetch --color_blocks off' >> 01-neofetch
We want a weather report based on the location of the server. So let's first find the local city
First we found our public IP then we find the local city based of that IP
CITYquoted=$(curl -s https://ipvigilante.com/$(curl -s https://ipinfo.io/ip) | jq '.data.city_name')
The string contains leading and trailing double quotes, we need to remove these
CITY="${CITYquoted%\"}"
CITY="${CITY#\"}"
And create 02-weather file
Note that the "m" make sure we get our results in metric. Check https://wttr.in/:help for more info
echo '#!/bin/bash' >> 02-weather
echo 'printf "\n"' >> 02-weather
echo 'curl wttr.in/'"$CITY"'?m0 --silent --max-time 3' >> 02-weather
sudo mv -t /etc/update-motd.d/ 00-header 01-neofetch 02-weather
sudo chmod +x /etc/update-motd.d/00-header
sudo chmod +x /etc/update-motd.d/01-neofetch
sudo chmod +x /etc/update-motd.d/02-weather
sudo chown root:root /etc/update-motd.d/*
showfigfonts