Skip to content

Instantly share code, notes, and snippets.

@jeanlescure
Created April 30, 2021 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanlescure/5607bedd1b84bf52b1d33b00ace96e39 to your computer and use it in GitHub Desktop.
Save jeanlescure/5607bedd1b84bf52b1d33b00ace96e39 to your computer and use it in GitHub Desktop.

Update Java 8

This step is pretty important with the newer release of the Unifi Controller. Starting with version 5.10.x the old Java version that comes with Raspbian isn’t supported anymore. So we are going to replace it with OpenJDK 8.

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

Installing the Unifi Controller Raspberry Pi

So with our Raspberry Pi ready we can start with installing the Unifi Controller on the Raspberry Pi.

  1. Add the repository for the Unifi Controller All Linux distros come with a source list, repository, of available packages to install. Unifi Controller is not listed in the default repositories, so we need to add it first:
echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
  1. Authenticate the software To install the Unifi Controller software we need to authenticate the software that it’s the real software from Ubiquiti. This can be done with a GPG key so we can authenticate the software.
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg
  1. Install the Unifi Controller We now have added the software to our list of available software and have the ability to check its authenticity. So let’s download the software and install the Unifi Controller on the Raspberry Pi:
sudo apt-get update; sudo apt-get install unifi -y
  1. Cleanup MongoDB The installation may take a couple of minutes to complete. When done, we need to remove the default database that comes with MongoDB instance. This would only waste resources of our Pi, so we get rid of it:
sudo systemctl stop mongodb 
sudo systemctl disable mongodb
  1. Finished installing the Unifi Controller on the Pi The only step left is to reboot the Pi
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment