Back to photostream

How to Install UniFi Controller on Ubuntu 22.04 or 24.04

UniFi is a range of networking products from Ubiquiti, designed for both home and business users. The UniFi Controller is a centralized management system for UniFi access points, switches, security gateways, and cameras.

 

 

Instead of purchasing a UniFi Cloud Key, you can install the UniFi Controller software on your Ubuntu 22.04 or 24.04 server for free.

 

 

Step 1: Update Your System

 

 

Before installing the UniFi Controller, update and upgrade your system.

 

 

sudo apt update && sudo apt upgrade -y

 

 

Once completed, reboot your server.

 

 

sudo reboot now

 

 

Step 2: Install Required Dependencies

 

 

The UniFi Controller requires OpenJDK 17 and other dependencies. Install them using:

 

 

sudo apt install -y openjdk-17-jre-headless gnupg curl

 

 

Verify Java installation.

 

 

java -version

 

 

Step 3: Add the UniFi Repository

 

 

1. Import the UniFi GPG Key

 

 

curl -fsSL dl.ui.com/unifi/unifi-repo.gpg | sudo tee /usr/share/keyrings/unifi-repo.gpg > /dev/null

 

 

2. Add the UniFi Repository

 

 

echo 'deb www.ui.com/downloads/unifi/debian stable main' | sudo tee /etc/apt/sources.list.d/unifi.list

 

 

Update the package list.

 

 

sudo apt update

 

 

Step 4: Install the UniFi Controller

 

 

Now, install UniFi Controller.

 

 

sudo apt install -y unifi

 

 

Step 5: Start and Enable UniFi Service

 

 

Start the UniFi service.

 

 

sudo systemctl start unifi

 

 

Enable UniFi to start on boot.

 

 

sudo systemctl enable unifi

 

 

Check if UniFi is running.

blog.revold.us/how-to-install-unifi-controller-on-ubuntu-...

16 views
0 faves
0 comments
Uploaded on April 23, 2025