User Tools

Site Tools


x2x

If you want to send us your comments, please do so. Thanks
More on comments


x2x

Install and configure

  • Read the comments about security in man ssh under the -X option
  • Install x2x on the “to” computer
    • and maybe on both computers, so also on the “from” computer
  • Make sure libxcb-xtest0 is installed on the client, “to”. computer
  • Make sure an ssh server, like openssh-server is installed and running on the “ẗo” computer
  • In /etc/ssh/sshd_config on the “ẗo” computer turn on “X11Forwarding yes”

Connect

ssh -p portnumber -X 192.168.0.2 /usr/bin/x2x -to :0 -east
                                              ^ On which side of the screen you want the mousepointer to move to the other screen
                                      ^ The program ssh to be forwarded to
			^ the "to" screen computer's IP address

Use

  • If you use a single monitor for two computers and you have moved the mouse pointer to the other computer do not forget to switch the monitor to the other computer too (and later back :-)
  • When the “to” computer is turned off focus is placed on the “from” computer.
  • When the mousepointer leaves the “from” screen on the east side it has to return on the “to” screen on the west side.
  • To go back to the “from” screen double click somewhere (does not work everywhere on the screen), for xample in the panel on an expanded separator, and do it fast!
  • x2x can be stopped by typing CTRL-C in the terminal it is started in.

Errors

x2x not found

bash: /usr/bin/x2x: No such file or directory
bash: x2x: command not found

Solution: Install x2x on the client ,“to”, computer

Connection issues

Try logging in with ssh without x2x
Solutions

  • Check the portnumbers
  • Check the firewalls on both machines

Make sure the user is logged in on the other computer. It is not enough to only boot the computer without somebody logging in

No protocol specified

No protocol specified
x2x - error: can not open display :0

Make sure the user is logged in on the other computer. It is not enough to only boot the computer without somebody logging in

Alternatives

X forwarding

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
x2x.txt · Last modified: 30-06-2020 22:25 by wim