Sunday, September 02, 2007

Exporting Linux Display to Windows

Never knew something like this existed until i started using it on Friday. As the topic suggests it is possible to get the display of the remote GNU/Linux machine in you Windoze or any other OS. All it needs to do is to install an Xserver in the local machine. For Windoze, Xserver can be installed using the Xming package available in sourceforge. The exact location of the xming xserver is Download and install the Xming server in the machine and run it with the option ":0 -clipboard -multiwindow -ac". To change the options in windoze, right click the short cut and add "-ac" option to the list of option already available.

The steps to be done in the GNU/Linux machine is very simple, all you have to do is to export the DISPALY environment variable. So execute the command like

export DISPLAY=ipaddress:0.0

where ipaddress is the IP of the windoze machine. Now opening any GUI application like xcalc or xemacs or xterm will open a window in the Windows machine.  Though it is a well known fact that GNU/Linux command line is far more powerful, looks like this finds a use in a number of situation.

1 comment:

sagar said...


Does this also work if Anyone or either of the machines is behind a Gateway/Router/Firewall ?

My case: My Linux machine is on Public IP however my Windows machine is on private IP.
I updated the Display variable with the public ip of the Gateway/Router behind which my windows machine is located.

Still it does not work. Can u help ?