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


⇐ BackPage⇑ First

Installation Script

To automate the installation process, we have created a simple UniFi Installation Script for Raspberry Pi that performs all the following actions for you:

  • Installs the latest Raspbian package updates;
  • Installs the Oracle Java 8 JDK;
  • Adds the UniFi repository to the sources list;
  • Install the UniFi controller software;
  • Disables the default MongoDB database instance; and
  • Removes UniFi Cloud Library support on ARMv6 boards.

The UniFi Installation Script for Raspberry Pi can also be run periodically to update the UniFi software and ensure you have the latest version installed.

The following steps explain how to use the UniFi Installation Script for Raspberry Pi to perform an automated installation of the UniFi controller software.

  1. Change to the root of the user’s home directory, using the following command:
    cd ~
  2. Download the script directly from GitHub, using the following command:
    wget -O unifi.sh https://gist.github.com/TechnologistAU/40ce7a5232356f53bb63f85a89a57a38/raw
  3. Mark the script as executable, using the following command:
    chmod +x ./unifi.sh
  4. Execute the script, using the following command:
    sudo ./unifi.sh
  5. Once the script has completed, reboot your Raspberry Pi using the following command:
    sudo reboot

    When the reboot is complete, return to the Setup Wizard instructions to finalise your installation.

⇐ BackPage⇑ First


Please share with your friends...
  • 176
  • 5
  •  
  • 2
  • 100
  • 37
  •  
  •  
  •  
    320
    Shares
Tagged on:                                                         

8 thoughts on “How to Install Ubiquiti UniFi Controller 5 on the Raspberry Pi

  • 20/01/2018 at 11:23 AM
    Permalink

    Newer advice is that the “apt-key adv” command requires too much infrastructure and since the introduction of /etc/apt/trusted.gpg.d/ then gpg can be used directly; it works fine if instead of installing dirmngr and using apt-key adv, you use: gpg –keyserver keyserver.ubuntu.com –recv-key 06E85760C0A52C50

    Reply
    • 18/02/2018 at 5:22 PM
      Permalink

      Hi John,
      Sorry for the late reply. Thanks for the information, I’ve tested and updated the guide to reflect this.
      Thanks again,
      Chris.

  • 29/01/2018 at 12:59 PM
    Permalink

    I followed the instructions and it was working great. I was able to get in and manage the controller several times. Suddenly The page will not load when I try to. ERR_CONNECTION_REFUSED

    Any ideas?

    Reply
  • 08/02/2018 at 5:08 PM
    Permalink

    I learned the hard way you cannot run this on the wheezy build of raspbian.

    Reply
  • 26/02/2018 at 7:45 AM
    Permalink

    I’ve installed the controller on my Pi 3 running stretch. Everything seems to go ok. I try to access the controller at port 8443 of my Pi and I get a “site cannot be reached”. Any tips on debugging this? Is there a way from the command line to see if the controller is running? Thanks!

    Reply
    • 26/02/2018 at 2:18 PM
      Permalink

      I figured it out. I had another program that was using port 8080. I changed it to use 8081 and the UniFi Controller fired right up.

  • 28/03/2018 at 4:02 PM
    Permalink

    I’d like to install the unifi 5 controller on a armv5tel (armel) platform. what should I consider then? thanks!

    Reply
  • 12/04/2018 at 3:49 PM
    Permalink

    instructions work like a charm for upgrading.

    Reply

Leave a Reply