On this page
Linux is the natural home for an always-on UniFi Controller. A small server, a mini PC or a virtual machine on Ubuntu or Debian runs quietly in the background and restarts on its own after updates.
Ubiquiti's current Linux package is UniFi OS Server, which uses Podman under the hood. This guide covers that install, the systemd commands you will use, and how it differs from the older apt-based Network Server install that many tutorials still describe.
Choose the right Linux host
Before you download anything, decide where the UniFi Controller will live. The software is light, but it should run around the clock, because devices report statistics and receive configuration from it. Each common option has trade-offs.
| Host | Strengths | Watch out for |
|---|---|---|
| Virtual machine on an existing hypervisor | Snapshots before upgrades, easy to move, no extra hardware | Give it a fixed address and SSD-backed storage; Ubiquiti says a standalone Docker or Podman container is not available, so use a full VM rather than a container |
| Mini PC or small server | Low power, dedicated, simple to reason about | One more box to patch and back up |
| ARM64 single-board computer | Very low power, uses the ARM64 installer | Needs a 64-bit OS that meets the systemd, glibc and Podman requirements, plus fast storage rather than a slow memory card |
| Cloud VPS | Reachable from many sites | Every exposed port is on the internet; restrict access tightly |
Whatever you pick, use a supported release (Ubuntu 24.04 or later, or Debian 13 or later) and meet Ubiquiti's minimum of 2 GB of RAM and 10 GB of free disk. A wired Ethernet connection is strongly preferable to Wi-Fi for the controller host. If you are still weighing self-hosting against a UniFi console, our UniFi hosting options guide compares the routes.
Pre-install checklist
A few minutes of preparation saves most of the problems people report after a Linux install. Work through this list before running the installer:
- Confirm the architecture. Run
uname -m.x86_64means you need the x64 installer,aarch64means ARM64. - Confirm the release. Run
cat /etc/os-releaseand check that it reports Ubuntu 24.04 or later, or Debian 13 or later. - Check memory and disk.
free -handdf -hshould show at least 2 GB of RAM and 10 GB free on the root file system. - Fix the address. Set a static IP in Netplan or
/etc/network/interfaces, or create a DHCP reservation on your router. Devices are told where the controller is, so a changing address breaks the link. - Set the hostname and time. A meaningful hostname helps in logs. Check
timedatectlso the clock is synchronised; certificate and log problems often trace back to a wrong clock. - Plan access. Decide whether you will link a UI Account for UniFi Site Manager, and who needs administrator access.
- If migrating, back up first. Export a backup from the old controller and copy it off the machine before you start.
Prepare the server
- Use a supported release: Ubuntu 24.04 or later, or Debian 13 or later.
- Give it at least 2 GB of RAM and 10 GB of free disk. Ubiquiti discourages hard disk drives unless you have 4 GB or more of RAM, and recommends SSDs.
- Assign a static IP address or a DHCP reservation.
- Update the system:
sudo apt-get update && sudo apt-get upgrade.
Install UniFi OS Server
sudo apt-get update && sudo apt-get install podman slirp4netns
curl -O <installer-link-from-ui.com>
chmod +x <installer-file>
sudo ./<installer-file>
Copy the installer link for your architecture from the UniFi OS Server releases page. wget works as well as curl. When the installer finishes, optionally link a UI Account so the server appears in UniFi Site Manager, then adopt devices.
Manage the uosserver service
sudo systemctl stop uosserver
sudo systemctl start uosserver
sudo systemctl enable uosserver # start at boot
sudo systemctl disable uosserver # do not start at boot
systemctl status uosserver
The last command is useful when the web page will not load. More checks are in UniFi Controller not starting.
Firewall on Linux
If you use ufw or another host firewall, allow the UniFi ports from your management network. Devices report to the controller on TCP 8080, use UDP 3478 for STUN and UDP 10001 for discovery. UniFi OS Server serves captive portals on 8444 and its web interface on 11443. Third-party documentation lists further internal ports, so check Ubiquiti's required ports reference if a feature does not work.
The legacy apt install
Older guides install the standalone Network Server from Ubiquiti's apt repository at https://www.ui.com/downloads/unifi/debian, which needs MongoDB. Ubiquiti's legacy help article lists Ubuntu 22.04 and Debian 11 for that package. The community GitHub install script automates this route. Since Network 10.6 is the final release line for the legacy server, new Linux installs should use UniFi OS Server.
First login after installation
When the installer completes, open a browser on another computer on the same network and go to https://<server-ip>:11443, the web interface port documented for UniFi OS Server. The browser will warn that the connection is not private. That is expected: a fresh self-hosted controller uses a self-signed certificate, and Ubiquiti says the warning can be ignored on your own server.
The setup wizard then asks you to create the local administrator. Use a long, unique password and store it in a password manager. Linking a UI Account is optional but enables UniFi Site Manager and the UniFi mobile app; if you link one, turn on two-factor authentication. The UniFi Controller login guide explains local and remote sign-in in more detail, and the first setup checklist covers the settings to review next.
Old bookmarks to port 8443 belong to the legacy Network Server. They will not open a UniFi OS Server install, so update them after a migration.
Example ufw rules
On Ubuntu, ufw is the usual host firewall. The example below allows the ports named earlier from a single management subnet. Replace 192.168.1.0/24 with your own network, and add SSH before enabling the firewall so you do not lock yourself out.
sudo ufw allow from 192.168.1.0/24 to any port 22 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 8080 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 3478 proto udp
sudo ufw allow from 192.168.1.0/24 to any port 10001 proto udp
sudo ufw allow from 192.168.1.0/24 to any port 8444 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 11443 proto tcp
sudo ufw enable
sudo ufw status numberedIf your UniFi devices sit on a separate VLAN, allow the device subnet for 8080 and 3478 as well. Keep port 11443 limited to administrators. Remote administration is better handled through Site Manager or a VPN than by opening the web interface to the internet; our security hardening guide goes further.
Updates and backups on Linux
A Linux UniFi Controller has two layers to keep current: the operating system and UniFi OS Server itself.
Operating system updates
Apply Ubuntu or Debian security updates on a regular schedule with sudo apt-get update && sudo apt-get upgrade. Kernel updates need a reboot. Because the uosserver service can be enabled at boot, the controller should come back on its own; confirm with systemctl status uosserver afterwards. Be careful with major distribution upgrades and check that the new release is still on Ubiquiti's supported list first.
UniFi OS Server updates
Ubiquiti says UniFi OS Server can be updated from Update Manager in Site Manager or from the local control plane settings. Read the release notes on ui.com before each upgrade, especially for major versions, and take a backup first.
Backups
- Download a backup from the controller before every upgrade and after significant configuration changes.
- Copy backups off the server, for example to a NAS or another machine. A backup on the same disk does not survive a disk failure.
- If the controller runs in a VM, a snapshot is a useful extra safety net, but keep the UniFi backup file too.
Restore steps are in our backup and restore guide.
Troubleshooting on Linux
When the web interface does not load or devices go offline, work from the host outwards:
- Is the service running?
systemctl status uosservershows whether it is active. If not, start it and watch the status again. - What do the logs say?
journalctl -u uosserver --since "1 hour ago"shows recent service messages from systemd. - Is there room? A full disk or exhausted memory stops many services. Check
df -handfree -h. - Is it listening?
sudo ss -tulpnlists open ports. Look for 11443 and 8080. - Is the firewall in the way?
sudo ufw statusshows the active rules. Test from another machine on the management network. - Did the address change? Compare
ip addrwith the address devices expect. A lost DHCP reservation is a common cause of mass disconnects.
If devices show as disconnected while the controller itself is healthy, the problem is usually on the network side. The adoption failed guide covers inform address and reachability checks.
Frequently asked questions
Does the UniFi Controller run on Ubuntu 24.04?
Yes. Ubiquiti lists Ubuntu 24.04 or later as supported for UniFi OS Server.
Can I install UniFi OS Server on a Raspberry Pi?
Ubiquiti publishes ARM64 Linux builds and lists generic requirements. A 64-bit OS that meets the systemd, glibc and Podman requirements is needed, plus fast storage.
Is there an official Docker image?
No. Ubiquiti says a standalone Docker or Podman container is not available because the installer needs host services.
How do I restart the controller on Linux?
Run sudo systemctl stop uosserver and then sudo systemctl start uosserver.
Sources
Facts in this guide were checked against these sources on November 16, 2026. Ubiquiti updates its software and documentation often.



