Note: UniFi Dream Machines and UniFi Cloud Keys come with preinstalled controllers, so installation is not necessary. Proceed to configure controller. Install the UniFi Network Controller. First, you'll need to download and install the controller version for your platform. Make sure to meet system requirements before you begin. Network and clients go hand in hand, so UCRM is now part of UNMS. From seamless invoicing to ticketing and customer support, UNMS’ CRM module.

I’m running a UniFi network here with wireless access points, the Security Gateway and a PoE switch. It seems to be a robust system and is almost certainly overkill, but reliability is high on my lists after bad experiences with a NetGear WiFi router.

The UniFi system software is called the Controller and runs on a various operating systems. As I have a Mac mini here, I decided to run it on there. Weirdly, however it runs as a GUI application which means that I have to be logged in. There’s no need for that though as by scouring the Internet I discovered that we can run it headless via launchd.

Firstly we create /Library/LaunchDaemons/com.unifi.controller.service.plist. This file has to be owned by root with group of wheel:

ControllerFor
2
4
6
<array>
<string>-c</string>
<string>exec'/Library/InternetPlug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java'-Djava.awt.headless=true-Xmx1024M-jar/Applications/UniFi.app/Contents/Resources/lib/ace.jarstart</string>

(You may need change the path to where your Java 8 is installed.)

This means that when Ubiquiti updates the bundled Java, our service continues to work. We also need to set the working directory to the Resources directory of the app bundle as it doesn’t work otherwise…

Update: Since this post was written, Ubiquiti no longer bundle Java, I have updated appropriately based on the comment from Wade Gibson.

Secondly, we install the service:

Unifi Controller Download For Macbook Pro