How To Install x2gobroker-agent on Debian 12

Learn how to install x2gobroker-agent on Debian 12 with this tutorial. x2gobroker-agent is X2Go Session Broker (remote agent)

Introduction

In this tutorial we learn how to install x2gobroker-agent on Debian 12.

What is x2gobroker-agent

x2gobroker-agent is:

X2Go is a server based computing environment with - session resuming - low bandwidth support - session brokerage support - client side mass storage mounting support - client side printing support - audio support - authentication by smartcard and USB stick

The session broker is a server tool for X2Go that tells your X2Go Client application in a terminal server cluster what servers and session types are most appropriate for the user in front of the X2Go terminal.

A session broker is most useful in load balanced X2Go server farms.

This package contains a setuid agent command that extends X2Go Session Broker functionality. It has to be installed on X2Go Servers that shall be controlled via a session broker.

The broker agent provides means to the X2Go Session Broker for controlling the X2Go Server it is installed on (e.g. suspend/terminate sessions, deploy SSH login keys, detect server load, detect running/suspended sessions of connecting users, etc.).

WARNING: This package installs a setuid wrapper (/usr/lib/x2go/broker/x2gobroker-agent) on your system. This setuid wrapper aims to be a secure replacement for the deprecated suidperl executable that was removed from Perl (>= 5.12).

This wrapper is only able to execute the Perl script /usr/lib/x2go/broker/x2gobroker-agent.pl. For running properly, x2gobroker-agent.pl needs setuid root privileges.

If you hesitate to install this package, study the code of the named wrapper and the named Perl script beforehand. Note that the X2Go session broker will lack functionality, but it will work without this x2gobroker-agent component installed on your to-be-managed X2Go servers.

There are three methods to install x2gobroker-agent on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install x2gobroker-agent Using apt-get

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

sudo apt-get update

After updating apt database, We can install x2gobroker-agent using apt-get by running the following command:

sudo apt-get -y install x2gobroker-agent

Install x2gobroker-agent Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install x2gobroker-agent using apt by running the following command:

sudo apt -y install x2gobroker-agent

Install x2gobroker-agent 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install x2gobroker-agent using aptitude by running the following command:

sudo aptitude -y install x2gobroker-agent

How To Uninstall x2gobroker-agent on Debian 12

To uninstall only the x2gobroker-agent package we can use the following command:

sudo apt-get remove x2gobroker-agent

Uninstall x2gobroker-agent And Its Dependencies

To uninstall x2gobroker-agent and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove x2gobroker-agent

Remove x2gobroker-agent Configurations and Data

To remove x2gobroker-agent configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge x2gobroker-agent

Remove x2gobroker-agent configuration, data, and all of its dependencies

We can use the following command to remove x2gobroker-agent configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge x2gobroker-agent

Dependencies

x2gobroker-agent have the following dependencies:

References

Summary

In this tutorial we learn how to install x2gobroker-agent package on Debian 12 using different package management tools: apt, apt-get and aptitude.