Pi-Hole installation, step-by-step.

By | February 20, 2019

This will become your DNS and will sinkhole any nefarious/ad requests on your network, so cell phones, tablets & computers will all be far less inconvenienced by ads and crap.

You’ll need a 2 GB SD card and your trusty leftover Raspberry Pi.Files to download

  1. Download the Raspbian Lite image.  This goes on the 2GB SD card.
  2. Download Etcher. To burn the image onto the SD card.
  3. Download PuTTY. To connect to the Raspberry after the install.

Run Etcher, select the Raspian image file, then flash it to the SD card.   This took me about 10 minutes.Flash complete

At this point, Windows will freak out over the ext4 partition and say “do you want to format this drive?” – NO!  Click cancel.

Once this is done, create a file called “ssh” in the root of the SD card (the partition Windows CAN access).  It’s a simple text file without an extension, and it contains nothing.  This tells the Raspberry to start the Secure SHell daemon automatically.

You’re off to the races.   Stick the SD card in the RPi and plug in Ethernet and power and give it a minute to start up.

Raspberry on routerI simply looked at my network map to find the “raspberry pi” entry and associated IP address.  PuTTYWith that, I can open PuTTY and connect in to it.
The default login and password at this time (2019-03) is;

  • username: pi
  • password: raspberry

Run sudo raspi-config to change the password and hostname, and update the software if you feel like it.

Back at the command prompt, it’s time to install Pi-hole, which is done by typing this
curl -sSL https://install.pi-hole.net | bashPiHole install

You’ll end up selecting a few options like IPV4/6, IP/mask, the upstream DNS provider etc.  You’ll have to decide if you want it to be your DHCP server (I’d recommend it as it’ll tell you which device in your house is making the requests, otherwise all requests come from your router if that’s still the DHCP server), and you want the web server and interface installed and enabled.

Once you’re done with all the settings, you might want to change or remove the web interface password
pihole -a -p, and then reboot the RPI with
sudo reboot.

Now all you have to do is change your router’s DNS to point to the RPI and you’re done!

To look at the stats on the web interface, go to http://pihole/admin or  (or whatever the IP of the RPI is).

Leave a Reply

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