Hi guys this is the definitive error proof for unifi controller for linux
** DO NOT USE PURE DEBIAN SERVER USE UBUNTU SERVER INSTEAD**
1.- Go to https://help.ubuntu.com/community/Installation/MinimalCD
Download 64-bit PC (amd64, x86_64) Ubuntu 14.10 „Utopic Unicorn“ Minimal CD 39MB and install it.. and dont forget to add SSH Server, use hostname unifi and add a DNS entry
2.-SSH into the server and execute:
# echo „deb http://www.ubnt.com/downloads/unifi/distros/deb/squeeze squeeze ubiquiti“ >> /etc/apt/sources.list.d/20ubiquiti.list
# apt-key adv –keyserver keyserver.ubuntu.com –recv C0A52C50
# echo „deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen“ >> /etc/apt/sources.list.d/21mongodb.list
# apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10
# apt-get update
#apt-get install unifi (for 3.2 RECOMMENDED)
or
# apt-get install unifi-beta (for 4.6)
3.- u will get a java error. * Starting Ubiquiti UniFi Controller unifi Cannot locate Java Home [fail] .. to fix it run the following commands
# nano /etc/init.d/unifi
search for JAVA_HOME and change the path to /usr/lib/jvm/java-7-openjdk-amd64
now
# sudo /etc/init.d/unifi start
4.- now lets install the 4.2 Stable version
# apt-get remove unifi or #apt-get remove unifi-beta
# wget http://www.ubnt.com/downloads/unifi/4.2.0/unifi_sysvinit_all.deb
# dpkg -i unifi_sysvinit_all.deb
now type:
#ifconfig
Open your Broswer and go to https://YOUR_IP:8443
Done.