September 14, 2015

Install/configure UniFi Controller on Debian

At the Creative Monkeys office and at Phonoid we use UniFi APs. So we have to run UniFi Controller to take advantage of all their functionalities. Let's then see how to install and run it on a dedicated Debian host.


To start let's set a static IP address to the host.

/etc/network/interfaces :
allow-hotplug eth0
iface eth0 inet static

Then UniFi Controller (unfortunately) relies on MongoDB. So we have to install it first.

Add repositories :

/etc/apt/sources.list.d/10gen.list :
deb dist 10gen
/etc/apt/sources.list.d/ubiquiti.list :
deb stable ubiquiti

and their keys :

$ apt-key adv --keyserver --recv 7F0CEB10
$ apt-key adv --keyserver --recv C0A52C50

Update and upgrade packages :

$ apt-get update
$ apt-get upgrade

Install Java and UniFi packages :

$ apt-get install -y openjdk-7-jdk
$ apt-get install -y unifi-beta

Start the service :

$ /etc/init.d/unifi start

The UniFi Controller is now running at :8443. You can sign in and start adopting your APs !

I hope this guide will help someone or Future Me.

Vous voulez travailler avec moi ?

Je suis développeur et consultant sur des projets informatiques dans ma société, Phonoid. Avec mes amis, nous y développons des solutions sur mesure pour nos clients. Nous travaillons également sur nos futurs produits.