Install UniFi Controller on your Raspberry Pi

CloudKeys are nice – but if we already have a Raspberry lying around, why not use that to host the UniFi Controller? Here are the steps to do so.

We’ll update the Raspbian installation, add the necessary packages (openjdk8) circumvent the slow startup time which occurs because of the lack of harvesting mouse movement as base for randomness (haveged) and finally, add the UniFi repo and key to our sources and install the controller itself. Let’s go!

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y
sudo apt-get install openjdk-8-jre-headless -y
sudo apt-get install haveged -y
sudo apt-get install apt-transport-https -y
echo 'deb stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg
sudo apt-get update && sudo apt-get install unifi -y

Now all that’s left is to point your browser to https://<raspberry_ip_address>:8443 and enjoy your shiny new controller!

Thanks for reading! Please consider Buying me a Coffee or checking out Colibri!