Deploy from Console Installer

To deploy FindFace Security, use a developer-friendly console installer.

Tip

Before deployment, be sure to consult the system requirements.

Important

The FindFace Security host must have a static IP address in order to be running successfully. To make the IP address static, open the etc/network/interfaces file and modify the current primary network interface entry as shown in the case study below. Be sure to substitute the suggested addresses with the actual ones, subject to your network specification.

sudo vi /etc/network/interfaces

iface eth0 inet static
address 192.168.112.144
netmask 255.255.255.0
gateway 192.168.112.254
dns-nameservers 192.168.112.254

Restart networking.

sudo service networking restart

Be sure to edit the etc/network/interfaces file with extreme care. Please refer to the Ubuntu guide on networking before proceeding.

To deploy FindFace Security from the console installer, do the following:

  1. Download the installer file findface-security-and-server-4.2.run.

  2. Put the .run file into some directory on the designated host (for example, /home/username).

  3. From this directory, make the .run file executable.

    chmod +x findface-security-and-server-4.2.run
    
  4. Execute the .run file.

    sudo ./findface-security-and-server-4.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 are the following:

    1. Product to install: FindFace Security.

    2. Installation type:

      • 1: install FindFace Security standalone.

      • 2: install FindFace Security and configure it to interact with additional remote findface-video-worker instances.

        Tip

        To install only findface-video-worker on a host, refer to Additional findface-video-worker deployment on remote hosts.

      • 3: install only the apt repository that can be further used for the step-by-step deployment.

        Important

        This installation type doesn’t provide installation of neural network models essential for the findface-extraction-api functioning. Be sure to manually install them on the host(s) with findface-extraction-api.

      • 4: fully customized installation.

        Important

        Be sure to manually install neural network models on the host(s) with findface-extraction-api.

    3. Type of findface-video-worker package: CPU or GPU.

    4. Type of findface-extraction-api package: CPU or GPU.

    Once all the questions answered, the answers will be saved to a file /tmp/<findface-installer-*>.json. You can edit this file and use it to install FindFace Security on other hosts without having to answer the questions again.

    Should you choose to install FindFace Security standalone, its components will be automatically installed, configured and/or started in the following configuration:

    Important

    In the case of a clean install, the installer will automatically configure findface-extraction-api to use the ifruit_320 neural network. Otherwise, you will be able to choose between ifruit_320 and the previous model. It is strictly not recommended to use the installer to update the system. See Update FindFace Security to 4.2 for the instructions.

    Service Configuration
    postgresql-9.5 (Ubuntu 16.04) or postgresql-10 (Ubuntu 18.04) Installed and started.
    redis-server Installed and started.
    etcd Installed and started.
    pgbouncer Installed and started.
    memcached Installed and started.
    nginx Installed and started.
    django Installed and started as a web framework for the FindFace Security web interface.
    findface-ntls Installed and started.
    findface-tarantool-server Installed and started. The number of instances (shards) is calculated using the formula: N = max(min(mem_mb // 2000, cpu_cores), 1), i.e. it is equal to the RAM size in MB divided by 2000, or the number of CPU physical cores (but at least 1 shard).
    findface-extraction-api Installed and started.
    findface-sf-api Installed and started.
    findface-upload Installed.
    findface-video-manager Installed and started (CPU/GPU-acceleration).
    findface-video-worker-* Installed and started.
    findface-data-* Neural network models for face and face features recognition (gender, age, emotions, glasses, beard, and face mask). Installed.
    findface-gpudetector-data/ NTechLab gpudetector data. Installed.
    python3-ntech.ffsecurity-client NtechLab FindFace Security API python client library. Installed.
    findface-security Installed and started.
    findface-counter Installed and started.
    jq Installed. Used to pretty-print API responses from FindFace Security.

    After the installation is complete, the following output is shown on the console:

    Tip

    Be sure to save this data: you will need it later.

    #############################################################################
    #                       Installation is complete                            #
    #############################################################################
    - upload your license to http://172.20.77.17/#/license/
    - user interface: http://172.20.77.17/
      superuser:      admin
      password:       admin
      documentation:  http://172.20.77.17/doc/
    
  5. Upload the FindFace Security license file via the main web interface http://<Host_IP_address>/#/license. To access the web interface, use the provided admin credentials.

    Note

    The host IP address is shown in the links to FindFace web services in the following way: as an external IP address if the host belongs to a network, or 127.0.0.1 otherwise.

    Important

    Do not disclose the superuser (Super Administrator) credentials to others. To administer the system, create a new user with administrator privileges. Whatever the role, the Super Administrator cannot be deprived of its rights.

  6. To automatically install FindFace Security on another host without answering the installation questions, use the /tmp/<findface-installer-*>.json file. Execute:

    sudo ./findface-security-and-server-4.2.run -f /tmp/<findface-installer-*>.json
    

    Tip

    You can find an example of the installation file in Installation File.