How to Install Pi-hole on Linux
1. Update your system
sudo apt update && sudo apt upgrade -y
2. Install Pi-hole
curl -sSL https://install.pi-hole.net | bash
3. Follow the installation prompts
During installation, you will be asked to configure the following:
- Choose an upstream DNS provider (Google, OpenDNS, Cloudflare, etc.)
- Select blacklist options
- Set a static IP for your server (recommended)
4. Verify the installation
pihole -v
5. Access the Pi-hole Web Interface
Open your browser and go to:
http://your-server-ip/admin
Login using the password set during installation.
6. Enable Pi-hole service
sudo systemctl enable pihole-FTL
sudo systemctl start pihole-FTL
7. Check Pi-hole status
pihole status
8. (Optional) Uninstall Pi-hole
pihole uninstall
These are the steps to install Pi-hole on Linux. Hope this helps!