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

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

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 and my router is located at and we will use Googles DNS servers
sudo nano /etc/network/interfaces.d/eth0

By default this will probably look something like
auto eth0
iface eth0 inet dhcp

But we want it to me more like (changing any values as needed for your local network)
auto eth0
iface eth0 inet static

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
sudo reboot

Now once we login we can check and make sure out network settings are working by running ifconfig
tomd@marvin2:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 36:c9:e3:f1:b8:05
         inet addr:  Bcast:  Mask:
         inet6 addr: fe80::34c9:e3ff:fef1:b805/64 Scope:Link
         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)

lo        Link encap:Local Loopback
         inet addr:  Mask:
         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!
curl -L | 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 ( for me).

Then to access the Web Control Interface, point your browser to

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!

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
  Xenial Minimal Image (PINE A64(+)) 0.6.2-77 pineadmin 4 19,069 08-30-2020, 10:35 AM
Last Post: jrronimo
  Successful build on arm64 pine a64 1GB on armbian alladinrouteme 1 3,460 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 2,635 06-10-2019, 12:07 PM
Last Post: pqueiro
  Pine Board using linux stuck during boot sequence ktaragorn 0 2,384 03-23-2019, 04:06 AM
Last Post: ktaragorn
  PINE A64 upgrade to 18.04 possible? RandomUser324 4 8,094 11-29-2018, 11:46 PM
Last Post: tllim
  Xenial Minimal Image (PINE A64(+)) 0.5.5-65 pineadmin 0 3,783 06-15-2017, 12:37 AM
Last Post: pineadmin
  Xenial Minimal Image (PINE A64(+)) 0.5.2-59 pineadmin 0 3,461 05-25-2017, 09:27 AM
Last Post: pineadmin
  Unable to start Pine Topgun505 16 14,421 11-13-2016, 12:01 AM
Last Post: Gnx
  Problem with Pine honkimonk1 1 2,897 10-11-2016, 09:03 AM
Last Post: Luke
  Low Transfer Speeds from Pine Samba Server preimmortal 3 4,280 05-16-2016, 12:12 AM
Last Post: ebclr

Forum Jump:

Users browsing this thread: 1 Guest(s)