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-2.0.0-server-3.0.0.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-2.0.0-server-3.0.0.run
    
  4. Execute the .run file.

    sudo ./findface-security-2.0.0-server-3.0.0.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:

    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.

    After that, the FindFace Security components will be automatically installed, configured and/or started in the following configuration:

    Service Configuration
    postgresql-9.5 Installed and started.
    redis-server Installed and started.
    etcd 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.
    findface-video-worker(-gpu) Installed and started.
    findface-data-* Neural network models for face and face features recognition (gender, age, emotions, glasses, beard). Installed.
    findface-gpudetector-data/ NTechLab gpudetector data. Installed.
    python3-ntech.ffsecurity-client NtechLab FindFace Security API python client library. Installed.
    findface-security-proto Installed and started.
    findface-security-worker Installed and started, 4 instances.
    findface-security-monitoring-updater Installed and started.
    findface-security-webhook-updater Installed and started.
    jq Installed. Used to pretty-print API responses from FindFace Security.

    Once the installation is complete, the following output will be 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 the administrator privileges. Whatever the role, 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-2.0.0-server-3.0.0.run -f /tmp/<findface-installer-*>.json
    

    Tip

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