These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX02/XFree86 And Remote Connections

Classnotes | UNIX02 | RecentChanges | Preferences

As mentionned previously, XFree86 operates on a client/server model. This means you can run X server connections across a network as if you were sitting at the server.
This is not quite like VNC, which operates as a whole screen across a network and not individual windows.

xhost

When you connect to a remote system, you need to tell your local X server that it is okay to allow X connections from the remote machine. xhost is that command. It is the interface to the access control module inside XFree86. Its usage is very simple:
       xhost [[+-]name ...]

To add a machine, you use the '+' option. To remove a machine, you use the '-'. For example, to add the machine rogaine.minoxidil.com, you could use the following command:

 $ xhost +rogaine.minoxidil.com

To remove it, you would use:

 $ xhost -rogaine.minoxidil.com

If you wanted to allow all hosts access to your machine (note this is very dangerous) you would type:

 $ xhost +

Remote Shells

When you ssh into another machine, ssh automatically tunnels your X connetions. All you need to do is run 'xhost' on your local machine before connecting.

To run an X application across a network, first issue your xhost command, then ssh into the remote machine. I.e.:

 $ xhost +remote.system.com
 $ ssh student@remote.system.com
 (on remote.system.com)
 $ xterm &


Classnotes | UNIX02 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited May 10, 2003 7:39 pm (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.