See my Pi-Hole: Difference between revisions
Line 70: | Line 70: | ||
# Okay - that worked the second time. 57% of space is in use on the / mountpoint, after this step. | # Okay - that worked the second time. 57% of space is in use on the / mountpoint, after this step. | ||
# Now it's time to ''apt-get -y update'' and then ''apt-get -y upgrade''. 59% of space is in use on the / mountpoint, after this step. | # Now it's time to ''apt-get -y update'' and then ''apt-get -y upgrade''. 59% of space is in use on the / mountpoint, after this step. | ||
# curl -L install.pi-hole.net use the sudo command a lot... | |||
<u>Missing pacakges:</u> | <u>Missing pacakges:</u> | ||
* ''apt-get curl'' (After this operation, 1,918 kB of additional disk space will be used.) | * ''apt-get install curl'' (After this operation, 1,918 kB of additional disk space will be used.) | ||
* | * ''apt-get install curl'' (After this operation, 2,337 kB of additional disk space will be used.) | ||
Revision as of 17:46, 13 January 2016
Info on my Pi-Hole is consolidated on this page.
Links to sites i used for this project
- raspberrypi.org
- win32diskimager
- pi-hole @ github
- Remote access to the RPi using putty for Windows.
What i did...
- Copied 2015-11-21-raspbian-jessie.img to the micro-sd card, using win32diskimager.
- After first boot, i configured the WiPi USB interface so it would connect to my Wireless network. I did this from the GUI.
- The i opened a Terminal window on top of the GUI. This might put unnessesary strain on the RPi, but for now it doesn't matter :-)
- Then i followed Jacob Salmela's guide: "Setting It Up (The Easy Way)"
The DHCP server running on my ISP provided SHOH Router/Wireless Accesspoint cannot be disabled or changed in it's settings, so i will have to manually point my devices to the PiHole DNS server... :-/ If IPv6 is annoying you on the WIndows OS disable it correctly !
chronometer.sh for putty
This is my version of the chronometer.sh script. /usr/share/figlet does not contain small font and i would like to rearrange the stuff a tiny bit.
#!/usr/bin/env bash # Displays Pi-hole stats on the Adafruit PiTFT 2.8" touch screen # Set the pi user to log in automatically and run this script from /etc/profile # (c) 2015 by Jacob Salmela # This file is part of Pi-hole. # # Pi-hole is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. for (( ; ; )) do clear # Displays a colorful Pi-hole logo toilet -f smbraille -F gay Pi-hole echo " $(ifconfig wlan0 | awk '/inet addr/ {print $2}' | cut -d':' -f2)" echo "" echo " $(uptime | cut -d' ' -f11-)" echo "---------------------" # Uncomment to continually read the log file and display the current domain being blocked #tail -f /var/log/pihole.log | awk '/\/etc\/pihole\/gravity.list/ {if ($7 != "address" && $7 != "name" && $7 != "/etc/pihole/gravity.list") print $7; else;}' today=$(date "+%b %e") todaysQueryCount=$(cat /var/log/pihole.log | grep "$today" | awk '/query/ {print $7}' | wc -l) todaysQueryCountV4=$(cat /var/log/pihole.log | grep "$today" | awk '/query/ && /\[A\]/ {print $7}' | wc -l) todaysQueryCountV6=$(cat /var/log/pihole.log | grep "$today" | awk '/query/ && /\[AAAA\]/ {print $7}' | wc -l) todaysAdsEliminated=$(cat /var/log/pihole.log | grep "$today" | awk '/\/etc\/pihole\/gravity.list/ {print $7}' | wc -l) dividend=$(echo "$todaysAdsEliminated/$todaysQueryCount" | bc -l) fp=$(echo "$dividend*100" | bc -l) percentAds=$(echo ${fp:0:4}) echo "Queries: $todaysQueryCountV4 / $todaysQueryCountV6" echo "Pi-holed: $todaysAdsEliminated ($percentAds%)" sleep 42 done
Minibian Pi-hole??
Distro is avilable at http://minibianpi.wordpress.com/
My notes
while trying to get this up and running...
- After 1st try to expand the partition to fully utilize 1 Gb SD card, i could not log in. So expanding is the first thing to do so all other steps is not wasted if(when) i fail again ;-)
- Okay - that worked the second time. 57% of space is in use on the / mountpoint, after this step.
- Now it's time to apt-get -y update and then apt-get -y upgrade. 59% of space is in use on the / mountpoint, after this step.
- curl -L install.pi-hole.net use the sudo command a lot...
Missing pacakges:
- apt-get install curl (After this operation, 1,918 kB of additional disk space will be used.)
- apt-get install curl (After this operation, 2,337 kB of additional disk space will be used.)