ihashacks

i dunno

Fun With Geoip and Profane Weather

A recent tweet from @climagic made me lol and gave me an idea to extend Ubuntu’s dynamic MOTD.

There some prereqs:

1
2
3
4
5
# command line tools
apt-get install links curl geoip-bin
#geoip database of cities
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz                                                          gunzip GeoLiteCity.dat.gz
sudo mv GeoLiteCity.dat /usr/share/GeoIP/ && rm GeoLiteCity.dat

Now get the script:

1
2
wget https://raw.github.com/ihashacks/update-motd/master/97-vulgar-weather
sudo mv 97-vulgar-weather /etc/update-motd.d/

Now log out and back in, and voila! Vulgar weather at every login!

Vulgar Weather in MOTD

Comments