Thank you.

yes, the "local" system is Windows, and I use PuTTY to connect to remote
Linux via SSH. "X forwarding" is enabled.
but when I enter "xterm &", the remote host display:

Xlib: connection to "mylocalIPaddr:0.0" refused by server
Xlib: No protocol specified
xterm Xt error: Can't open display: mylocalIPaddr:0.0"xterm &".

if i modify $DISPLAY to "localhost:0.0", then "xterm Xt error: Can't open
display: localhost:0.0" appears when i issue xterm&

I remember there should be a listening port 6010 on the remote host, and
DISPLAY=localhost:0.0, that's to say: the local cygwin is a X11-server,
the remote host is a X11-client, remote host connect its port 6010 to
local host's port 6000, so
the display on the remote host will be redirected to local host.


Best Regards,

Bruce Gui

IBM Global Resource Delivery China
pan-IOT Europe Integrated Delivery Center - Platform Support Mainframe
E-mail:[EMAIL PROTECTED]




"McKown, John" <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[email protected]>
02/22/2006 12:03 AM
Please respond to
Linux on 390 Port


To
[email protected]
cc

Subject
Re: cygwin & x11






> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On
> Behalf Of Bruce Gui
> Sent: Tuesday, February 21, 2006 12:49 AM
> To: [email protected]
> Subject: cygwin & x11
>
>
> does any one know how to install a application with graphic
> interface by cygwin (local) and x11 (remote)?
>
> I only know on localhost these steps should be done:
> start cygwin
> xinit
> twm&
> netstat -a (listening on TCP port 6000)
>
> but on remote host, what should I do?
>
> Best Regards,
>
> Bruce Gui
>
> IBM Global Resource Delivery China

Bruce,

Since you said "cygwin", I take it that the "local" system is Windows.
If so, I strongly suggest getting PuTTY at
http://www.chiark.greenend.org.uk/~sgtatham/putty/ . It does both Telnet
and SSH. Then set up PuTTY to do "X forwarding". This will set up
everything to come to your desktop via an encrypted "back channel". The
PuTTY documentation is fairly good about explaining this, if you are not
familiar with it. Or just ask here again. You'll have a normal BASH
shell when PuTTY connects. You can get an "xterm" by simply entering
"xterm &".

Now for the method that will likely get me flamed a bit. If you are
running over a LAN and are not really concerned about somebody
"sniffing" your connection (like a wire tape), then you could simply use
Windows' telnet to connect to the remote Linux system. Once there, enter
the command:

export DISPLAY=your.windows.ip.address:0.0

Replace "your.windows.ip.address" with the IP address of your desktop.
Leave the ":0.0" portion as is.

This is totally insecure and not recommended. But I'll include it for
completeness sake and hope that the security people are relatively kind
to me and only call me foolish.


--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to