These are the simplified instructions to install a Pi-Hole on a Raspberry Pi device. You will need any Raspberry Pi with an ethernet adapter and a high-endurance microSD card. If ever you Pi-Hole device begins to freeze up, it is because your microSD card is bad or you need to use a legacy version of Pi OS.
- Download and install the Pi imager at https://www.raspberrypi.com/software/. This will make it easy to install any Raspberry Pi operating system version.
- If you do not have a SSH program, I recommend PuTTY.
- Connect your microSD card to the computer.
- Run the Pi imager. It will ask you to choose an operating system. I recommend choosing the Pi OS other option and then choosing a lite version. If you have an older Pi, be sure to choose a legacy lite version.
- Choose your microSD card in the storage option.
- Be sure to click the gear button icon below write before you click write. In that page, check the box to enable SSH, set a username and password, and uncheck enable telemetry. You may or may not want to change to timezone from UTC. US Eastern time is US/Eastern.
- Once the imager finishes, boot the Pi and then use your SSH program to connect to it. You will likely need to get into your router to find the IP address, which you need to change later.
- Run these commands: (These are case-sensitive)
- sudo apt-get update
- sudo apt-get dist-upgrade
- wget -O basic-install.sh https://install.pi-hole.net
- sudo bash basic-install.sh
- Then follow the on-screen instructions to finish. A reboot will be necessary.
- sudo reboot
- To change the default pi-hole password, type the following command in ssh:
- pihole -a -p
- After rebooting again, you are good to go. Log in to your Pi-hole web console to finish the process and change your router’s DNS server to the static IP of the Pi. Be sure both IP addresses are the same.