Categories
Knowledge Support Support exacqVision Server Categories Products

Setting up Archiving on Third Party Linux Devices

Preparing a Third-Party Storage System

Archiving must be done to a network resource that supports the hosting of SMB shares. By default, S-Series storage systems built by Exacq come with Samba installed. The following steps will need to be performed on a third-party Ubuntu system used in place of an ExacqVision S-Series system.

  1. If you are using a software-only install on your own device running off-the-shelf Ubuntu Linux, you will first need to install/update Samba with the following commands in Terminal:

    &nbsp;&nbsp;&nbsp;&nbsp;sudo apt-get update</br> &nbsp;&nbsp;&nbsp;&nbsp;sudo apt-get install samba

<br>

  1. Samba uses its own credentials, separate from those of the OS user. This Samba user account must also exist as an OS user account. If you do not already have an OS user account you wish to use, create an OS user account with command below. If you do already have an OS user you wish to use for this, you may skip to Step 3.

    &nbsp;&nbsp;&nbsp;&nbsp;sudo useradd username
  • Now set this user’s OS password with the following:

    &nbsp;&nbsp;&nbsp;&nbsp;sudo passwd username
  • After entering the command, you will be prompted to enter a password, then re-enter the password to confirm. Remember, in Linux, passwords do not appear as you type.

<br>

  1. You will need to create a username and set the user password for Samba. The ‘-a‘ parameter in the command below creates the Samba user account.

    &nbsp;&nbsp;&nbsp;&nbsp;sudo smbpasswd -a username
  • After entering the command above, you will be prompted to enter a password, then re-enter the password to confirm. Remember, in Linux, passwords do not appear as you type.

<br>

  1. Next, create the directory to be shared. This is where your archived video will be placed.

    &nbsp;&nbsp;&nbsp;&nbsp;sudo mkdir /home/username/foldername
  • Using the command above, if you wanted to place a folder called VideoArchive in your admin home directory, the command would be sudo mkdir /home/admin/VideoArchive.

<br>

  1. Change the permissions to the directory you just created to allow files to be written to it.

    &nbsp;&nbsp;&nbsp;&nbsp;sudo chown admin /home/username/foldername

<br>

  1. Next, enter the following command to edit the Samba configuration.

    &nbsp;&nbsp;&nbsp;&nbsp;sudo nano /etc/samba/smb.conf
  • Scroll to the end of the file and add the following lines:

    [&lt;foldername&gt;]
    path = /home/&lt;username&gt;/&lt;foldername&gt;
    valid users = &lt;username&gt;
    read only = no
  • You will replace ‘&lt;foldername&gt;‘ with that of the directory you created in Step 4 and replace ‘&lt;username&gt;‘ with the user created in Step 3.

    Press CTRL-X to exit the nano editor. It will ask if you want to overwrite the existing file, enter y and press Enter to return to the Terminal prompt.

<br>

  1. Restart Samba:

    &nbsp;&nbsp;&nbsp;&nbsp;sudo service smbd restart

<br>

Preparing a Third-Party Client System

From the perspective of the SMB server, your recording ExacqVision NVR, where the ExacqVision Server software resides, acts as the SMB client. Therefore, if your recording NVR is also a third-party Ubuntu system, rather than one built-by Exacq, you will need to perform the following steps.

  1. Open a Terminal window and enter each of the following commands:

    sudo apt-get update
    sudo apt-get install smbclient

<br>

  1. Restart the client.

<br>

Connecting to an Archive

  1. In the ExacqVision Client navigate to the Archive Settings page.

Press the New button, then enter the Address of the share and the username and password you created earlier. The address will be the share path, i.e. – \\StorageIPaddress\foldername

Press the Apply button to connect to the share, then configure your Task Schedule.

NOTE: Archiving is a 1:1 relationship. Only one NVR may archive to a share. For multiple NVRs you will need multiple SMB archive targets.

<br>

Categories
Knowledge Support Support exacqVision Server Categories Products

Windows-based ExacqVision Systems Must Record Directly to Fixed Drives

The Windows version of ExacqVision Server must record directly to drives that Windows identifies as fixed drives, such as iSCSI drives.

Network-attached storage (NAS), or mapped drives, cannot be used for direct recording because the ExacqVision system cannot detect whether the drives are being used for other purposes. Such conflicts can cause recording issues on the ExacqVision system.

However, you can archive to NAS (network-attached storage) drives. More information can be found in the ExacqVision User Manual, which can be downloaded here.

<br>

Categories
Knowledge Support Support exacqVision Server Categories Products

3rd Party Linux servers and recording to a NAS?

This process is not officially supported or endorsed by Exacq. Use at your own risk.

When the exacqVision Server software starts, it will look into the following location for storage purposes:

/mnt/edvr/*

NOTE* – This is typically a number on systems built by Exacq.

Any volume that is mounted into the /mnt/edvr location will be available for storage.

NAS Setup

Here is an example setup using FreeNAS:

  1. In the BIOS Setup, set the hardware RAID (Striped with Parity).
  2. Set up FreeNAS on the computer server hard drive.
  3. Assign the system an IP Address.
  4. Set up NFS Share using FreeNAS.

Linux NVR

  1. If needed, log off as restricted user and log back in as an admin user.
  2. Launch the Terminal application.
  3. Create storage directoryfor your NAS location by typing:
    sudo mkdir /mnt/edvr/2
    NOTE – Ensure that there is not already a “2” directory – if so, pick a higher number
  4. Edit the /etc/fstab file to include the mounting of the NAS at startup by adding line
    %servername%:%/mnt/vce-nas/% /mnt/edvr/2 nfs defaults 0 0
    NOTE: %servername% is your full server name or IP address, and %/mnt/vce-nas/% is your NAS server mount point.
  5. Restart the exacqVision NVR Server to activate NAS Mount.
    sudo service edvrserver restart
  6. In the exacqVision Client, use the Storage tab to enable recording to /mnt/edvr/2.
  7. Verify that recordings are being stored on new mount point.