[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin-xfree
Subject:    Re: ERROR: Cannot open X display
From:       René Berber <r.berber () computer ! org>
Date:       2006-10-31 21:02:18
Message-ID: ei8dkq$3ud$1 () sea ! gmane ! org
[Download RAW message or body]

Luis G. Rivera wrote:

> I have used Cygwin/X on two computer in my office and it works
> with no problems.  There are several users who cannot use the
> softwared.  One in particular gets the following error messages:
> 
> ERROR: Cannot open X display.  Check display name/server
> access authorization.
[snip]
> 
> This is the steps that I use in my office to run Cygwin/X:
> 
> 1.	Execute "startxwin.bat".
> 2.	On the window that opens I type: xhost +
> hostname.temple.edu.  Then I type: ssh –X
> userid@hostname.temple.edu.  
> 3.	I type my password and get in with no problem.  Then I
> type: setenv DISPLAY myipaddress:0.0.

This is wrong, if you used "ssh -X" then DISPLAY is already set (by ssh) and it
has a different value, usually localhost:10.0 for the first connection.

The idea is that ssh will tunnel the X connection through itself (thus
localhost) and it uses a configurable display number (the 10.0).

The reason it works from some computers and not from others is that even if the
X server exists at myipaddress:0.0 it could be blocked by any firewall between
computers; the ssh tunnel is the way to avoid being blocked.

[snip]
-- 
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic