-
-
Save ktross/0871fcc5ca1fe6bf51478172b8663d81 to your computer and use it in GitHub Desktop.
Install Ubiquiti Unifi Controller on Ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install --yes ca-certificates apt-transport-https wget | |
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 | |
sudo apt install --yes openjdk-8-jre-headless unifi | |
sudo apt-get install certbot | |
sudo certbot certonly --standalone -d unifi.ktross.com | |
sudo wget https://raw.githubusercontent.com/stevejenkins/unifi-linux-utils/master/unifi_ssl_import.sh -O /usr/local/bin/unifi_ssl_import.sh | |
# EDIT CONFIG | |
sudo chmod +x /usr/local/bin/unifi_ssl_import.sh | |
sudo /usr/local/bin/unifi_ssl_import.sh | |
sudo nano -w /etc/cron.daily/unifi_ssl_import | |
``` | |
#!/bin/bash | |
/usr/local/bin/unifi_ssl_import.sh | |
``` | |
sudo chown root:root /etc/cron.daily/unifi_ssl_import | |
sudo chmod +x /etc/cron.daily/unifi_ssl_import | |
# https://lazyadmin.nl/home-network/unifi-controller-ssl-certificate/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment