Classnotes | UNIX02 | RecentChanges | Preferences Difference (from revision 3 to current revision)
(minor diff, author diff) (The revisions are identical or unavailable.)
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.: