To install x2x just follow these instructions.
sudo apt-get install x2x
Which will install x2x and any other packages on which it depends.
|Maintainer||Barak A. Pearlmutter <firstname.lastname@example.org>|
|Home page||https://github.com/dottedmag/x2x network::server, role::program, uitoolkit::xlib, use::viewing, x11::application|
|Description||Link two X displays together, simulating a multiheaded display 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.)|