Installing Unifi Controller on Ubuntu 20.04 Server
SSH into the Ubuntu 20.04 Server, or login to the console.
Add the official repository for the Unifi Controller:
echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
Add the GPG keys so that the repository can be trusted:
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg
Install Java. Unfortunately, as of July 2021, the latest version of Java that the Unifi Controller supports is still Java 8.
sudo apt-get install openjdk-8-jre-headless -y
Install the rest of the prerequisites:
sudo apt install ca-certificates apt-transport-https
Install Unifi Controller:
sudo apt-get update
sudo apt-get install unifi -y
To auto start the Unifi Controller at boot:
sudo systemctl enable unifi.service
That’s it! By default, the Unifi controller will listen on port 8443. You can access the Unifi Controller GUI through the controller’s IP or FQDN in your we browser on port 8443.