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/

Ubuntu 16.04 – x11vnc running at startup

Abbreviated version of setting up x11vnc on Ubuntu 16.04 based systems:

sudo x11vnc -storepasswd /etc/x11vnc/passwd
sudo vi /lib/systemd/system/x11vnc.service
Description=Start x11vnc at startup.

ExecStart=/usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc/passwd -forever -bg -nodpms -rfbport 5900 -rfbversion 3.6 -permitfiletransfer -shared -dontdisconnect -alwaysshared -o /var/log/x11vnc.log

sudo systemctl enable x11vnc.service
sudo systemctl daemon-reload
sudo service x11vnc restart

Source: Ubuntu 16.04 – Configure your system to have x11vnc running at startup – Griffon’s IT Library

How to get list of installed packages on Ubuntu / Debian Linux

Explains how to list all installed packages on Debian/Ubuntu Linux and restore them as per your need on another system.

Source: How to get list of installed packages on Ubuntu / Debian Linux

Bad Behavior has blocked 107 access attempts in the last 7 days.