5 2 100 37
|⇐ Back||Page||Next ⇒|
The next step is to install the UniFi Controller software.
- Add the UniFi repository to the sources list, using the following commands:
echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee -a /etc/apt/sources.list.d/ubnt.list > /dev/null sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 sudo apt-get update
- Install UniFi, using the following package install command:
sudo apt-get install unifi -y
The installation takes a couple of minutes to complete, but is fully automated and includes all the prerequisite components such as MongoDB and OpenJDK Java 7.
- Disable the default MongoDB database instance, using the following commands:
echo 'ENABLE_MONGODB=no' | sudo tee -a /etc/mongodb.conf > /dev/null
Without making this small configuration change, you will have two separate instances of MongoDB running; an unused default database instance, and the UniFi database instance. This is obviously not desirable on a device with limited resources, such as the Raspberry Pi.
- Update to the Snappy Java Library, using the following commands:
sudo rm snappy-java-1.0.5.jar
sudo wget https://repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.4-M3/snappy-java-1.1.4-M3.jar
sudo ln -s snappy-java-1.1.4-M3.jar snappy-java-1.0.5.jar
This fixes a number of issues particularly with the older models of Raspberry Pi, but also brings the library well up-to-date as the version Ubiquiti includes with the UniFi package is from 2013.
- Once completed, reboot your Raspberry Pi using the following command:
- When the reboot is complete, use a web browser to view HTTPS port 8443 on your Raspberry Pi:
<raspberrypi>in the above example with the IP address of your Raspberry Pi. The UniFi Setup Wizard page will be displayed.
- Select your country and timezone, then click Next. The Configure devices page will be displayed.
- If you have any unmanaged devices on the network, you may select them here, then click Next. The Configure WiFi page will be displayed.
- Enter your new wireless Secure SSID and Security Key, then click Next, or click Skip to do this later. The Controller Access page will be displayed.
- Enter an Admin Name, Admin Email and Password for UniFi Controller access, then click Next. The Confirm page will be displayed.
- Review the settings shown, then click Finish. The Cloud Login Credentials page will be displayed.
- Enter your UBNT Cloud Username and Password, then click Enable Cloud Access – or alternatively click Skip to bypass cloud functionality. The Sign In page will be displayed.
- Enter your Admin Name and Password, then click Login. The Dashboard will be displayed.
The Ubiquiti UniFi Controller software is now installed and running on your Raspberry Pi!
|⇐ Back||Page||Next ⇒|5 2 100 37