On 11-06-29 09:29 PM, Hendrik Boom wrote:
On Wed, Jun 29, 2011 at 12:14:47PM -0400, Stefan Monnier wrote:
If you want to run X apps remotely, ie the app runs on your server but the
window appears on your desktop, then you need to run X on your server (may
already be doing that), ssh into it with X forwarding (putty config to turn
on x11 forwarding), and run and X server locally (eg hummingbird, xming).
Now you can run xterm from your putty session and it will appear on your
local desktop.
Andy, you're right on the money I think. Except for one little detail:
you don't need to "run X on your server" (that's only needed if you
want to run things on your server's display).
You're right, assuming that the "server" is the machine he wants to
run his program on that will display on his terminal. This is common parlance.
Technically, though, for the X protocol, the "server" is the machine he wants
the
windows to appear on -- the running program is the client, and it initiates an X
connectino to its server, the screen, which serves the program, its client, bu
displaying its data.
This is logical terminaology, though it seems backwards, but if you start
looking
through official X documentation, you'll be rathre confused unless you realise
this.
The program may be serving you, but the screen is serving the program.
As Dylan once wrote, you gotta serve somebody.
-- hendrik
Just a good write-up I found:
"If the server allows X forwarding for this connection, your login
proceeds normally, but the server takes some special steps behind the
scenes. In addition to handling your terminal session, it sets itself up
as a proxy X server running on the remote machine and sets the DISPLAY
environment variable in your remote shell to point to the proxy X display.
The DISPLAY value appears to refer to X display #10 on sys1, but there's
no such display. (In fact, there might be no true displays on sys1 at
all.) Instead, the DISPLAY value points to the X proxy established by
the SSH server, i.e., the SSH server is masquerading as an X server. If
you now run an X client program, it connects to the proxy. The proxy
behaves just like a "real" X server, and in turn instructs the SSH
client to behave as a proxy X client, connecting to the X server on your
local machine. The SSH client and server then cooperate to pass X
protocol information back and forth over the SSH pipe between the two X
sessions, and the X client program appears on your screen just as if it
had connected directly to your display."
http://docstore.mik.ua/orelly/networking_2ndEd/ssh/ch09_03.htm
Jeremy
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca