Pine as a Pi-hole ... Does that make it a PineHole?
#1
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
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

[Image: pinehole.jpg]

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!
  Reply


Messages In This Thread
Pine as a Pi-hole ... Does that make it a PineHole? - by tomd - 04-28-2016, 01:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine 1 will no longer boot (bricked) dstallmo 0 1,299 06-22-2023, 12:22 PM
Last Post: dstallmo
  Xenial Minimal Image (PINE A64(+)) 0.6.2-77 pineadmin 4 21,632 08-30-2020, 10:35 AM
Last Post: jrronimo
  Successful build on arm64 pine a64 1GB on armbian alladinrouteme 1 4,056 09-23-2019, 03:30 AM
Last Post: cr2016
  Pine hangs up on boot if I add my exFAT USB drive to /etc/fstab pqueiro 0 3,059 06-10-2019, 12:07 PM
Last Post: pqueiro
  Pine Board using linux stuck during boot sequence ktaragorn 0 2,809 03-23-2019, 04:06 AM
Last Post: ktaragorn
  PINE A64 upgrade to 18.04 possible? RandomUser324 4 9,346 11-29-2018, 11:46 PM
Last Post: tllim
  Xenial Minimal Image (PINE A64(+)) 0.5.5-65 pineadmin 0 4,123 06-15-2017, 12:37 AM
Last Post: pineadmin
  Xenial Minimal Image (PINE A64(+)) 0.5.2-59 pineadmin 0 3,808 05-25-2017, 09:27 AM
Last Post: pineadmin
  Unable to start Pine Topgun505 16 17,940 11-13-2016, 12:01 AM
Last Post: Gnx
  Problem with Pine honkimonk1 1 3,377 10-11-2016, 09:03 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)