Installing Light Agent for Linux in silent mode
July 22, 2024
ID 131673
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 the silent mode:
- 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
– accept the terms of Kaspersky Security End User License Agreement between you and Kaspersky and the Privacy Policy that describes processing and transmission of data. Possible values:yes
,no
.You must accept the terms of the End User License Agreement and the Privacy Policy to install the application.
By setting this parameter to
yes
, you confirm the following:- You have fully read, understood and accept the terms and conditions of Kaspersky Security End-User License Agreement.
- You have fully read and understood the Privacy Policy, you are aware and agree that your data will be handled and transmitted (including to third countries) as described in the Privacy Policy.
The text of the End-User License Agreement and Privacy Policy is included in the application distribution kit.
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.
- 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 device 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) or0
(do not use an SSL connection).KLNAGENT_GW_MODE
– connect to the Administration Server through a connection gateway. Possible values:1
or0
.Parameter values have to be entered in the format <parameter name>=<value>. Blank spaces between the parameter name and its value are ignored.
- Do one of the following:
- Start the installation script by running the following command:
# sh lightagent-5.2.X-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.2.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.2.X-X-bundle.sh
where:
5.2.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:
- 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.
- Install and perform initial configuration of Light Agent for Linux.
- Start the installation script by running the following command: