X2xHowto

Revision 2 as of 2005-07-18 07:12:35

Clear message

This howto explains how to configure ubuntu to be remote controlled using x2x

Remote controlling ubuntu with x2x

Prequisites

Ubuntu can be controlled remotely very easily, but some setup is being necessary. First install x2x on the computer you want to use the mouse/keyboard on. If you want to be able to use your mice/keyboards both ways you need to repeat all the steps here for both computers.

Gnome (GDM) Instructions

Then go to Computer -> System Configuration -> Login Screen Setup. A password prompt will show up, enter your password (this requires sudo access). Go to the Security tab and make sure "Always disallow TCP connections to X server" is unchecked. The default security policy in ubuntu is to always deny remote X connections, however x2x requires this, since it's actually run from another host.

WDM Instructions

Just open /etc/X11/wdb/Xservers on your beloved editor (mine is emacs 0:^) and remove the -nolisten TCP option.

NOTE

After making those changes restarting your X server may be required.

Please be aware that this opens a system service which could be exploited remotely if not configured/used properly! The method described here allows all connections from the remote host to connect to the X server on the client. This could be a security hole e.g. the "server" being a multi user machine: All users on the Server have access to the client X-Server!

Using x2x

So in this example we will use the names workstation for the computer you want to use your mouse/keyboard on and laptop the one you want to allow access to. We will also assume that the workstation is stationed to the left of the laptop.

On "laptop", type the following:

xhost +workstation

From the "workstation" host, type the following in the terminal:

x2x -to laptop:0.0 -east

You can change -east to -west, -north or -south, depending on your setup.

For more x2x options, consult the man page of x2x(1):

man x2x

CategoryDocumentation