» Home » uncategorized » Setting Pi-hole up on a Raspberry Pi 2, 3 & 4

Setting Pi-hole up on a Raspberry Pi 2, 3 & 4

Install BerryBoot

Download & copy BerryBoot to your SD to be able to add other OS’s to my Pi

https://www.berryterminal.com/doku.php/berryboot – BerryBoot only supports Pi 3 and newer. To download BerryBoot for the Pi 2, berryboot-20190612-pi0-pi1-pi2-pi3.zip

Copy the data across to a FAT32 formatted SD card. Then put the MicroSD into your Pi and boot it, install Raspberian or your Linux flavour of choice.

Installing Pi-hole aka pihole

https://pi-hole.net/

Boot your OS to command line and log in, make sure you have an internet connection. Choose one of the following

Method 1: Simplest One-Step Automated Install

Piping to bash is controversial, as it prevents you from reading code that is about to run on your system.

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

You can cut and paste the above code to the command line to install Pi-hole

Method 2: Clone the repository and run

git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "pi-hole/automated install/"
sudo bash basic-install.sh

You can cut and paste the above code to the command line to install Pi-hole

Method 3: Manually download the installer and run

wget -O basic-install.sh https://install.pi-hole.net
sudo bash basic-install.sh

You can cut and paste the above code to the command line to install Pi-hole

Make your network take advantage of Pi-hole

Once the installer has been run, you will need to set either your PC or your router to use Pi-Hole as their DNS server. Using it on your router ensures that all devices connecting to your network will have content blocked without any further intervention.

Log into your router’s configuration page and find the DHCP/DNS settings. Note: make sure you adjust this setting under your LAN settings and not the WAN set it to the IP of your Pi-hole.

As a last resort, you can always manually set each device to use Pi-hole as their DNS server.

Configuring your Pi-hole

Type your Pi-hole’s URL into your browsers address bar and include a /admin, for me that is http://192.168.8.42/admin

To do more you’ll need to log in with your password which you should have received during the install.

Default SSH Access Details

  • User: pi
  • Password: raspberry

BerryBoot Images

https://berryboot.alexgoldcheidt.com/

Leave a Reply

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