How To Install ltsp-cluster-lbagent on Ubuntu 18.04

In this tutorial we learn how to install ltsp-cluster-lbagent on Ubuntu 18.04. ltsp-cluster-lbagent is LTSP loadbalancer agent offers variables about the state of the ltsp server

Introduction

In this tutorial we learn how to install ltsp-cluster-lbagent on Ubuntu 18.04.

What is ltsp-cluster-lbagent

ltsp-cluster-lbagent is:

The loadbalancer is composed of 3 modules : an agent, a server and a client. The agent role is to sends information about the state of monitored variables. The server harvests data from every known agents, and compute their respective weight. The client requests address to the server, that sends a randomly chosen LTSP application server in the wightened list. The loadbalancer is written in Python, and uses XML-RPC for remote communication between the agent and the server, while the client uses HTTP.

This package contains the agent component.

There are three methods to install ltsp-cluster-lbagent on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ltsp-cluster-lbagent Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ltsp-cluster-lbagent using apt-get by running the following command:

sudo apt-get -y install ltsp-cluster-lbagent

Install ltsp-cluster-lbagent Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ltsp-cluster-lbagent using apt by running the following command:

sudo apt -y install ltsp-cluster-lbagent

Install ltsp-cluster-lbagent Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ltsp-cluster-lbagent using aptitude by running the following command:

sudo aptitude -y install ltsp-cluster-lbagent

How To Uninstall ltsp-cluster-lbagent on Ubuntu 18.04

To uninstall only the ltsp-cluster-lbagent package we can use the following command:

sudo apt-get remove ltsp-cluster-lbagent

Uninstall ltsp-cluster-lbagent And Its Dependencies

To uninstall ltsp-cluster-lbagent and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ltsp-cluster-lbagent

Remove ltsp-cluster-lbagent Configurations and Data

To remove ltsp-cluster-lbagent configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ltsp-cluster-lbagent

Remove ltsp-cluster-lbagent configuration, data, and all of its dependencies

We can use the following command to remove ltsp-cluster-lbagent configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ltsp-cluster-lbagent

References

Summary

In this tutorial we learn how to install ltsp-cluster-lbagent package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.