23 September 2019

Installing Unifi Controller on Ubuntu 16.04

Here are the steps that I had to do to get Ubiquiti Unifi Controller software installed on Ubuntu 16.04

  1. Add the gpg key:
    • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
  2. Add the repo:
    • echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
  3. Update Sources:
    • sudo apt update
  4. Install the software:
    • sudo apt install unifi
Unfortunately, this resulted in JAVA_HOME not found errors in /usr/lib/unifi/logs/server.log. This is because the unifi software requires Java, but it couldn't find it. I tried to point to the Java 9 path, but that just resulted in errors like: /usr/lib/unifi/data/keystore (Permission denied). Apparently, the software only works with Java 8. To resolve this issue, I installed Java 8 and restared unifi with the following commands:
  • sudo apt-get install openjdk-8-jre
  • sudo service unifi restart
Then head over to https://localhost:8443 to complete the setup

No comments:

Post a Comment