Install UniFi Controller on Raspberry Pi
- Install and update 64-bit OS.
- Set a static IP. From the terminal enter
nano /etc/dhcpcd.confand uncomment the lines under Example static IP configuration. Reboot to apply and test. - Install rng-tools with
sudo apt install rng-tools. The config in /etc/default/rng-tools-debian should be modified. Uncomment the line withHRNGDEVICE=/dev/hrng. Once the file is saved restart withsudo systemctl restart rng-tools. - Prior to installing the UniFi controller, an older version of libssl needs to be installed and mongodb installed, enabled, and started.
wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4_arm64.deb -O libssl1.0.deb sudo dpkg -i libssl1.0.deb wget https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.6/multiverse/binary-arm64/mongodb-org-server_3.6.22_arm64.deb -O mongodb.deb sudo dpkg -i mongodb.deb sudo systemctl enable mongod sudo systemctl start mongod - Rather than downloading and installing the Debian package, we will add the repository so that it can be managed with apt. Enter
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/ubiquiti-archive-keyring.gpg] https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list >/dev/nullto add the repository to the apt configuration. Next, add the key to your trusted keys withcurl https://dl.ui.com/unifi/unifi-repo.gpg | sudo tee /usr/share/keyrings/ubiquiti-archive-keyring.gpg >/dev/null. - Run
sudo apt updateto update the package repository. - Install the UniFi package with
sudo apt install unifi. Answer yes to continue. - Check the service status with
sudo service unifi status. If it hasn't started install Java withsudo apt install openjdk-17-jre-headless unifi. - Run
sudo service unifi startto start the service again. - You should now be able to access the controller at https://{your-ip}:8443 and begin configuration.