Remote X Display

Small Linux | RecentChanges | Preferences

Remote X Display back to Network Connections

First the two machines need to be talking together, using eth or slip or plip or some way that they recognize each others tcp/ip addresses

On the remote machine: 192.168.93.1

make sure X will work with tcp - with Debian systems to use remote X you should alter /etc/X11/xinit/xserverrc

On your local machine: 192.168.93.2

log in as normal user, then startup X

 Then open an xterm
 DISPLAY should remain the as default,  DISPLAY=:0  or DISPLAY=:0.0
 Then type the following command:
 xhost 192.168.93.1
 This assumes your remote machine has this address
 Then use telnet to connect to the remote machine
 telnet 192.168.93.1
  then:
 export DISPLAY=102.168.93.1:0 
  or
  export DISPLAY=102.168.93.1:0.0
  then start the program you want thru telnet:
  xclock &
 after a moment you should see the program start up on your local X screen
  I have opened Opera and Netscape this way

NOTES

This is a very NON secure method of using X remotely. You have been warned!

xhost is a session limited command, after you close X, you have to run the command again the next time you start X

Apparantly you need some libraries for the remote program you are running, to be present on your local machine.

for more information see: http://slencyclopedia.berlios.de/index.php?Remote%20X%20Display

 rev 2 - 2001-7-17 second draft - after testing it myself
 rev 1 - 2001-7-16 first draft - based on User-Mode-Linux screens SuperLinux


Small Linux | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited August 6, 2001 6:40 pm (diff)
Search: