X windows display problem

Meredith Finkelstein meredith@www.honeybeerobotics.com
Tue Sep 3 12:26:00 GMT 2002


Thanks to everyone for their help. 

However I am still not getting it to work... 
 when i echo my DISPLAY variable in cygwin it  gives me 172.0.0.1 - the loop 
back (or whatever the proper term is) - using this value remote xwindows does 
not work.

when i change the display to the actual client ip number and ssh - remote 
xwindows still does not work. 

when i ssh and am on the remote host, and i echo the DISPLAY i get nothing. 
but i thought this was normal since i'm using the X flag with ssh.  Anyway 
when i set export the display=<localhost>:0.0 & then run xeyes
then i get the following message
Xlib: connection to "<localhost>:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: <localhost>:0.0
(nb - it puts my ip number instead of localhost)
thanks a lot & any other suggestions would be greatly appreciated
Meredith

> I guess I should have read your message a little more carefully 
> before replying.  You said that sshd has been configure with 
> X11Forwarding turned on.
> 
> Give the following a try:
> 
> 1) On the local system, before running ssh, echo the value of 
> DISPLAY. It should have a value of "<localhost>:0.0" or something 
> similar.  If it doesn't, manually set it to the correct value. 
>  Verify its value by running a simple xclient like xeyes. 2) Run 
> your ssh -X command. 3) On the remote system, echo the value of 
> DISPLAY.  It should have a value of "<remotesystem>:10.0" or 
> something similar.  If it doesn't have the right value, try setting 
> it manually.  If that doesn't work, then I'm stumped.
> 
> >From: "Thomas Chadwick" <j_tetazoo@hotmail.com>
> >Reply-To: cygwin-xfree@cygwin.com
> >To: cygwin-xfree@cygwin.com, meredith@www.honeybeerobotics.com
> >Subject: Re: X windows display problem
> >Date: Fri, 30 Aug 2002 16:07:13 -0400
> >
> >What is the value of the DISPLAY environment variable on the remote 
machine 
> >after running ssh?
> >
> >It should have a value of "<remotehostname>:10.0", or something similar.
> >
> >If it's empty, or the value looks like "<remotehostname>:0.0", 
> >"<localhostname:0.0", or simply ":0", then there is a problem with the X 
> >forwarding.
> >
> >Note that the ssh daemon on the remote machine has to be explicitly told 
to 
> >enable X forwarding.  This might be to blame.
> >
> >I've also seen the existance of the .Xauthority file in the home directory 
> >on the local Cygwin host cause problems.
> >
> >>From: "Meredith Finkelstein" <meredith@www.honeybeerobotics.com>
> >>Reply-To: cygwin-xfree@cygwin.com
> >>To: "cygwin-xfree@cygwin.com" <cygwin-xfree@cygwin.com>
> >>Subject: X windows display problem
> >>Date: Fri, 30 Aug 2002 15:41:41 -0400
> >>
> >>Hi
> >>I have found some related posts in the archives, but nothing that seems to
> >>solve my problem, which is:
> >>
> >>I start startxwin.sh from my client (which runs windows2000) (I have tried
> >>both cygwin shell and cmd)
> >>then i open up an ssh connection (ssh -X -l username hostname) to my host
> >>computer which is running red hat 7.3.  The sshd config file has
> >>X11Forwarding turned on
> >>
> >>when i try to open xterm, xeyes, anything  - i get the following error:
> >>
> >>xterm Xt error: Can't open display:
> >>
> >>this happens no matter which window i am sshing from - cmd, cygwin, 
> >>xwindows.
> >>and /tmp/XWin.log displays no error messages
> >>
> >>Any suggestions?
> >>Thanks,
> >>Meredith
> >>
> >>
> >>
> >>
> >>--
> >>Open WebMail Project (http://openwebmail.org)
> >
> >
> >
> >
> >_________________________________________________________________
> >Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> _________________________________________________________________
> Join the worldÂ’s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com


--
Open WebMail Project (http://openwebmail.org)



More information about the Cygwin-xfree mailing list