Skip to content

Instantly share code, notes, and snippets.

@TechnologistAU
Last active October 10, 2019 02:57
Show Gist options
  • Save TechnologistAU/40ce7a5232356f53bb63f85a89a57a38 to your computer and use it in GitHub Desktop.
Save TechnologistAU/40ce7a5232356f53bb63f85a89a57a38 to your computer and use it in GitHub Desktop.
UniFi 5 Installation Script for Raspberry Pi
#!/bin/bash
################################################################################
#
# This script automates the installation of the UniFi controller software on the
# Raspberry Pi.
#
# http://www.technologist.site/ubnt
#
################################################################################
apt-get update && apt-get -y upgrade
apt-get -y install oracle-java8-jdk
echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' > /etc/apt/sources.list.d/100-ubnt.list
wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg
apt-get update
apt-get -y install unifi
systemctl stop mongodb
systemctl disable mongodb
if [[ "$(uname -m)" =~ ^armv6.* ]]; then
rm /usr/lib/unifi/lib/native/Linux/armhf/libubnt_webrtc_jni.so
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment