How To Install xlax on Ubuntu 18.04

In this tutorial we learn how to install xlax on Ubuntu 18.04. xlax is send keyboard input to multiple X11 windows

Introduction

In this tutorial we learn how to install xlax on Ubuntu 18.04.

What is xlax

xlax is:

xlax is an X11 input multiplexer: it sends your keyboard input from the xlax window to a group of windows simultaneously. The tool is designed for system administrators who typically have to do the same thing on several machines (or in several different directories). Windows can be added or deleted interactively, or temporarily disconnected and reconnected. xlax allows you to assign a custom string to each window (e.g. a hostname) that can be sent with a button click. An included script handles starting up and arranging windows, and allows you to set up commonly used window groupings in a config file.

There are three methods to install xlax 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 xlax Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install xlax

Install xlax Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xlax using apt by running the following command:

sudo apt -y install xlax

Install xlax 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 xlax using aptitude by running the following command:

sudo aptitude -y install xlax

How To Uninstall xlax on Ubuntu 18.04

To uninstall only the xlax package we can use the following command:

sudo apt-get remove xlax

Uninstall xlax And Its Dependencies

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

sudo apt-get -y autoremove xlax

Remove xlax Configurations and Data

To remove xlax configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xlax

Remove xlax configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xlax

References

Summary

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