Installing UniFi controller in Debian 7 (wheezy)

Installing UniFi controller in Debian

1. Edit /etc/apt/sources.list
Add:
# Ubiquiti UniFi updates
deb http://www.ubnt.com/downloads/unifi/distros/deb/debian debian ubiquiti

2. Add GPG keys
Run:
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv C0A52C50
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10

3. Run the following commands
sudo apt-get update
sudo apt-get install unifi

It should now start and be running at https://:8443/

NOTE:

You might have to modify the path in for java in /etc/init.d/unifi                                                I had to change this from JAVA_HOME=/usr/lib/jvm/java-6-openjdk to  JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64

UniFi Controller default TCP ports:

unifi.shutdown.port=8081 (for management purpose)
unifi.http.port=8080 (device inform)
unifi.https.port=8443 (controller UI / API)
portal.http.port=8880 (portal redirect port for HTTP)
portal.https.port=8843 (portal redirect port for HTTPs)
unifi.db.port=27117 (local-bound port for DB server)

And UDP port 3478.

Installing mFi controller in Debian 7 (wheezy)

I’ve been running the mFi controller on a Windows server, but wanted to move it to my Debian box – The install for Windows is quite simple, click and run – but for Debian a few more steps is required, so here is what I did to get it up and running

I am running Debian 7 (7u2 – Wheezy)

1. Edit /etc/apt/sources.list
Add:
## Debian Wheezy (7.0)
deb http://dl.ubnt.com/mfi/distros/deb/debian debian ubiquiti

2. add GPG Key
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv C0A52C50

3. Run the following commands
sudo apt-get update
sudo apt-get install mfi

It should now start and be running at https://<yourserver>:6443/

NOTE: If your not already running MongoDB, The installation guide can be found here Install MongoDB on Debian