<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pi-hole &#8211; ZZ &amp; Joa</title>
	<atom:link href="https://blog.znjoa.com/tag/pi-hole/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.znjoa.com</link>
	<description>Work &#38; Life</description>
	<lastBuildDate>Sun, 16 May 2021 23:23:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.znjoa.com/wp-content/uploads/2022/11/cropped-DALL·E-2022-11-23-19.39.49-USSR-style-poster-of-VR-and-AR-150x150.jpg</url>
	<title>pi-hole &#8211; ZZ &amp; Joa</title>
	<link>https://blog.znjoa.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">192961540</site>	<item>
		<title>Install Pi-hole with existing Apache2 on Raspberry Pi 4</title>
		<link>https://blog.znjoa.com/2021/05/16/install-pi-hole-with-existing-apache2-on-raspberry-pi/</link>
					<comments>https://blog.znjoa.com/2021/05/16/install-pi-hole-with-existing-apache2-on-raspberry-pi/#respond</comments>
		
		<dc:creator><![CDATA[Zz]]></dc:creator>
		<pubDate>Sun, 16 May 2021 22:25:23 +0000</pubDate>
				<category><![CDATA[RPi]]></category>
		<category><![CDATA[dns-sink]]></category>
		<category><![CDATA[pi-hole]]></category>
		<category><![CDATA[rpi]]></category>
		<guid isPermaLink="false">http://192.168.0.186/?p=36</guid>

					<description><![CDATA[This is a record of the steps that I took to install pi-hole on my raspberry&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p><em>This is a record of the steps that I took to install pi-hole on my raspberry pi (RPi). It might not be universally applicable. Still hopefully it can help some out there.</em></p>
<h5><strong>Precondition</strong></h5>
<ul>
<li>apache2 and php already installed and set up on your raspberry pi (raspbian)</li>
</ul>
<hr />
<h5 class="wp-block-heading"> <strong>Download and run the automated install</strong> (<a href="https://github.com/pi-hole/pi-hole">Reference</a>)</h5>



<p>Run this command in the terminal:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">curl -sSL https://install.pi-hole.net | bash</pre>



<ol class="wp-block-list">
<li><em>Select interface:</em> wlan0 (depending on your need, wlan0 is for wifi and eth0 is for the wired connection)</li>
<li><em>Select DNS provider</em>: OpenDNS</li>
<li><em>IPv4&amp;v6:</em> both</li>
<li><em>Use static IP?:</em> Yes</li>
<li><em>Web admin interface</em>: yes</li>
<li><em>Install web server?</em>: <strong>No</strong></li>
<li><em>Log query</em>: On</li>
<li><em>Privacy</em>: full</li>
</ol>



<p>After these steps, a message will appear in the terminal telling you the IP and the password of the admin page (something like <code class="EnlighterJSRAW" data-enlighter-language="shell">http://192.168.x.xxx</code>). Note this down as you will need it later.</p>



<h5 class="wp-block-heading">Two warnings</h5>



<p>The installation finished with two warnings:</p>



<ol class="wp-block-list">
<li><em>xxx modules are missing for php</em></li>
<li><em>the web server user needs to be member of the &#8220;pihole&#8221; group for full functionality</em></li>
</ol>



<p>The first can be solved using <code><code class="EnlighterJSRAW" data-enlighter-language="shell">sudo apt install php-xxx</code></code> to install these packages.</p>



<p>The second can be solved by <code class="EnlighterJSRAW" data-enlighter-language="shell">sudo usermod -a -G pihole your_apache2_user</code>.</p>



<h5 class="wp-block-heading"><strong>Some setup on the admin page</strong></h5>



<p>On the left, go to <code>group management -&gt; Adlists</code> to add custom list. Below are some that I use:</p>



<ul class="wp-block-list">
<li><a href="https://raw.githubusercontent.com/0Zinc/easylists-for-pihole/master/easylist.txt">Easy list</a></li>
<li><a href="https://raw.githubusercontent.com/0Zinc/easylists-for-pihole/master/easyprivacy.txt">Easy privacy</a></li>
<li><a href="https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt">Developer Dan&#8217;s ads&amp;tracking list</a></li>
<li><a href="https://cdn.jsdelivr.net/gh/neoFelhz/neohosts@gh-pages/basic/hosts">Neohosts basic</a></li>
<li><a href="https://github.com/easylist/easylistchina/blob/master/easylistchina.txt">Easylist China</a></li>
</ul>



<p>After adding your lists, go to tools -&gt; update gravity -&gt; update.</p>



<h5 class="wp-block-heading"><strong>Check it’s working</strong></h5>



<p>Go to a site that you are certain that is riddled with ads or a ab backer checker site (such as<a href="https://d3ward.github.io/toolz/src/adblock.html" target="_blank" rel="noreferrer noopener"> this one</a>), and you show see that most of the ads are gone!</p>



<p>Now, enjoy a more pleasant online experience!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.znjoa.com/2021/05/16/install-pi-hole-with-existing-apache2-on-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">36</post-id>	</item>
	</channel>
</rss>
