Joel Stahre

Software Development Engineer

Unifi Controller 4 running on raspberry pi

1 year ago · 1 MIN READ
#unifi  #Ubiquiti Networks  #raspbian 

The following steps shows how to install the Unifi Controller 4 from Ubiquiti Networks on your Raspberry Pi.

Preparations:

1. A clean installation of Raspbian Jessie (these steps will not work if you run Raspian Wheezy). Raspian Jessie will boot directly into desktop mode, if you prefer to only use the CLI interface, you can change this in the raspi-config.

2. It is recomended that you set the value of Memory Split to 16 MB

3. If you are already running a Unifi controller, then you may also want to create a backup of that configiration so you can import that settings into your new Unifi Controller.

Installation:

Make sure you're updated:

sudo apt-get update && sudo apt-get upgrade -y

Update to the latest firmware:

sudo rpi-update

Now add the UniFi repository to the sources list:

sudo -i
echo "deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti" >
/etc/apt/sources.list.d/unifi.list
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
apt-get update
exit

Install Unifi controller: This will also install all of its dependencies such as MongoDB and Java 7.

sudo apt-get install unifi -y

There will be two intances of MongoDB running, disable the default instance.

sudo echo 'ENABLE_MONGODB=no' | sudo tee -a /etc/mongodb.conf > /dev/null

Reboot your Raspberry Pi:

sudo reboot

You will now be able to browse to the following URL;

https://your-raspberrypi-ip:8443

The controller will restart itself if you reboot your raspberry pi.

Congratulations, you know have a Unifi Controller 4 running on your Raspberry Pi!

···

Joel Stahre


comments powered by Disqus


Proudly powered by Canvas · Sign In