Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Other *NIX Forums > Other *NIX
User Name
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.


View Poll Results: Is it possible to tunnel an XP or DOS program through CYGWIN, an X Window, and SSH?
It can't be done. What a stupid question! 1 25.00%
It should be possible, but I don't know how you'd do it. 3 75.00%
Yes, it can be done. I know because I've done it! 0 0%
Voters: 4. You may not vote on this poll

  Search this Thread
Old 01-27-2009, 01:00 PM   #1
Registered: Jun 2008
Posts: 161

Rep: Reputation: 32
Cygwin/X Window in Microsoft Windows. X Window forwarding of MS Windows programs?

I have a crazy question, and I'm sure the answer is "it can't be done. What a stupid question!", but here goes.

Say I've got an SSH server and an X Window server running on my Windows PC. Would it be possible to log in remotely from a Linux computer using SSH and launch a MS Windows or DOS program through a forwarded X Window? That way, I wouldn't have to bother with VNC.

I assume this wouldn't work, because I assume the X Window server can't display a MS Windows program, even if the X Window server is running on a MS Windows PC.

Still, if anybody knows a way to make this work, I'd love to hear about it.


I use MobaXVT and MobaSSH on my PC, rather than a full Cygwin build. If is IS possible to tunnel an MS Windows or DOS program through an X Window and SSH, would it be possible with the stripped down Moba servers, or would I need a full Cygwin build?

Thanks in advance!
Old 01-27-2009, 02:44 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Why don't you just rdesktop instead of VNC? It uses the native Microsoft RDP (i.e. Remote Desktop)...

EDIT: Oh yeah, I would vote for "can't be done" because windows apps don't use the X server. I guess I've never tried running a remote windows program via Wine, but that's sort of what would have to happen because you have to have the local API's running on the linux machine for the Windows program to function properly.

Last edited by pljvaldez; 01-27-2009 at 02:47 PM.
Old 01-27-2009, 03:32 PM   #3
Registered: Jun 2008
Posts: 161

Original Poster
Rep: Reputation: 32
I'd like to circumvent both VNC and RDP.

But you're right, RDP does allow opening a specific program rather than displaying the entire desktop. I suppose I could just go with the easy answer...

Last edited by roystonlodge; 01-27-2009 at 03:37 PM.
Old 02-03-2009, 12:31 PM   #4
Registered: Jun 2008
Posts: 161

Original Poster
Rep: Reputation: 32
After trying it out, I can confidently report that an RDP connection to my Windows PC is much faster than connecting to my Linux PC by tunnelling X through SSH.
Old 02-03-2009, 02:40 PM   #5
Registered: Jun 2008
Posts: 161

Original Poster
Rep: Reputation: 32
On the other hand alert: I just discovered the -C option to compress SSH, and it really speeds up the tunnelled Xwindow connection.
Old 02-06-2009, 12:15 PM   #6
LQ Newbie
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Gnome vs kde4

I like kde3.5 because it is better than kde 4. But there is no chance to vote for kde3.5, I think gnome is better than kde 4, so i vote for it...
Old 03-02-2009, 10:40 PM   #7
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 651

Rep: Reputation: 84
I hope someone comes up with a good answer, but in the mean time, I do a related thing. I sometimes run Windows apps in Wine on my upstairs Linux PC via SSH from a remote PC.

That is, while downstairs I can type "wine freecell" into an SSH terminal and up pops the familiar Windows game.
Old 10-14-2009, 02:19 PM   #8
Registered: Jun 2008
Posts: 161

Original Poster
Rep: Reputation: 32
At the end of the day, I've just been using the old SSH&VNC combo.

However, since I haven't used the Windows PC referred to in this thread for a long time, maybe I'll just install Debian on it and run what few Windows programs I need via WINE.

Hmm... I've never had a permanent Linux desktop before. I've only ever used it for servers, or on older laptops once Windows got too bloated to run properly on them. Hmm...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hep required on how to use cygwin XDMCP on windows to display Fedora 9 GDM window bstacey Linux - Newbie 0 12-01-2008 04:57 PM
X Window in Windows XP Abdul-Qadir Thamin Linux - Newbie 1 01-18-2008 11:00 PM
Switching window focus (like alt+tab in windows) and Ctrl+Alt+F1 X windows problem... DiZASTiX Linux - Software 3 01-20-2005 04:56 PM
Full X Window access from MS Windows using cygwin btexpress Linux - Networking 2 06-01-2004 11:02 AM
CYGWIN window manager Risc91 Linux - General 1 03-14-2003 03:06 PM > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration