Skip to content

Instantly share code, notes, and snippets.

@timsavage
Last active March 23, 2022 23:05
Show Gist options
  • Save timsavage/76e7e517754fb6481d7bf68079c9b5e1 to your computer and use it in GitHub Desktop.
Save timsavage/76e7e517754fb6481d7bf68079c9b5e1 to your computer and use it in GitHub Desktop.
Instructions to get a running install of Unifi Video

Setup Unifi-Video

Requirements

  • Debian 9
  • OpenJDK-8-jre 8u252
  • MongoDB 4.4

Install Debian 9 (Stretch)

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).

Install OpenJDK-8

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

Add MongoDB package source

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

Download and Install Unifi Video

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment