UniFi Video - Best Practices for New / Factory Default UVC-NVR Setup


This article describes how to set up and update a new or factory defaulted UVC-NVR. Please pay close attention to the warning in the Introduction section. Upgrading to 3.10 must be done via the method shown here to be successful on the UVC-NVR.

Table of Contents

  1. Introduction
  2. How to Perform Initial UVC-NVR Setup
  3. Related Articles


Back to Top

When setting up an NVR for the first time, or after performing a factory reset, the NVR operating system should be updated, credentials secured, and the video software installed from scratch (rather than upgrading).

ATTENTION: As of UniFi Video 3.10, UVC-NVRs will need to update some system level components before it can update. Please follow the directions below carefully.

How to Perform Initial UVC-NVR Setup

Back to Top

1. Go to http://<ip of nvr>/login.php and click on the gear icon at the top right to open the Management window. Or if using an airVision NVR, click on the Device Configuration option. Log in with the following username / password combination: either root / ubnt or ubnt / ubnt. Note that the NVR will fall back to if there is no DHCP server available.

2. A window will appear with a prompt to change the password. Set a strong password: should be at least 8-12 characters in length, and include upper and lowercase letters, and numbers.  Avoid strange symbols, or characters that can be misinterpreted when possible (such as lowercase L and uppercase I, or zero and capital O). This password will be the new SSH password as well as the NVC management interface password. Make sure to take note of it, the username will continue being what it was at default: root or ubnt.

3. Navigate to the Configuration section and make sure the timezone is set correctly. Inaccurate timezone selection can cause issues later on. Check the Enable SSH Server box. Click Save.

4. If necessary, configure network settings (static IP). Make sure the gateway and DNS servers are properly configured. Save if any changes were applied.

5. Log into the NVR via SSH, and purge the service with the following commands. Read this article if more information on how to connect via SSH is needed.

a. If using UniFi Video:

apt-get purge unifi-video -y

b. If using airVision:

apt-get purge airvision -y

6a. We will need to specify a new location for the Operating system to locate packages do so by running the following commands:

service unifi-video stop
apt-get clean
rm /etc/apt/sources.list
rm /etc/apt/sources.list.d/security.list
echo 'deb http://archive.debian.org/debian/ wheezy main contrib non-free' > /etc/apt/sources.list
echo 'deb http://archive.debian.org/debian-security/ wheezy/updates main' > /etc/apt/sources.list.d/security.list
apt-get update -o Acquire::Check-Valid-Until=false
apt-get upgrade -y -o Acquire::Check-Valid-Until=false

6b - 

echo 'deb http://archive.debian.org/debian/ jessie-backports main' >> /etc/apt/sources.list.d/openjdk.list
echo 'deb http://archive.debian.org/debian/ jessie main' >> /etc/apt/sources.list.d/openjdk.list
apt-get update -o Acquire::Check-Valid-Until=false
apt-get install -y -t jessie-backports openjdk-8-jre-headless
rm /etc/apt/sources.list.d/openjdk.list
apt-get update -o Acquire::Check-Valid-Until=false
service unifi-video start

Note: You may be prompted to approve of some system updates here. Select yes if you do. If not, continue to step 7 anyway.

7. The NVR will reboot; and you will be prompted to log in again via SSH. Download the UniFi Video 3.10.1 Debian package with the command below.

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

8. Install the package using dpkg:

dpkg -i unifi-video.Debian7_amd64.v3.10.2.deb

9. Remove the downloaded package:

rm unifi-video.Debian7_amd64.v3.10.2.deb

10. Exit the SSH session:


11. Reconnect to the NVR webUI at https://<NVR-IP-address>:7443 

12. Proceed to Set up UniFi-Video, or import your backup configuration file if you have one.

Related Articles

Back to Top

Intro to Networking - How to Establish a Connection Using SSH

UniFi Video - How to Reset a UniFi Video Installation for Linux / UVC-NVR

We're sorry to hear that!