====== In unpriv Proxmox LXC ======
===== Create LXC Container =====
* Debian 11 template
* Enable ''Unprivileged container''
* Enable ''Nesting''
* Disk size: 4GB
* 1 CPU
* Memory: 512MB
* Swap: 512MB
===== Prepare Debian =====
apt update
apt dist-upgrade
apt install ca-certificates apt-transport-https gnupg2 software-properties-common
wget http://ftp.us.debian.org/debian/pool/main/g/glibc/multiarch-support_2.28-10+deb10u1_amd64.deb
dpkg -i multiarch-support_2.28-10+deb10u1_amd64.deb
wget https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
dpkg -i libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
apt-key adv --keyserver keyserver.ubuntu.com --recv BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | tee /etc/apt/sources.list.d/100-ubnt-unifi.list
apt-key adv --keyserver keyserver.ubuntu.com --recv 8AC3B29174885C03
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update
apt install adoptopenjdk-8-hotspot
apt install unifi -y