Installing Linux Agents Component

Install a Lina Linux agent

1. Open a terminal and log in as root.
2. Go to the directory where you downloaded the agent package corresponding to your system and launch the installation.
• On Debian-based distributions, run:

dpkg -i <packagename>setup.deb

• On RPM-based distributions, run:

rpm -i <packagename>setup.rpm

For instance on a Debian-based system:

dpkg -i livenavigator_<version>_x86_64.deb

3. If you want to install in a directory other than the default /opt/HNDB, provide a working directory path.
4. Provide the name of the Lina Server that will protect the agent.

Install a Lina Linux agent in silent mode

1. Open a terminal and log in as root.
2. Define and export these environment variables:
• export HN_SERVER_NAME=<server_connection_string>

where <server_connection_string> is in the form:

<servername>:<encrypted port>:<unencrypted port>

• export HN_WORK_DIR=<directory_name>

where <directory_name> is the path of the Lina Home directory.

3. Launch the installation:
• On Debian-based distributions, run:

dpkg -i <packagename>setup.deb

• On RPM-based distributions, run:

rpm -i <packagename>setup.rpm

Install Lina CDP Component

Install the CDP component using the DKMS based Lina module

If you have recently updated your system kernel but did not reboot it yet, make sure to do so before installing the CDP component.

1. Open a terminal and log in as root.
2. Go to your agent directory where you downloaded the DKMS based Lina module corresponding to your system and launch the installation.
• On Debian-based distributions, launch:

dpkg -i livenavigatormodule-dkms_X_all.deb

apt-get install -f

• On RPM-based distributions, launch:

yum localinstall livenavigatormodule-X-dkms.noarch.rpm

Important: DKMS package cannot be used with latest CentOS 7.X and Redhat 7.X. To use DKMS package on CentOS7.X and Redhat 7.X, you need to add the EPEL repository (Extra Package for Enterprise Linux) and install the DKMS package from this repository.

Another way to install DKMS directly from EPEL is using the command: sudo rpm -Uvh

Install the CDP component without using DKMS

1. Go to the directory where you downloaded the file

livenavigatormodule-precompiled-X.tar.gz

2. Ungzip files from the archive:

tar xzf livenavigatormodule-precompiled-X.tar.gz

3. Create a directory for the precompiled packages, for instance:

mkdir PACKAGES

4. Build the precompiled packages/modules in the directory you created.

./make-all-packages PACKAGES deb

Or  

./make-all-packages PACKAGES rpm

5. Verify the content of the PACKAGES directory. It will contain precompiled modules/packages for all available kernels in the system.

For instance for Red Hat Enterprise Linux 6:

ls PACKAGES
livenavigatormodule-6-2.6.32-431.1.2.0.1.el6.x86_64.x86_64.rpm
livenavigatormodule-6-2.6.32-431.3.1.el6.x86_64.x86_64.rpm
livenavigatormodule-6-2.6.32-431.el6.x86_64.x86_64.rpm

6. Copy the CDP module corresponding to your Linux distribution on your agent and install it:
• On Debian-based distributions, run:

dpkg -i livenavigatormodule-X.deb
apt-get install -f

• On RPM-based distributions, run:

yum localinstall livenavigatormodule-X.rpm

Deploy the CDP component

Deploying the CDP component can be used for a first installation of the product or for subsequent updates of the product.

The agent will receive notifications that the CDP component can be automatically installed or updated. Optionally, right-click the Lina icon in the task bar and select Check Update to verify if an installation is pending.

Prerequisites:

• The OS of the agent must be equipped with a task bar to enable deployment.
• The Update URL parameter must have been configured in the default settings on the Lina server.
• The Lina component must be installed on the agent prior to deploying the CDP components.
• In addition to copying the content of the Product download/Agent directory on your Web Server, you must create either an install or an update subdirectory in the product delivery Modules directory and either copy the DKMS file or the distribution-specific precompiled module into that directory. The update directory can only be used to perform an upgrade whereas the install directory can be used for both installations and upgrades.

Launch the Lina Linux agent

After the installation, the Lina service is automatically launched on the agent.

> To manually stop or start the service, launch the following command:

/etc/init.d/hnagent {start|stop|restart|status}

> To launch the agent restore through the graphical interface (UI), click the Systray icon.

After the agent installation or update, you need to log off/log on to display the Systray icon and have access to the restore functions.

> To manually launch the agent restore, launch the HNWizard.jar file located in the installation directory.

Debian 10 and CentOS version 7

You can manually launch the graphical interface (UI) in the Command terminal.

> In the agent repository /opt/Atempo/HN/bin/AgentUI, launch the following command:

./agent-ui --no-sandbox