A comprehensive guide for setting up Pi-hole on a Raspberry Pi. This repository provides step-by-step instructions, from initial Raspberry Pi setup to Pi-hole configuration, ensuring a smooth installation process for users of all skill levels. It includes detailed explanations of each step, troubleshooting tips, and links to essential resources. Perfect for beginners looking to create an efficient network-wide ad blocker.
- Raspberry Pi: With a compatible OS installed (Raspberry Pi OS is recommended).
- Internet Connection: Wired or wireless.
- Power Supply: For your Raspberry Pi.
- Micro SD Card: With the OS installed.
- Computer: To access the Raspberry Pi remotely.
- SSH Client: Like PuTTY for Windows or Terminal for macOS/Linux.
First, ensure your Raspberry Pi is up to date:
- Open the Terminal on Raspberry Pi.
- Type
sudo apt update
and press Enter. - After it finishes, type
sudo apt upgrade
and press Enter. - Reboot if necessary.
- In the Terminal, type
curl -sSL https://install.pi-hole.net | bash
and press Enter. - Follow the on-screen instructions to complete the installation.
- After installation, Pi-hole will display an IP address and a password for the admin web interface.
- Note these down.
- Access the admin interface by typing the IP address into a web browser from any device on your network.
- Log into your router's admin page (usually something like 192.168.0.1 or 192.168.1.1).
- Locate the DNS settings.
- Change the DNS server to the IP address of your Raspberry Pi.
- Save and restart your router.
- Open a web browser and enter
http://[your Pi's IP address]/admin
. - Log in using the password generated during the installation.
- In the Pi-hole dashboard, go to 'Settings' > 'Blocklists'.
- Add or remove lists as per your preference.
- Regularly update Pi-hole by typing
pihole -up
in the Terminal.
- If you encounter issues, rebooting your Raspberry Pi and router can resolve many problems.
- Check the Pi-hole community forums and FAQs for specific issues.
- Regularly update your Raspberry Pi OS and Pi-hole for security.
- Consider setting up a firewall on your Raspberry Pi.