Just a quick writeup on how I got Pi-Hole running on a Pine A64 512MB. I am by no means a professional or expert, just know enough to really mess things up! If I screwed anything up or am doing anything the hard way, please don't hesitate to correct me!
What is Pi-hole?
pi-hole - A black hole for Internet advertisements (designed for Raspberry Pi)
https://pi-hole.net/
Install Ubuntu following damikeh's How To
Boot it up, personally I would suggest changing the default password and possibly adding another account, and changing the hostname but that's just my personal preference.
Update the repos and check for upgrades by running
Then I installed my preferred CLI txt editor (nano) though any should work. While we are at it, going to install PHP which we will need for Pi-hole Web Interface
This may prompt you asking if you want to continue, respond with Y for yes.
Now we need to setup out network with a static IP address. I'm using the built in ethernet and am setting my IP to 192.168.1.240 and my router is located at 192.168.1.1 and we will use Googles DNS servers
By default this will probably look something like
But we want it to me more like (changing any values as needed for your local network)
Now we need to restart the network so changes take effect, this should be able to be done without restarting the board itself, but none of the usual ways seem to be working for me so we can just reboot the board
Now once we login we can check and make sure out network settings are working by running ifconfig
If all went well, our inet addr should now match our desire static IP!
Now getting Pi-hole on the rest of the way is easy!
It will take a few as it downloads and installs necessary packages, it will get made that PHP5 packages aren't available but we already install PHP7 so it seems to work for me!
Just follow all the prompts, I left the network interface stuff alone since we already configured that and once the installer finishes, it should be ready to go!
Next you'll need to change the DNS server your computer or device is using to the IP you set for your Pi-hole (192.168.1.240 for me).
Then to access the Web Control Interface, point your browser to
http://192.168.1.240/admin/index.php
You should get a page similar to mine
Let me know if this helps anybody out! If you have problems, I'll do my best to help troubleshoot but am no means an expert on this!
What is Pi-hole?
pi-hole - A black hole for Internet advertisements (designed for Raspberry Pi)
https://pi-hole.net/
Install Ubuntu following damikeh's How To
Boot it up, personally I would suggest changing the default password and possibly adding another account, and changing the hostname but that's just my personal preference.
Update the repos and check for upgrades by running
Code:
sudo apt-get update
sudo apt-get upgrade
Then I installed my preferred CLI txt editor (nano) though any should work. While we are at it, going to install PHP which we will need for Pi-hole Web Interface
Code:
sudo apt-get install nano php7.0-cgi php7.0-fpm
This may prompt you asking if you want to continue, respond with Y for yes.
Now we need to setup out network with a static IP address. I'm using the built in ethernet and am setting my IP to 192.168.1.240 and my router is located at 192.168.1.1 and we will use Googles DNS servers
Code:
sudo nano /etc/network/interfaces.d/eth0
By default this will probably look something like
Code:
auto eth0
iface eth0 inet dhcp
But we want it to me more like (changing any values as needed for your local network)
Code:
auto eth0
iface eth0 inet static
address 192.168.1.240
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 8.8.8.8 8.8.4.4
Now we need to restart the network so changes take effect, this should be able to be done without restarting the board itself, but none of the usual ways seem to be working for me so we can just reboot the board
Code:
sudo reboot
Now once we login we can check and make sure out network settings are working by running ifconfig
Code:
tomd@marvin2:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 36:c9:e3:f1:b8:05
inet addr:192.168.1.240 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::34c9:e3ff:fef1:b805/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20537 errors:0 dropped:0 overruns:0 frame:0
TX packets:19598 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6151787 (6.1 MB) TX bytes:3605516 (3.6 MB)
Interrupt:114
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:264 errors:0 dropped:0 overruns:0 frame:0
TX packets:264 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19785 (19.7 KB) TX bytes:19785 (19.7 KB)
If all went well, our inet addr should now match our desire static IP!
Now getting Pi-hole on the rest of the way is easy!
Code:
curl -L install.pi-hole.net | bash
It will take a few as it downloads and installs necessary packages, it will get made that PHP5 packages aren't available but we already install PHP7 so it seems to work for me!
Just follow all the prompts, I left the network interface stuff alone since we already configured that and once the installer finishes, it should be ready to go!
Next you'll need to change the DNS server your computer or device is using to the IP you set for your Pi-hole (192.168.1.240 for me).
Then to access the Web Control Interface, point your browser to
http://192.168.1.240/admin/index.php
You should get a page similar to mine
Let me know if this helps anybody out! If you have problems, I'll do my best to help troubleshoot but am no means an expert on this!