Using X server in Windows for calling remote graphical applications in Unix

Sometimes you need ability to run X apps from remote unix servers.
It is not a problem when you are using unix as a client, but what should you do when you running windows.

The answer:
1. Your can use X servers for windows such as Xming is(I recommend this case if you are sure that this is the onliest task you will perform).
2. You can run X server from Cygwin

Lets examine the second one:
1. Install Cygwin and run it.
2. In shell run:
$XWin -logfile /tmp/asd.log -ac &
3. Connect to the desired host:
$ssh -X host
4. You have to export $DISPLAY variable with a value which points to host you have come from:
host$export DISPLAY=sourcehost:0.0
5. Run your apps:
host$xterm

Comments

Peter Tribble said…
I always use VNC for this. Simply run a VNC session on the unix system, and get your applications to display to that.

Then run the VNC client on your windows machine (or Mac, or Linux machine, or smartphone). (Tunnel it over an ssh connection for preference.)

And you get session mobility as well. I often use this to leave a session running, which I pick up later from home.
nixlike said…
Thank you, Peter! I will try ...