How to Install Ubiquiti UniFi Controller 5 on the Raspberry Pi
Please share with your friends...
  • 178
  • 6
  •  
  • 2
  • 100
  • 37
  •  
  •  
  •  
    323
    Shares


⇐ BackPageNext ⇒

UniFi

The next step is to install the UniFi Controller software.

  1. 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/100-ubnt.list > /dev/null
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
    sudo apt-get update
    In the first command above, the source name stable represents the current supported UniFi release. However, if you wish to use a different release, you may use one of the following source names:
    UniFi 5.5 = oldstable
    UniFi 5.6 = stable
    UniFi 5.7 = testing
  2. Install UniFi, using the following package install command:
    sudo apt-get -y install unifi

    The installation takes a couple of minutes to complete, but is fully automated and includes components such as MongoDB.

  3. Stop and disable the default MongoDB database instance, using the following commands:
    sudo systemctl stop mongodb
    sudo systemctl disable mongodb

    Without making this 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.

  4. On the Raspberry Pi 1 and Raspberry Pi Zero (W), which are both older ARMv6-based devices, UniFi Cloud Library support must be removed using the following command:
    sudo rm /usr/lib/unifi/lib/native/Linux/armhf/libubnt_webrtc_jni.so

    UniFi Cloud access is not supported on ARMv6-based devices, and the presence of this library will stop the UniFi software from starting on these devices.

  5. Once completed, reboot your Raspberry Pi using the following command:
    sudo reboot

    When the reboot is complete, proceed with the Setup Wizard.

    The UniFi service can take several minutes before it is ready to serve web pages after a reboot.

Setup Wizard

  1. Use a web browser to view HTTPS port 8443 on your Raspberry Pi:
    https://<raspberrypi>:8443

    Replace <raspberrypi> in the above example with the IP address of your Raspberry Pi. The UniFi Setup Wizard page will be displayed.

    UniFi Setup Wizard: Welcome
    Thank you for purchasing UniFi, Ubiquiti’s Enterprise WiFi Solution. You will be able to setup your controller in a few minutes.
    Perform a clean installation
    Restore from a previous backup
    The Sign In page will be displayed.
    UniFi Sign In
    Sign In
  2. Enter your Username and Password, then click Sign In. The Dashboard will be displayed.
    UniFi Dashboard
    Dashboard

The Ubiquiti UniFi Controller software is now installed and running on your Raspberry Pi!

⇐ BackPageNext ⇒


Please share with your friends...
  • 178
  • 6
  •  
  • 2
  • 100
  • 37
  •  
  •  
  •  
    323
    Shares
Tagged on:                                                         

Leave a Reply