You are not logged in.
I suspect this isn't possible (I've done a fair share of Googling the topic), but I'll ask to be sure:
I know how there are X servers for Windows to allow X11 forwarding over SSH to a Windows machine. I use Xming at work to run applications on my Linux machine remotely from a Windows laptop.
What I want now is the reverse: I want a Linux machine running an X server, and to connect from it to a Windows SSH server and run, for example, notepad.exe via X11 forwarding over SSH. So I can only fathom that for this to be possible, the Windows GUI libraries would need third-party changes to behave with the client-server model that X11 uses. Has this ever been attempted?
Thanks for any suggestions!
Offline
You might look at TightVNC, but it forwards the entire desktop. It can be piped through an SSH tunnel.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Online
If I fully comprehend what you are trying to say, you want Windows applications to act as clients to a remote X11 server, that is, your Linux...workstation?
I don't think Windows applications are designed to draw to Xorg. Probably some system layer that handles graphics. Which means that you probably need some kind of mod of that layer which allows you to forward to Xorg. And that sounds like a pretty massive project. Maybe as complicated as Wine.
Lenovo Y450 + Arch x86_64 dual boot with Windows 7 + Openbox standalone + Arch default kernel + Nouveau + yours truly = A lot of *****in' in the Arch Forums.
Offline
You might look at TightVNC, but it forwards the entire desktop. It can be piped through an SSH tunnel.
I have, and right now that's my best alternative. Chances are that's the route I'll be taking...
If I fully comprehend what you are trying to say, you want Windows applications to act as clients to a remote X11 server, that is, your Linux...workstation?
I don't think Windows applications are designed to draw to Xorg. Probably some system layer that handles graphics. Which means that you probably need some kind of mod of that layer which allows you to forward to Xorg. And that sounds like a pretty massive project. Maybe as complicated as Wine.
I thought it would probably be a massive project, as well, but being that I'm no expert in this area I didn't know if someone might say "oh, as it turns out you just tweak x.dll a bit you can make it call our DLL which will draw to X11!"
Thanks for your responses.
Offline
Wouldn't rdesktop be a good solution? with the -s option you can tell rdesktop to run a single app instead of a whole desktop.
Offline
Wouldn't rdesktop be a good solution? with the -s option you can tell rdesktop to run a single app instead of a whole desktop.
I was not aware of this! That might be exactly what I need. Thanks!
Offline
pataphysician wrote:Wouldn't rdesktop be a good solution? with the -s option you can tell rdesktop to run a single app instead of a whole desktop.
I was not aware of this! That might be exactly what I need. Thanks!
xfreerdp, a fork of rdesktop, is a better option in that it's receiving more attention from the developer(s).
There's something to be aware of if the Windows machine is on some sort of Windows domain (SBS and such). If that's the case, you're going to need to change the RDP port on the target machine and set up port forwarding on any gateway/router that's in the middle.
Last edited by skottish (2011-05-10 02:55:59)
Offline
You can run RDP through your SSH tunnel, so no need to forward the RDP port.
Offline
I searched for something like this endlessly in the past to no avail unfortunately. I found a few links to old mailing list posts and abandoned projects, as I suspect the project is just a very complicated one.
There were a few methods and ideas around for a real "Export this windows application to an X11 display":
1. Attempt to rip x11drv out of Wine and somehow get it compile on Windows. This likely won't work without half of the rest of Wine and a port of Xlib.
2. Port Xlib or XCB to Windows, perhaps using Cygwin, and then stub out gdi32.dll (iirc) and replace the drawing calls with Xlib ones by hand. But there may be more than just gdi32.dll to be replaced. I think this method was actually attempted and even partially succeeded (using the Microsoft Detours library with Cygwin), although I was never able to replicate the success
3. Write a display driver that sends everything via Xlib (or XCB etc).
Here are the most relevant links I could find:
http://sourceware.org/ml/win32-x11/2004 … 00053.html
http://sources.redhat.com/ml/win32-x11/ … 00004.html
http://www.winehq.org/pipermail/wine-de … 34195.html
http://sources.redhat.com/XOpenWin/
Sorry I can't be of more help man, I was also unable to get the RDP single application trick working but if that works for you then it's probably the best bet for now.
Offline
What about seamlessrdp?
Offline
I dont have much supporting information for this, but I like TigerVNC over TightVNC. Their vision and active development are what makes me prefer TigerVNC
Offline