This post uses a VM with 2 CPUs 2GB memory and 20GB disk space running Ubuntu 20.04.
Now would be a good time to give your system a static IP or set a DHCP reservation if you haven’t already.
Update and upgrade the OS with sudo apt update && sudo apt upgrade -y.
Add UniFi to apt’s sources list
Add UniFi repo’s GPG key to apt’s trusted keys.
Run sudo apt update to update. You should see ui.com on your list now.
Install JRE 8 and the UniFi controller with sudo apt install openjdk-8-jre-headless unifi -y
Enable the unifi service so it runs when the system boots
Start the unifi service
The first startup may take a few minutes.
You can watch the unifi service logs with journalctl -fu unifi.
journalctl
-f: follow (live update)
-u: unit (service)
Press ctrl+c to exit this view.
You can access the controller at https://<server ip>:8443