0419.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Pi-Hole Ad-Blocker on Kali Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="VirtualBox,Virtual Machine,Kali,i12bretro,How To,Tutorial,Pi-Hole,PiHole,DNS,Ad Blocker,Kali Linux,Unsupported OS">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running Pi-Hole Ad-Blocker on Kali Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Running Pi-Hole Ad-Blocker on Kali Linux</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <p><em>NOTE: I&#39;m running this installation inside a VirtualBox VM</em></p>
  25. <ol>
  26. <li>Click the Applications button &gt; Accessories &gt; Terminal</li>
  27. <li>Run the following commands to install updates
  28. <div class="codeBlock">sudo apt-get update<br />
  29. sudo apt-get upgrade<br />
  30. sudo apt-get clean<br />
  31. curl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash</div>
  32. </li>
  33. <li>Press Enter until the DNS selection is displayed</li>
  34. <li>Select a DNS provider and press Enter</li>
  35. <li>Press Enter through the rest of the Pi-Hole installer, selecting the defaults</li>
  36. <li>Copy the randomly generated admin password (just in case)</li>
  37. <li>Press Enter to complete the installation</li>
  38. <li>Continue with the following commands
  39. <div class="codeBlock"># rebuild the pihole gravity.db<br />
  40. sudo pihole -g -r<br />
  41. # check for updates<br />
  42. sudo pihole -up<br />
  43. # change the pihole admin password<br />
  44. sudo pihole -a -p<br />
  45. # repair the pihole installation<br />
  46. PIHOLE_SKIP_OS_CHECK=true sudo -E pihole -r</div>
  47. </li>
  48. <li>Press&nbsp;Enter to repair and retain existing settings</li>
  49. <li>Continue with the following commands
  50. <div class="codeBlock">sudo nano /etc/lighttpd/lighttpd.conf</div>
  51. </li>
  52. <li>Scrolldown and place a # before mod_compress to comment it out</li>
  53. <li>Press CTRL+O, Enter, CTRL+X to write the changes to lighttpd.conf</li>
  54. <li>Continue with the following commands
  55. <div class="codeBlock"># start lighttpd<br />
  56. sudo systemctl enable lighttpd<br />
  57. sudo systemctl start lighttpd<br />
  58. # restart pihole DNS<br />
  59. sudo pihole restartdns</div>
  60. </li>
  61. <li>Open the Firefox&nbsp;web browser and navigate to about:config</li>
  62. <li>Click the Accept the Risk and Continue button</li>
  63. <li>Search for fallback</li>
  64. <li>Double click the browser.fixup.fallback-to-https to set the value to false</li>
  65. <li>Navigate to http://localhost/admin to reach the pi-hole web UI</li>
  66. <li>Click Login</li>
  67. <li>Authenticate with the admin password</li>
  68. </ol>
  69. <p>More on Pi-Hole <a href="https://pi-hole.net/" target="_blank">https://pi-hole.net/</a></p>
  70. </div>
  71. </div>
  72. </body>
  73. </html>