Install UNIFI Ubuntu

New Member
Posts: 3
Registered: ‎05-31-2017
Kudos: 3

Install Unifi on Ubuntu Desktop 18.04 LTS – Complete

[ New ]

I was looking for complete instructions on the process of installing and running Unifi in it’s current state, version 5.6.37 on Ubuntu. With the newest LTS just rolling out it seemed opportune to figure it all out.  I will warn you now that I am not a linux user, but I think you’ll find this approach pretty easy to follow and effective.  This is bare bones instructions, hope they work for you!
Start with a fresh install of Ubuntu Desktop 18.04LTS
  1. Go to the ubnt.com download page and click to download the debian/ubuntu package.
  2. Open it using the default applications installer.
  3. Open terminal and enter:
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    cd /usr/bin
    sudo mv mongod mongod.bin
    sudo gedit mongod
  4. Enter the following into the text editor*:
    #!/bin/bash
    cleaned_args=$(echo $* | sed -e 's/--nohttpinterface//')
    exec /usr/bin/mongod.bin ${cleaned_args}
  5. Go to chrome.com and download and install chrome, the same way you installed Unifi in step 2.
  6. I rebooted, you may not need to, but now open chrome and go to https://localhost:8443
That should be it, this is the most efficient way I could figure to get everything happy. I’ll read this again when I’m awake to make sure I didn’t skip anything I did. Maybe duplicate the process on a virtual machine and get screenshots. In the meanwhile, I hope this helps someone, because I had a heck of a time putting all the pieces together. I don’t have cloud connect working, but I remember running across that in my journey. So I’ll update and get that into here tomorrow.
*This part may not be necessary, I was a bit tired and forgot to try opening the website with Chrome. Which is the only browser that plays nice with Unifi. So if someone tries it before I get back to this, let me know! Luckily, it only takes a moment.

New Member
Posts: 6
Registered: ‎02-11-2018

Re: Install Unifi on Ubuntu Desktop 18.04 LTS – Complete

[ New ]

It worked without reboot.

But I did a :

sudo service unifi restart

I also just followed this guide and did the installation through SSH instead of manual download:

https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-U…