Skip to content

Instantly share code, notes, and snippets.

@Jazex5
Forked from pdrok/unifi-video-ubuntu-18-04.md
Created November 9, 2022 06:31
Show Gist options
  • Save Jazex5/beff93c727c0bb2c4ef2e20d1f53e693 to your computer and use it in GitHub Desktop.
Save Jazex5/beff93c727c0bb2c4ef2e20d1f53e693 to your computer and use it in GitHub Desktop.
Steps to install unifi-video on Ubuntu 18.04

log in as root: sudo su if you don't have MongoDB already installed:

sudo apt-get install mongodb mongodb-server openjdk-8-jre-headless=8u162-b12-1 jsvc

Open terminal (go to your apps and type in terminal, or push the windows key and type in terminal) Type the following commands:

sudo mv /usr/bin/mongod /usr/bin/mongod.bin
cd /usr/bin/
sudo vi mongod

A new window will appear where you need to paste the following:

#!/bin/bash
cleaned_args=$(echo $* | sed -e 's/--nohttpinterface//')
/usr/bin/mongod.bin ${cleaned_args}

Then press ESC on your keybard and type :wq then enter. Now type this command in terminal

sudo chmod +x mongod

Download unifi video:

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

Install unifi-video

dpkg -i unifi-video.Ubuntu18.04_amd64.v3.10.13.deb

Restart your computer to restart the Unifi-Video service. It should now run.

open the follow url on a browser tab : https://localhost:7443

Source

Source_2

Source_3

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