x2x command not found

In this troubleshooting guide we learn how to fix x2x command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

x2x: command not found

or when using sudo you get the following error message

sudo: x2x: command not found

Solutions to x2x: command not found

How To Fix x2x: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu x2x is provided by x2x package.

x2x is:

x2x joins a pair of X displays together, as if they were a single multiheaded display. The pointer can be warped between displays, or, depending on how you start x2x, can slide from one display to the other when it runs off the edge of the screen. Keyboard focus also moves between displays in the way you’d expect, and the X selection propagates around. This is useful when you have two displays on the same desk, as you can use a single keyboard and mouse to control both. (The displays being controlled remotely must support the XTEST extension. The servers shipped by Debian support this.)

To fix this problem, we can install more using the command below.

sudo apt-get -y install x2x

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install x2x.

sudo apt -y install x2x

Or if you have aptitude installed you can use the following command.

sudo aptitude install x2x

Summary

In this tutorial we learn how to fix x2x command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.