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 super clients. Nous travaillons également sur nos futurs produits.
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.
Installation
To start let's set a static IP address to the host.
/etc/network/interfaces :allow-hotplug eth0
iface eth0 inet static
address 192.168.1.2
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255Then UniFi Controller (unfortunately) relies on MongoDB. So we have to install it first.
Add repositories :
/etc/apt/sources.list.d/10gen.list :deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gendeb http://www.ubnt.com/downloads/unifi/debian stable ubiquitiand their keys :
$ apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
$ apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50Update and upgrade packages :
$ apt-get update
$ apt-get upgradeInstall Java and UniFi packages :
$ apt-get install -y openjdk-7-jdk
$ apt-get install -y unifi-betaStart the service :
$ /etc/init.d/unifi startThe 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.