Updating Ubuntu Server with Pi-hole

If you don’t know what is Pi-hole, stop reading this post and read this website instead: https://pi-hole.net

Instead of hosting my Pi-hole on a Raspberry Pi, I use Ubuntu Server on a VMware host. Even using LTS versions of Ubuntu Server get outdated, so here’s a how-to for getting the guest updated.

  1. Backup your server somehow. I use Veeam as well as take a VMware snapshot. You could also use Acronis at boot time and take an image.
  2. sudo apt update && sudo apt upgrade
  3. sudo reboot
  4. sudo apt install update-manager-core
  5. sudo do-release-upgrade
  6. sudo reboot

You’ll get prompted throughout the process multiple times multiple questions. I chose to kept custom modified file as-is and not revert to the package original. Clear out all outdated packages as well.

After successfully updating Ubuntu Server, you’ll have to run the following command to fix Pi-hole. Also make sure Webmin is the latest version.

sudo rm /etc/dnsmasq.d/lxd


Cat vs. Mouse | Mouse Gets New Weapon

I’ve been using AdBlock for a few years now.  There are many clones so let’s be specific: https://www.getadblock.com/  Accept no substitutes.

For the most part, it works great.  However, the “cat” in this battle (websites and advertisers) can detect when you use AdBlock and may choose to either give you a nag screen (please help us pay for our site) or deny you access entirely unless you whitelist the site.

Which brings me to Pi-hole.  This service runs on any Linux distro, and the most popular method is to use a Raspberry Pi, hence the name.  However I chose to use Ubuntu Server as a virtual guest on VMware.

Installation was extremely simple if you follow their website.  Once installed, you can change the default password by running the command on your Linux command line:

pihole -a -p

Once Pi-hole is running, change the DNS of your DHCP server to resolve to the Pi-hole device (or virtual guest).  That’s it.