.. _deploy-vms: Deploy Video Recorder Step-by-Step --------------------------------------------------------------- The FindFace Core internal :ref:`architecture ` allows for embedding Video Recorder, an additional functionality that records, stores, and plays back video data from cameras. There are the following ways to deploy Video Recorder: * Automatically during the FindFace Multi deployment from a console installer. See :ref:`installer` for details. * Step-by-step. Recommended in a multi-host environment. This section will guide you through the Video Recorder step-by-step deployment. .. important:: If you are located in Russia or Belarus and intend to use Video Recorder, before you start deploying, you need to contact support@ntechlab.com to get the MongoDB distribution package. Then follow the installation instructions in the section :ref:`Troubleshoot MongoDB distribution `. After you've done that, follow the instructions below. .. tip:: Be sure to learn the FindFace Multi :ref:`architecture ` first. .. rubric:: In this section: .. contents:: :local: .. _repo-vms: Install APT Repository ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ First of all, install the FindFace apt repository as follows: #. Download the installer file ``findface-multi-1.2-and-server-5.2.run``. #. Put the ``.run`` file into some directory on the designated host (for example, ``/home/username``). #. From this directory, make the ``.run`` file executable. .. code:: chmod +x findface-multi-1.2-and-server-5.2.run #. Execute the ``.run`` file. .. code:: sudo ./findface-multi-1.2-and-server-5.2.run The installer will ask you a few questions and perform several automated checks to ensure that the host meets the system requirements. Fill out the prompts appropriately once requested. The questions and answers are the following: #. Product to install: ``FindFace Multi``. #. Installation type: ``repo: Don't install anything, just set up the APT repository``. #. ``APT repository doesn't include recognition models. Do you want to install them now?``: no. After that, the FindFace apt repository will be automatically installed. .. _prereq-vms: Install Prerequisite, MongoDB ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The Video Recorder operation requires a third-party software, MongoDB. Install it as follows: .. code:: sudo apt update sudo apt install -y mongodb After the installation, the ``mongodb`` service will be launched and enabled to auto-start on boot. You can check its status by executing the command bellow: .. code:: sudo systemctl status mongodb ● mongodb.service - An object/document-oriented database Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-05-16 10:23:04 UTC; 46s ago ... Install Main Components ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To install the Video Recorder components, do the following: #. Install the ``findface-video-storage`` and ``findface-video-streamer-cpu`` services from the previously installed APT repository. .. code:: sudo apt install -y findface-video-storage findface-video-streamer-cpu After the installation, ``findface-video-storage`` will be launched and enabled to auto-start on boot, while the ``findface-video-streamer-cpu`` service will remain disabled and inactive. #. Open the ``/etc/findface-video-storage.conf`` configuration file. Set ``webdav`` for the ``chunk-storage`` -> ``type`` parameter. .. code:: sudo vi /etc/findface-video-storage.conf ... chunk-storage: type: webdav #. Restart the ``findface-video-storage`` service after saving the changes. .. code:: sudo systemctl restart findface-video-storage #. Launch the ``findface-video-streamer-cpu`` service and enable it to auto-start on boot. .. code:: sudo systemctl enable findface-video-streamer-cpu && sudo systemctl start findface-video-streamer-cpu Video Recorder is now successfully deployed. To configure Video Recorder after the deployment, follow :ref:`these instructions `.