How to install the Ubiquiti UNMS on Debian 9.1
If you use Ubiquiti hardware outside of the UniFi line, then you are going to want to run their UNMS platform. I highly recommend that you set one up on a cloud provider using a Debian 9.1 base. Ubiquiti builds on Ubuntu, but screw Ubuntu.
Get Debian 9.1 installed however you desire. I have a guide here for setting up a minimal install.
First up, install
sudo apt-get install curl netcat -y
Then you download and execute the UNMS install script. It will download everything else and configure it all. Ubiquiti has chosen to use Docker for this.
curl -fsSL https://raw.githubusercontent.com/Ubiquiti-App/UNMS/master/install.sh > /tmp/unms_install.sh && sudo bash /tmp/unms_install.sh
Unless you like using self signed certs, get a FQDN setup for your system while it is installing. Something like unms.domain.com would be perfect.
When the install completes, you should see this.
Navigate to your FQDN and perform the setup, https://unms.jaredbusch.com for my demo system. If you navigate to the HTTP instance, it should redirect you to the HTTPS instance with a currently self signed certificate. Firefox puked on it, but Chrome worked. It will automatically attempt to setup a Let's Encrypt certificate.
And then you will be presented with the setup screen. Populate appropriately.
Setup email if you want.
Grab your code to put in your routers.
There you go.