Video 3.10.13 Install on Ubuntu Server 22.04

Link with detailed instructions!

01. Frstu ... Update Ubuntu

sudo apt update && apt upgrade

02. Install Java 

sudo apt install default-jre

View version:

java -version

After that, dowgrade the java version tu openjdk-8-jre-headless

Download

curl -qo /tmp/openjdk-8-jre-headless_8u275-b01.deb "https://launchpadlibrarian.net/505954411/openjdk-8-jre-headless_8u275-b01-0ubuntu1~18.04_amd64.deb"

Install

sudo dpkg -i /tmp/openjdk-8-jre-headless_8u275-b01.deb

Then to prevent java from updating & breaking everything again in the future with "apt upgrade", do:

sudo apt-mark hold openjdk-8-jre-headless

03. Install prerequisite

sudo apt install curl haveged gpg wget

04. MongoDB install Libssl 1.1

Download

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb

Install

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb

05. Install and add Repository MongoDB Ubuntu

Use the following command to add the MongoDB version 4.4 Repo

curl https://pgp.mongodb.com/server-4.4.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/mongodb-org-server-4.4-archive-keyring.gpg >/dev/null

Then add GPP, for ubuntu 22.04 Repository

echo 'deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-org-server-4.4-archive-keyring.gpg] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse' | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list > /dev/null

Update Ubuntu

sudo apt update -y

Install MongoDB package

sudo apt install mongodb-org-server -y

06. Instal prerequisites jsvc

sudo apt install jsvc

07. Download and instal Unifi Video package

Download

wget https://dl.ubnt.com/firmwares/ufv/v3.10.13/unifi-video.Debian7_amd64.v3.10.13.deb

Install

sudo dpkg -i unifi-video.Debian7_amd64.v3.10.13.deb

Check status

service unifi-video status

08. Tuls to see if the 7443 potr is open

sudo apt install net-tools 
netstat -tnl

If the port is open you have successfully installed unifi video on you 22.04 ubuntu server ...

Login to the UniFi Video controller using your web browser and going to the following address to finish configuring the NVR.

https://your-server-address:7443

Important:

For the cameras to work on Unifi Video, you need to restore the firmware to 4.23.8 ...