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 webUI for it to be successful.

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 to version 3.9.12 before updating to the 3.10 cycle. Do not update to 3.10 unless current version is 3.9.12, and then only update to 3.10 using the update function found in the webUI.

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

6. Update the software, clean up apt database and cache, and reboot with the following command:

apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo reboot

7. The NVR will reboot; and you will be prompted to log in again via SSH. Download the UniFi Video 3.9.12 Debian package with the command below. If you will be restoring a configuration backup file, please read the note in Step 11 before continuing.

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

8. Install the package using dpkg:

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

9. Remove the downloaded package:

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

10. Exit the SSH session:


11. Proceed to set up and configure UniFi Video.

NOTE: If the intent is to restore a configuration backup file from a 3.10 NVR or above, do not import the backup at this stage. UniFi Video must be updated to the 3.10 cycle from the webUI, as UFV will manage an environment upgrade as well as updating to 3.10.

12. Once set up, update to version 3.10 via the UniFi-Video web interface. To access the web interface, go to http://<ip of nvr>:7443 in a web browser and log in.

a. Click on "Update Available".


b. Or navigate to the update section: Settings > System Configuration > Updates and click "Check for Updates".


Click Upgrade.

13. Once the upgrade completes, either proceed to manage your cameras and configure the NVR, or follow this guide to reset the database and restore from a configuration backup.

14. Return to the Management screen as you did in step 1, and disable SSH access that was enabled on step 3. Click Save.

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!