Install Unifi Controller on Raspberry PI

Installing and running the Unifi software on a raspberry Pi is actually straight forward and will not take you long to setup.

By setting uo the Unifi Network controller you can manage all your Unifi devices with a central interface.

You will need to ensire you have a Os on the SD card, Personally I use the Pi OS Lite.

Once you have installed your os and SSH into your Raspberry Pi, follow the below steps to get started.

sudo apt update
sudo apt upgrade

Install Headless Java

sudo apt install openjdk-8-jre-headless

Install rng-tools, This will ensure the Pi has enough entropy for the random number generator that the Unifi Software uses.

sudo apt install rng-tools

Make a small config change in rng-tools

sudo nano /etc/default/rng-tools

Find and uncomment the following line #HRNGDEVICE=/dev/hwrng


Press CTRL + X, the Y followed by ENTER

This will save the changes, restart rng-tools

sudo systemctl restart rng-tools

Lets get installing, We will need to add the UniFi repository

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

Run a package update

sudo apt update

Finally, Install the Unifi Controller software

sudo apt install unifi

Once installed you can browse to the server on your computer https://[IPADDRESS]:8443 if you cannot find / know the IP address run the following command.

hostname -I


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.