install assumes your are running ubuntu 20.04 LTS on a RPi 4 model Bsudo apt install openjdk-8-jdk ca-certificates apt-transport-https gnupg binutils-common libbinutils binutils-aarch64-linux-gnu binutils
verify it's 1.8.0_*java -version
javac -version
hold java versionsudo apt-mark hold openjdk-8-jdk
setup mongodb repowget -qO - https://www.mongodb.org/static/pgp/server-3.4.asc | sudo gpg -o /etc/apt/trusted.gpg.d/mongodb-server-3.4.gpg --dearmor
echo "deb https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
install mongodbsudo apt update
sudo apt-get install -y mongodb
hold mongodb versionsudo apt-mark hold mongodb-server mongodb mongo-tools mongodb-clients mongodb-server-core
check if mongo is running sudo systemctl status mongodb
sudo systemctl start mongodb.service
sudo systemctl enable mongodb.service
test mongo is responsivemongo --eval 'db.runCommand({ connectionStatus: 1 })'
output should look like this
MongoDB shell version v4.4.18
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("d20c23a9-b94d-4c9c-b7df-b6e132f149e5") }
MongoDB server version: 4.4.18
{
"authInfo" : {
"authenticatedUsers" : [ ],
"authenticatedUserRoles" : [ ]
},
"ok" : 1
}
install the unifi controllerwget https://dl.ui.com/unifi/7.2.97/unifi_sysvinit_all.deb
wsudo dpkg -i unifi_sysvinit_all.deb
wsudo systemctl status unifi.service
wsudo systemctl start unifi.service
wsudo systemctl enable unifi.service