Unifi on Debian

1. install unifi, with wheezy provided mongodb (2.0.6)

echo "deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
apt-get update
apt-get install unifi
2. disable mongodb daemon
nano /etc/init.d/mongodb
ENABLE_MONGODB="yes" -> "no"

3. use small files for unifi journals

echo "unifi.db.extraargs=--smallfiles" >> /var/lib/unifi/system.properties

3.a optional: change the default ports in this file for added security

4. remove the 3-4 GB folders created for journal files

du -a / | sort -n -r | head -n 20
rm -rf /var/lib/mongodb/journal
rm -rf /var/lib/unifi/db/journal
du -a / | sort -n -r | head -n 20

5. reboot computer or stop the mongodb service and restart unifi service

6. log in on port https://……:8443/