.. _deploy-prepare-debian: Debian 11 Server Preparation --------------------------------------------------------------- To prepare a server on Debian 11 for the FindFace Multi deployment, follow the instructions below minding the sequence. .. note:: For other platforms, please refer to the following resources: * `NVIDIA drivers `__ * `Docker Engine `__ * `Docker Compose `__ * `NVIDIA Container Toolkit `__ .. rubric:: In this section: .. contents:: :local: Install FUSE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ #. Install FUSE (Filesystem in Userspace) by running the following command. .. code:: sudo apt install fuse -y GPU: Install NVIDIA Drivers ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The first step of the server preparation is the NVIDIA driver installation. It's applicable only for the GPU configuration. Go straight to the :ref:`Docker installation ` if your configuration is CPU-accelerated. With the GPU-accelerated FindFace Multi, you'll need the NVIDIA driver version ``530`` or above. Download a relevant ``.run`` installer from `NVIDIA Driver Downloads `__. Since you use a ``.run`` installer from NVIDIA, the following dependencies must be installed: .. code:: sudo apt install linux-headers-$(uname -r) sudo apt install build-essential .. _docker_debian: Install Docker Products ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Docker products must be installed on both CPU and GPU servers. Do the following: #. Update the ``apt`` package index and install packages to allow ``apt`` to use a repository over HTTPS. .. code:: sudo apt-get update sudo apt-get install ca-certificates curl gnupg #. Add the Docker’s official GPG key (GNU Privacy Guard key) to the host. .. code:: sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg #. Set up the Docker repository. .. code:: echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null #. Update the ``apt`` package index one more time. .. code:: sudo apt-get update #. Install ``24.*`` versions of Docker products. .. code:: sudo apt-get install docker-ce=5:24* docker-ce-cli=5:24* containerd.io docker-buildx-plugin #. Check whether the Docker installation was a success. .. code:: sudo docker run hello-world This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits. #. Install ``docker-compose``. .. code:: sudo curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose #. Perform the `Docker Engine post-installation procedures `__ to ease your future work with Docker and :ref:`FindFace Multi containers `. Once you can manage Docker as a non-root user, you don't have to apply ``sudo`` in the commands related to Docker. .. code:: sudo groupadd docker sudo usermod -aG docker $USER newgrp docker #. Configure the Docker network. .. code:: sudo su BIP=10.$((RANDOM % 256)).$((RANDOM % 256)).1 cat > /etc/docker/daemon.json < /etc/docker/daemon.json <