Created
January 5, 2023 00:50
-
-
Save efjacobson/58af2e0596642abb205e8363cb27f864 to your computer and use it in GitHub Desktop.
Proxmox Debian 11 (Bullseye) install Unifi Controller
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
# start with a fresh container using proxmox debian-11-standard_11.6-1_amd64.tar.zst | |
# sprinkle in some spice | |
# - https://florianmuller.com/setup-a-self-hosted-unifi-controller-on-a-hardened-proxmox-lxc-ubuntu-container | |
# - https://gist.github.com/sinofool/233ed96dd85123ee5a87ad12e812d424 | |
apt update \ | |
&& echo '[unifi-lxc] installing prerequisites...' \ | |
&& apt install -y curl gpg \ | |
&& echo '[unifi-lxc] installing java 8...' \ | |
&& curl -fsSL "https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public" | gpg --dearmor --yes -o /usr/share/keyrings/adoptopenjdk-archive-keyring.gpg \ | |
&& echo "deb [signed-by=/usr/share/keyrings/adoptopenjdk-archive-keyring.gpg] https://adoptopenjdk.jfrog.io/adoptopenjdk/deb bullseye main" | tee /etc/apt/sources.list.d/adoptopenjdk.list \ | |
&& apt-get update \ | |
&& apt-get install -y adoptopenjdk-8-hotspot \ | |
&& echo '[unifi-lxc] installing mongodb 3.6...' \ | |
&& wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | apt-key add - \ | |
&& echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list \ | |
&& apt-get update \ | |
&& echo '[unifi-lxc] installing unifi...' \ | |
&& apt-get install -y ca-certificates apt-transport-https \ | |
&& echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | tee /etc/apt/sources.list.d/100-ubnt-unifi.list \ | |
&& wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg \ | |
&& apt-get update \ | |
&& apt-get install unifi -y \ | |
&& echo 'done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment