Skip to content

Instantly share code, notes, and snippets.

@latetedemelon
Forked from davecoutts/unifi_ubuntu_2004.sh
Last active August 16, 2022 21:21
Show Gist options
  • Save latetedemelon/3d50ce27ae800fa186f22e7c2b0d9ba7 to your computer and use it in GitHub Desktop.
Save latetedemelon/3d50ce27ae800fa186f22e7c2b0d9ba7 to your computer and use it in GitHub Desktop.
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Debian Bullseye
# Stolen and modified from https://gist.github.com/davecoutts/5ccb403c3d90fcf9c8c4b1ea7616948d
#Required Packages
sudo apt update
sudo apt install --yes curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates libcurl3
#Download Unifi
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
sudo apt update
#Install Correct Java Version
sudo apt-mark hold openjdk-11-*
sudo apt-mark hold openjdk-17-*
sudo apt remove -y openjdk-11-* openjdk-17-*
sudo apt install --yes openjdk-8-jre-headless unifi
sudo apt clean
sudo systemctl status --no-pager --full mongodb.service unifi.service
# Now log into https://unifi_controller_hostname:8443/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment