Skip to content

Instantly share code, notes, and snippets.

@danielmconrad danielmconrad/unifi-pi.md
Last active Apr 12, 2019

Embed
What would you like to do?
Installing Unifi Controller + Pi-hole on a Raspberry Pi

Installing Unifi Controller + Pi-hole

Update Packages

sudo rpi-update
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install vim -y

Configure Pi

Base Config

sudo raspi-config
  1. Update the tool
  2. Change password
  3. Update hostname
  4. Update Timezone
  5. Expand file system
  6. Change memory split
  7. Reboot

Network Config

sudo vi /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.2/24
static routers=192.168.1.1
sudo ifconfig eth0 down && sudo ifconfig eth0 up

Reconnect to the Pi.

Install Java

sudo apt-get install dirmngr -y
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com EEA14886
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | sudo tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo apt-get update
sudo apt-get install oracle-java8-installer -y

Install Unifi

echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg
sudo apt-get update
sudo apt-get install unifi -y

Install Pi-hole

curl -sSL https://install.pi-hole.net | bash
pihole -a -p

Updating Everything at a Later Date

sudo apt-get update; sudo apt-get upgrade -y
pihole -up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.