this content was originally posted here.

pi hole and hassio

TL;DR What is Pi Hole?Pi Hole is basically a firewall that sits on your home network and blocks out all the adversiter and tracker sites. So if you want to block a large percentage of the dodgy/ad/tracker..

What is Pi Hole?

Pi Hole is basically a firewall that sits on your home network and blocks out all the adversiter and tracker sites. So if you want to block a large percentage of the dodgy/ad/tracker traffic on your network for all of your devices this should do it for you in a fairly painless way. 

What is is a web interface for your rasberry Pi, it is primarily designed to allow your home to be more automated and acts as a connection to your google and other smart devices giving you a bit more control over them. 

You can actually access the devices seperately and access more features than are usually available, like typing in some text for the device to speak. 

I bought a while ago an older model of the rasberry pi which i thought would be useful one day. I think i ended up getting the Rasberry Pi Model 2 B which was the latest at the time of ordering. I installed noobs and debian on it i think intially, and didnt really have a use for it so it got added to the hardware drawer for a while.

Until the other day when i heard of the software Pi Hole and Hassio. I actually heard of the hassio first, which is great for connecting the Pi into your home network and acting as a bridge and controller for the Google Home and Google Chromecast items, and you can also add quite a lot of scripts to it.

One of the best things about hassio is the web interface, so you install it and then can just access your Rasberry Pi via the web, rather than having to SSH into it whenever you want to change it, also this removes the need of having a display connected to it all the time.

I had installed hassio first before i had even thought of installing Pi Hole, and i was going to scrap the hassio and just put a small installation of debian and then pi hole on the pi but there is actually a version of Pi Hole that runs along side and is installed by hassio!

Here is how i added it.

Log into your web interface for hassio. This is usually located at the devices IP address and then you add the port after the ip like so: 

Go into the add-on store tab which you should be able to access from the dashboard screen.

You will need to add an additional repository to allow the installation of Pi Hole which you should be able to add into the following area.

You will need to add this url to the repository:

The details of the pi hole addon can be found here.

Once you have added this there should be a few additional addons available, you can go ahead and click on the Pi Hole one and then enable it. It usually takes a couple of minutes to install. 

Once installed i usually enable the auto start feature so that when the Pi reboots it will start the pi hole service automatically incase of power outages and such. 

If you have stared the Pi Hole server you should be able to access it at this address replacing the IP with your rasberry pi's IP. or if you have already assigned it as your dns, you can access it from http://pi.hole/admin/index.php 

Also for this to be effective you will need to assign an IP address to your PI and make sure it does not change, you can do this in your router usually under the DHCP settings. Once you have made the IP static you can set it as your primary DNS server, i also set the secondary DNS server as which is the google dns server incase the pi hole server is unavailable as a fallback, otherwise your internet traffic will stop working correctly.

database file: /home/kruxor/Dropbox/
comments_dbfile: /home/kruxor/Dropbox/ ($db_comments)
views_dbfile: /home/kruxor/Dropbox/
$dbfood_file: /home/kruxor/Dropbox/
db_linx: /home/kruxor/Dropbox/
Classes Loaded:
Class Extend Loaded: class/extends/expenses.extend.php
Class Extend Loaded: class/extends/gary_cummins_timeline.extend.php
Class Extend Loaded: class/extends/moo.extend.php
Class Extend Loaded: class/extends/osrs_item_data.extend.php
Class Extend Loaded: class/extends/osrs_slayer.extend.php
Class Extend Loaded: class/extends/osrs_slayer_monsters.extend.php
Class Extend Loaded: class/extends/searches.extend.php
Core Database Connected: expenses.db
expenses add_to_menu:
Class Extend Auto Initialized as: expenses
Core Database Connected: gary_cummins_timeline.db
gary_cummins_timeline add_to_menu:
Class Extend Auto Initialized as: gary_cummins_timeline
Core Database Connected: moo.db
moo add_to_menu:
Class Extend Auto Initialized as: moo
Core Database Connected: osrs_item_data.db
osrs_item_data add_to_menu:
Class Extend Auto Initialized as: osrs_item_data
Core Database Connected: osrs_slayer.db
osrs_slayer add_to_menu:
Class Extend Auto Initialized as: osrs_slayer
Core Database Connected: osrs_slayer_monsters.db
osrs_slayer_monsters add_to_menu:
Class Extend Auto Initialized as: osrs_slayer_monsters
Core Database Connected: searches.db
searches add_to_menu:
Class Extend Auto Initialized as: searches
user access level:
Using Template: view-content.html