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.

HostStrengthsWatch out for
Virtual machine on an existing hypervisorSnapshots before upgrades, easy to move, no extra hardwareGive 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 serverLow power, dedicated, simple to reason aboutOne more box to patch and back up
ARM64 single-board computerVery low power, uses the ARM64 installerNeeds a 64-bit OS that meets the systemd, glibc and Podman requirements, plus fast storage rather than a slow memory card
Cloud VPSReachable from many sitesEvery 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:

  1. Confirm the architecture. Run uname -m. x86_64 means you need the x64 installer, aarch64 means ARM64.
  2. Confirm the release. Run cat /etc/os-release and check that it reports Ubuntu 24.04 or later, or Debian 13 or later.
  3. Check memory and disk. free -h and df -h should show at least 2 GB of RAM and 10 GB free on the root file system.
  4. 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.
  5. Set the hostname and time. A meaningful hostname helps in logs. Check timedatectl so the clock is synchronised; certificate and log problems often trace back to a wrong clock.
  6. Plan access. Decide whether you will link a UI Account for UniFi Site Manager, and who needs administrator access.
  7. 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 numbered

If 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:

  1. Is the service running? systemctl status uosserver shows whether it is active. If not, start it and watch the status again.
  2. What do the logs say? journalctl -u uosserver --since "1 hour ago" shows recent service messages from systemd.
  3. Is there room? A full disk or exhausted memory stops many services. Check df -h and free -h.
  4. Is it listening? sudo ss -tulpn lists open ports. Look for 11443 and 8080.
  5. Is the firewall in the way? sudo ufw status shows the active rules. Test from another machine on the management network.
  6. Did the address change? Compare ip addr with 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.

Written by the Unifi Controller editorial team

We write expert, source-checked guides to the UniFi Controller. We are not affiliated with Ubiquiti and do not claim hands-on test results unless stated. Spotted an error? Tell us and we will correct it.