Installing Light Agent for Linux in silent mode

If fanotify technology is not supported by the operating system of the virtual machine on which you are planning to install Light Agent for Linux, prior to beginning installation, make sure that the source code of the operating system kernel is in the default folder on the virtual machine and that the compilation packages (gcc, binutils, glibc, glibc-devel, make, ld) have been installed.

To install Light Agent for Linux from the command line in silent mode:

  1. In the configuration file lightagent.ini, specify the settings that must be used by the installation script during initial configuration of Light Agent for Linux. The lightagent.ini file is included in the distribution package of Light Agent for Linux. You can specify the following settings:
    • ACCEPT_EULA_AND_PRIVACYPOLICY – consent to the terms of the End User License Agreement and the Privacy Policy. Possible values: yes, no.

      All application usage terms and conditions set forth in the End User License Agreement for Kaspersky Security for Virtualization 5.1 Light Agent also apply to the following Kaspersky Security updates: 5.1.1, 5.1.2 and 5.1.3.

    You must accept the terms of the End User License Agreement and the Privacy Policy to install the application.

    • CONNECTOR_LOCALE – ID of the language localization of Light Agent for Linux. Possible values: ru, en, fr, de, zh-Hans, zh-Hant, ja.
    • DEFAULT_KERNEL_SOURCES – use the default path to the source code of the operating system kernel. Possible values: yes, no.

      If the operating system does not support fanotify technology, you must place the source code of the operating system kernel in the default folder and specify the parameter value DEFAULT_KERNEL_SOURCES=yes. Otherwise, installation of Light Agent will end with an error.

  2. In the configuration file klnagent.ini, specify the settings that must be used by the installation script during initial configuration of Network Agent. The klnagent.ini file is included in the distribution package of Light Agent for Linux. You can specify the following settings:
    • KLNAGENT_SERVER – IP address in IPv4 format or fully qualified domain name (FQDN) of the computer on which the Kaspersky Security Center Administration Server is installed.
    • KLNAGENT_PORT – port number used to connect Network Agent to the Administration Server. The Kaspersky Security Center Administration Server uses port 14000 by default.
    • KLNAGENT_SSLPORT – port number used to connect Network Agent to the Administration Server using an SSL certificate. The Administration Server uses port 13000 by default.
    • KLNAGENT_USESSL – use an SSL connection to connect to the Administration Server. Possible values: 1 (use an SSL connection) or 0 (do not use an SSL connection).
    • KLNAGENT_GW_MODE – connect to the Administration Server through a connection gateway. Possible values: 1 or 0.

      Parameter values have to be entered in the format <parameter name>=<value>. Blank spaces between the parameter name and its value are ignored.

  3. Do one of the following:
    • Start the installation script by running the following command:

      # sh lightagent-5.1.X-Х-bundle.sh --auto-install=<path to the Light Agent for Linux configuration file> --klnagent-auto-install=<path to the Network Agent configuration file>

      where:

      • 5.1.X-X is the application version number.
      • <path to the Light Agent for Linux configuration file> is the full path to the initial setup configuration file lightagent.ini (see step 1 of these instructions). The installation script will use the settings specified in this file during initial configuration of Light Agent for Linux.
      • <path to the Network Agent configuration file> is the full path to the initial setup configuration file klnagent.ini (see step 2 of these instructions). The installation script will use the settings specified in this file during initial configuration of Network Agent.
    • Declare the KLAUTOANSWERS environment variable and start the installation script by running the following commands:

      # export KLAUTOANSWERS=<path to the Network Agent configuration file>

      # export KLLIGHTAGENTAUTOANSWERS=<path to the Light Agent for Linux configuration file>

      # sh lightagent-5.1.X-X-bundle.sh

      where:

      • 5.1.X-X is the application version number.
      • <path to the Light Agent for Linux configuration file> is the full path to the initial setup configuration file lightagent.ini (see step 1 of these instructions). The installation script will use the settings specified in this file during initial configuration of Light Agent for Linux.
      • <path to the Network Agent configuration file> is the full path to the initial setup configuration file klnagent.ini (see step 2 of these instructions). The installation script will use the settings specified in this file during initial configuration of Network Agent.

        Paths to configuration files containing the initial settings for configuring Light Agent for Linux and Network Agent can be identical, so it can be a single configuration file.

    The command-line parameter --auto-install has higher priority than an environment variable.

    As a result, the installation script will perform the following actions:

    1. Install and perform initial configuration of Kaspersky Security Center Network Agent.

      If the required version of Network Agent is already installed, this step will be skipped.

    2. Install and perform initial configuration of Light Agent for Linux.
Page top