Requirements
- Debian 9
- OpenJDK-8-jre 8u252
- MongoDB 4.4
Get the net-install image from Debian.org for your particular Hardware (usually AMD64) https://www.debian.org/releases/stretch/debian-installer/
[Optional] Generate a USB installation media from the net-install image.
Do a simple install of Debian, no GUI with an SSH Server
The rest of these instructions are run as root (su
).
Unifi Video requires a specific version of Java-8 that requires pinning your Java version
Create a file /etc/apt/preferences.d/openjdk-8
with the content:
Package: openjdk-8-*
Pin: version 8u252-b09-1~deb9u1
Pin-Priority: 999
This pins Java8 to u252, the unifi-video will not run with later updates.
# Install the JRE with
apt install openjdk-8-jre
Setup the mongo db apt source and signing keys
# Fetch the signing key
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
# Add the apt source
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.4 main" | tee /etc/apt/sources.list.d/mongodb-org.list
Obtain the installer package for Debian 9 from the community download site https://community.ui.com/releases/UniFi-Video-3-10-13/7cca7ae9-f4ff-4844-a7c4-b8163bb81f21
# Install the package
apt install ./unifi-video.Debian9_amd64.v3.10.13.deb
# Check it is running in systemd
systemctrl status unifi-video
Login via: https://YOUR_IP_ADDRESS:7443/
Cameras may need to have their firmware downgraded to work with the older product.