UniFi Controller on a Raspberry Pi

Home, Bangkok, Thailand, 2020-03-13

#infrastructure

 

I’ve added some UniFi devices to my network and need the UniFi Controller software to configure and manage them. The logical place to deploy the Controller is on my control node which is a Raspberry Pi. It turns out to be easy to do this - here’s now:

Upgrade for Good Measure

sudo apt update && sudo apt upgrade -y

Install Java 8

Not Java 11.

sudo apt install -y openjdk-8-jre-headless

Register Package Source

Register the Ubiquity package repository and trust their pgp key:

echo 'deb http://www.ui.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 update

Install

sudo apt install -y unifi

Reboot

sudo reboot

Access the Console

The UniFi Controller is now running and accessible at https://yourcontroller:8443/