Networking

Install Pi-Hole in Ubuntu 24.04 LTS

Learn how to install Pi-Hole on Ubuntu 24.04 LTS Server and block ads on your home network. Get step-by-step instructions on how to install it on the beta version of Ubuntu.

Pi-Hole is arguably one of the most popular ad-blocking solutions for home networks and home labs. Likewise, Ubuntu is one of the most popular Linux distros around. While Ubuntu 24.04 LTS is still in beta, let’s look at installing Pi-Hole on Ubuntu 24.04 LTS and see what we need to do to get Pi-Hole installed.

Install Ubuntu 24.04 LTS Server

The first thing you need to do is install Ubuntu 24.04 LTS Server. This process is straightforward and involves installing a physical or virtual machine as the platform for installing Pi-Hole. You can download the Ubuntu 24.04 LTS Server ISO here: Ubuntu 24.04 (Noble Numbat) Beta.

Downloading ubuntu 24.04 server beta
Downloading ubuntu 24.04 server beta

Once you have the machine up and running, we can get started installing Pi-Hole in Ubuntu.

Ubuntu 24.04 lts installed
Ubuntu 24.04 lts installed

I went ahead and checked for Ubuntu updates, even though this is a beta release. You can do that with:

sudo apt-get update && sudo apt-get upgrade -y

As you can see below, running the update and upgrade command shows there are no updates available. This is due to the fact in this case that we have installed a beta release.

Checking for updates to ubuntu 24.04
Checking for updates to ubuntu 24.04

Not supported

Since Ubuntu 24.04 LTS is still beta and not supported as of yet, we need to do something special to get Pi-Hole installed on Ubuntu 24.04 beta.

To install Pi-Hole normally, you run the following:

curl -sSL https://install.pi-hole.net | bash

However, you can see we get the following error message.

Unsupported operating system using ubuntu 24.04 lts beta
Unsupported operating system using ubuntu 24.04 lts beta

Workaround

We need to apply a command line parameter to install Pi-Hole for testing on Ubuntu 24.04 LTS beta:

curl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash

When we do this, it skips the OS check and will begin the installation.

Skipping the os check during pi hole installation
Skipping the os check during pi hole installation

Install Pi-Hole in Ubuntu 24.04 LTS

Now, that we have run the command line switch, we can install Pi-Hole on Ubuntu 24.04 LTS. Let’s look at the screenshots of the installation.

You will see the following splash screen after getting pas the OS check.

Beginning the installation
Beginning the installation

Pi-Hole is an open source solution.

Open source software notice
Open source software notice

Static IP address needed.

Notice about a static ip address
Notice about a static ip address

You will see your current IP address configured displayed. I have a static IP address configured. It will display that and ask you if you want to use the current settings or set a new static IP address.

Setting or leaving a static ip address configured
Setting or leaving a static ip address configured

You will see the following notice about any possible IP address conflicts. Pi-Hole is here just saying if you configure a static IP address, you need to make sure if it is within a DHCP range that you have a reservation for that IP address or there will be the potential for IP address conflicts.

Notice about ip conflict
Notice about ip conflict

Configure your upstream DNS provider. Pi-Hole comes out of the box capable of configuring the following DNS providers:

  • Google
  • OpenDNS
  • Level3
  • Comodo
  • DNS.WATCH (DNSSEC)
  • Quad9 with DNSSEC
  • Quad9 without DNSSEC
  • Quad9 filtered ECS, DNSSEC
  • Cloudflare (DNSSEC)
  • Custom
Setting your upstream dns provider
Setting your upstream dns provider

You will see the next page noting that Pi-Hole relies on third-party block lists. It will install StevenBlack’s Unified Hosts List by default if you select Yes.

Blocklists configuration notice
Blocklists configuration notice

You can choose to install the admin web interface.

Installing the admin web interface
Installing the admin web interface

When you choose to install he admin web interface, you will get the notice that lighttpd will be installed, along with the needed PHP modules.

Installing lighttpd and php modules
Installing lighttpd and php modules

You will also be able to enable query logging.

Enabling query logging
Enabling query logging

Select the privacy mode you want to enable for FTL (faster than light) DNS.

Privacy mode options
Privacy mode options

When you hit continue, you will see the installation begin installing the components needed.

Installation after gui wizard begins
Installation after gui wizard begins

After the installation completes, it will display a GUI showing the connection information, including IP address, web interface URL and the initial login password is shown.

After the installation finishes you will see the splash screen with post installation information
After the installation finishes you will see the splash screen with post-installation information

When you click OK, the command line will display similar information.

Post information displayed in the command line
Post information displayed in the command line

You can start configuring your Pi-Hole installation on Ubuntu 24.04 LTS by browsing to your Pi-Hole web admin dashboard.

After deploying pi hole and logging into the web interface
After deploying pi hole and logging into the web interface

Ultimate Pi-Hole configuration with certificates, etc

Wrapping up

Pi-Hole is a great solution that I use in my home network on the LAN side of things to do most of my filtering and DNS security. It looks like installing Pi-Hole in Ubuntu 24.04 LTS is going to be straightforward. You can download the Ubuntu 24.04 LTS beta ISO and install it like any other Ubuntu distro. The Pi-Hole installation is straightforward once you add the skip os check parameter from the command line installation. Let me know in the comments if you are playing around with Ubuntu 24.04 and Pi-Hole.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.