12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Install Pi-Hole on Raspberry Pi 4</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Network Wide Ad Blocking,Pi-Hole,Raspberry Pi 4,Install Pi-Hole Raspberry Pi,DNS,Ad Blocking,Raspberry Pi,RPi,Linux,Ad Blocker,Pi Hole,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Install Pi-Hole on Raspberry Pi 4">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Install Pi-Hole on Raspberry Pi 4</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>Installing Pi-Hole</h2>
- <ol>
- <li>Log into the Raspberry Pi</li>
- <li>Run the following commands in a terminal window
- <div class="codeBlock"># update software repositories<br />
- sudo apt update<br />
- # install available software updates<br />
- sudo apt upgrade -y<br />
- # clean up downloaded apt files<br />
- sudo apt clean<br />
- # install pi-hole<br />
- curl -sSL https://install.pi-hole.net | bash</div>
- </li>
- <li>Press Enter until the DNS selection is displayed</li>
- <li>Select a DNS provider and press Enter</li>
- <li>Press Enter through the rest of the Pi-Hole installer, selecting the defaults</li>
- <li>Copy the randomly generated admin password (just in case)</li>
- <li>Press Enter to complete the installation</li>
- <li>Run the following command to change the Pi-Hole admin password
- <div class="codeBlock">sudo pihole -a -p</div>
- </li>
- <li>Enter and confirm the new password</li>
- <li>Open a web browser and navigate to http://localhost/admin to view the pi-hole admin interface</li>
- </ol>
- <h2>Testing Pi-Hole</h2>
- <ol>
- <li>Back in the terminal, run the following commands to use the local pi-hole instance for DNS
- <div class="codeBlock">sudo nano /etc/resolv.conf</div>
- </li>
- <li>Add the following line at the top of the other nameservers
- <p>nameserver 127.0.0.1</p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to resolv.conf</li>
- <li>Back in the web browser, open a new tab and navigate to a site that contains ads, like https://yahoo.com</li>
- <li>Watch the Pi-Hole interface to see the ads being blocked</li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|