IP addresses / Countries stuff
dpkg -l | grep -i geoip
apt remove geoip-bin geoip-database geoip-database-contrib
#? ls -Al /usr/share/GeoIP/
#? rm -rf /usr/share/GeoIP/
find /etc/cron* -iname "*geoip*"
grep -ri geo /etc/cron*
#? rm /etc/cron.../geoip...
apt install geoipupdate mmdb-bin
wget http://ftp.ch.debian.org/debian/pool/main/libm/libmaxminddb/libmaxminddb0_1.2.0-1+b1_amd64.deb
wget http://ftp.ch.debian.org/debian/pool/main/libm/libmaxminddb/mmdb-bin_1.2.0-1+b1_amd64.deb
wget http://ftp.ch.debian.org/debian/pool/contrib/g/geoipupdate/geoipupdate_2.3.1-1_amd64.deb
dpkg -i libmaxminddb0_1.2.0-1+b1_amd64.deb mmdb-bin_1.2.0-1+b1_amd64.deb geoipupdate_2.3.1-1_amd64.deb
cp -v /usr/share/doc/geoipupdate/examples/GeoIP.conf.default /etc/GeoIP.conf
# cat /etc/GeoIP.conf
UserId 0
LicenseKey 000000000000
ProductIds GeoLite2-Country GeoLite2-City
geoipupdate
m=$(( RANDOM % 60 )); h=$(( RANDOM % 24 )); d=$(( RANDOM % 7 ))
echo "$m $h * * $d root /usr/bin/geoipupdate" >>/etc/crontab
wget https://raw.github.com/mivk/ip-country/master/ip2country
chmod -c +x ip2country
mv -v ip2country /usr/local/bin/