Install Unifi Controller on VPS

Home / Misc / Install Unifi Controller on VPS

I have realized why they are charging at least 20$/month for a hosted Unifi controller solution – one of the reasons for this price is that it actually took me a few days to set it up right.

I bought a VPS (OVH.com) for about 5$/month and installed Unifi controller on which I have added (migrated) all my costumers Unifi APs.

1. My choosen OS is Ubuntu 16.04 Server (64 bits, Linux Kernel 4.4.0.45.48)

2. Add the Unifi repo so you can install Unifi with apt-get command

I like to use NANO editor.

nano /etc/apt/sources.list.d/100-ubnt.list and add “deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti” so you can install and update the controller.

3.

Since there is a known kernel problem with the jsvc and that stopped Unifi controller from running normally so I added this commands to solve it.

Check here (uname -a): https://community.ubnt.com/t5/UniFi-Routing-Switching/IMPORTANT-Debian-Ubuntu-users-MUST-READ-Updated-07-06-17/m-p/1968251#M48264

UniFi:
echo “JSVC_EXTRA_OPTS=\”\$JSVC_EXTRA_OPTS -Xss1280k\”” | sudo tee -a /etc/default/unifi
UniFi Video (NVR):
echo “JSVC_EXTRA_OPTS=\”\$JSVC_EXTRA_OPTS -Xss1280k\”” | sudo tee -a /etc/default/unifi-video

 

4. The GPG keys are needed for the new repo.

sudo aptkey adv keyserver keyserver.ubuntu.com recv C0A52C50

5. Update and install Unifi

sudo aptget update
sudo aptget install unifi
6. Check is your Unifi running.
sudo service unifi status
7. Access your Unifi Controller via browser
http://vps495531.ovh.net:8443
and the initial configuration should appear.

Leave a Reply

Your email address will not be published. Required fields are marked *

Visit Us On LinkedinVisit Us On Google PlusCheck Our Feed