public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Problems running graphic interface in a remote host
@ 2011-07-21 17:11 Ciro
  2011-07-21 17:30 ` Christopher Faylor
  2011-07-23 11:21 ` Jon TURNEY
  0 siblings, 2 replies; 6+ messages in thread
From: Ciro @ 2011-07-21 17:11 UTC (permalink / raw)
  To: cygwin-xfree


Hi, I posted this issue in the Cygwin forum and was advised to post it here:

I've installed the new Gygwin set in my computer and I can't seem to start
any graphic interface in a remote host, for instance:

(C)SUMFO$ xclock &
[1]     973
(C)SUMFO$ Xlib: connection to "xx.xxx.xx.xxx:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: xx.xxx.xx.xxx:0.0

[1] +  Done(1)                 xclock &


The DISPLAY variable is fine, I've enabled X11 forwarding (I've tried also
without enabling this option):

ForwardX11 yes

but it's still failing, I've googled for this issue with cygwin but couldn't
find anything, any help would be appreciated
-- 
View this message in context: http://old.nabble.com/Problems-running-graphic-interface-in-a-remote-host-tp32107650p32107650.html
Sent from the cygwin-xfree mailing list archive at Nabble.com.


--
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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems running graphic interface in a remote host
  2011-07-21 17:11 Problems running graphic interface in a remote host Ciro
@ 2011-07-21 17:30 ` Christopher Faylor
  2011-07-22  1:00   ` Jack
  2011-07-23 11:21 ` Jon TURNEY
  1 sibling, 1 reply; 6+ messages in thread
From: Christopher Faylor @ 2011-07-21 17:30 UTC (permalink / raw)
  To: cygwin-xfree

On Thu, Jul 21, 2011 at 07:06:06AM -0700, Ciro wrote:
>
>Hi, I posted this issue in the Cygwin forum and was advised to post it here:
>
>I've installed the new Gygwin set in my computer and I can't seem to start
>any graphic interface in a remote host, for instance:
>
>(C)SUMFO$ xclock &
>[1]     973
>(C)SUMFO$ Xlib: connection to "xx.xxx.xx.xxx:0.0" refused by server
>Xlib: No protocol specified
>
>Error: Can't open display: xx.xxx.xx.xxx:0.0
>
>[1] +  Done(1)                 xclock &
>
>
>The DISPLAY variable is fine, I've enabled X11 forwarding (I've tried also
>without enabling this option):
>
>ForwardX11 yes
>
>but it's still failing, I've googled for this issue with cygwin but couldn't
>find anything, any help would be appreciated

It sounds like you need to do "xhost +" on the remote host.

Try googling "connection refused by server" for more information.

This isn't a Cygwin problem.

cgf

--
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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems running graphic interface in a remote host
  2011-07-21 17:30 ` Christopher Faylor
@ 2011-07-22  1:00   ` Jack
  2011-07-22 14:10     ` Andrew DeFaria
  0 siblings, 1 reply; 6+ messages in thread
From: Jack @ 2011-07-22  1:00 UTC (permalink / raw)
  To: cygwin-xfree

On 2011.07.21 13:10, Christopher Faylor wrote:
> On Thu, Jul 21, 2011 at 07:06:06AM -0700, Ciro wrote:
> >
> >Hi, I posted this issue in the Cygwin forum and was advised to post  
> it here:
> >
> >I've installed the new Gygwin set in my computer and I can't seem to  
> start
> >any graphic interface in a remote host, for instance:
> >
> >(C)SUMFO$ xclock &
> >[1]     973
> >(C)SUMFO$ Xlib: connection to "xx.xxx.xx.xxx:0.0" refused by server
> >Xlib: No protocol specified
> >
> >Error: Can't open display: xx.xxx.xx.xxx:0.0
> >
> >[1] +  Done(1)                 xclock &
> >
> >
> >The DISPLAY variable is fine, I've enabled X11 forwarding (I've  
> tried also
> >without enabling this option):
> >
> >ForwardX11 yes
Where did you enable this?  Have you enabled forwarding on both ends of  
the connection?  How did you get to the remote host?  Have you tried  
"ssh -Y" or "ssh -X" ?
> >
> >but it's still failing, I've googled for this issue with cygwin but  
> couldn't
> >find anything, any help would be appreciated
> 
> It sounds like you need to do "xhost +" on the remote host.
Wouldn't that be doing "xhost +" on cygwin?  It's the cygwin X server  
that's rejecting the connection.
> 
> Try googling "connection refused by server" for more information.
> 
> This isn't a Cygwin problem.

--
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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems running graphic interface in a remote host
  2011-07-22  1:00   ` Jack
@ 2011-07-22 14:10     ` Andrew DeFaria
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew DeFaria @ 2011-07-22 14:10 UTC (permalink / raw)
  To: cygwin-xfree

On 7/21/2011 10:26 AM, Jack wrote:
> On 2011.07.21 13:10, Christopher Faylor wrote:
>> On Thu, Jul 21, 2011 at 07:06:06AM -0700, Ciro wrote:
>> >
>> >Hi, I posted this issue in the Cygwin forum and was advised to post 
>> it here:
>> >
>> >I've installed the new Gygwin set in my computer and I can't seem to 
>> start
>> >any graphic interface in a remote host, for instance:
>> >
>> >(C)SUMFO$ xclock &
>> >[1]     973
>> >(C)SUMFO$ Xlib: connection to "xx.xxx.xx.xxx:0.0" refused by server
>> >Xlib: No protocol specified
>> >
>> >Error: Can't open display: xx.xxx.xx.xxx:0.0
>> >
>> >[1] +  Done(1)                 xclock &
>> >
>> >
>> >The DISPLAY variable is fine, I've enabled X11 forwarding (I've 
>> tried also
>> >without enabling this option):
>> >
>> >ForwardX11 yes
> Where did you enable this?  Have you enabled forwarding on both ends 
> of the connection?  How did you get to the remote host?  Have you 
> tried "ssh -Y" or "ssh -X" ?
I've also seen that if DISPLAY was not set before you ssh then even ssh 
-X will not work. After you ssh -X to remote host, what does $DISPLAY 
contain?
>> >
>> >but it's still failing, I've googled for this issue with cygwin but 
>> couldn't
>> >find anything, any help would be appreciated
>>
>> It sounds like you need to do "xhost +" on the remote host.
> Wouldn't that be doing "xhost +" on cygwin?  It's the cygwin X server 
> that's rejecting the connection.
Indeed!
>>
>> Try googling "connection refused by server" for more information.
>>
>> This isn't a Cygwin problem.
>
> -- 
> 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/
>
>

-- 
Andrew DeFaria <http://defaria.com>
Taxation with representation isn't so hot, either!


--
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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems running graphic interface in a remote host
  2011-07-21 17:11 Problems running graphic interface in a remote host Ciro
  2011-07-21 17:30 ` Christopher Faylor
@ 2011-07-23 11:21 ` Jon TURNEY
  2011-07-26 13:21   ` Ciro
  1 sibling, 1 reply; 6+ messages in thread
From: Jon TURNEY @ 2011-07-23 11:21 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: ciro.vilchez

On 20/07/2011 12:18, Ciro wrote:
 > I'm running Cygwin/X, yes, I can run xterm or rxvt locally, in fact I could
 > run the graphic interface in the remote server until I installed the new
 > Cygwin/X. I'm not sur ewhat the problem could be.

On 21/07/2011 15:06, Ciro wrote:
> I've installed the new Gygwin set in my computer and I can't seem to start
> any graphic interface in a remote host, for instance:
>
> (C)SUMFO$ xclock&
> [1]     973
> (C)SUMFO$ Xlib: connection to "xx.xxx.xx.xxx:0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: xx.xxx.xx.xxx:0.0
>
> [1] +  Done(1)                 xclock&
>
>
> The DISPLAY variable is fine, I've enabled X11 forwarding (I've tried also
> without enabling this option):
>
> ForwardX11 yes
>
> but it's still failing, I've googled for this issue with cygwin but couldn't
> find anything, any help would be appreciated

I still can't tell if you are using ssh forwarding or not.

If you are using ssh forwarding, that DISPLAY setting is wrong, you should 
leave it at what sshd sets it to on the remote host (typically something like 
localhost:10.0)

If you aren't using ssh forwarding (not recommended), you need to use xhost 
on the cygwin computer to allow access by the remote host (or equivalent actions)

I'm not sure why this would have stopped working after upgrading X (although 
you don't say what version from). Perhaps you had added the X server -ac 
option in the script used to start the X server, which had been updated?

[1] http://x.cygwin.com/docs/ug/using-remote-apps.html
[2] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problems running graphic interface in a remote host
  2011-07-23 11:21 ` Jon TURNEY
@ 2011-07-26 13:21   ` Ciro
  0 siblings, 0 replies; 6+ messages in thread
From: Ciro @ 2011-07-26 13:21 UTC (permalink / raw)
  To: cygwin-xfree



Hi,

I found the issue, xhost wasn't automatically installed so I had to do it
manually and run it form my host. Now it works.

I've tried also connecting with ssh forwarding before, but when I issue ssh
-Y my keyboard is not working properly anymore, I think I need to use the
setxkbmap option, but I'm fine connecting without the ssh forwarding.

Thanks for your help.



Jon TURNEY wrote:
> 
> On 20/07/2011 12:18, Ciro wrote:
>  > I'm running Cygwin/X, yes, I can run xterm or rxvt locally, in fact I
> could
>  > run the graphic interface in the remote server until I installed the
> new
>  > Cygwin/X. I'm not sur ewhat the problem could be.
> 
> On 21/07/2011 15:06, Ciro wrote:
>> I've installed the new Gygwin set in my computer and I can't seem to
>> start
>> any graphic interface in a remote host, for instance:
>>
>> (C)SUMFO$ xclock&
>> [1]     973
>> (C)SUMFO$ Xlib: connection to "xx.xxx.xx.xxx:0.0" refused by server
>> Xlib: No protocol specified
>>
>> Error: Can't open display: xx.xxx.xx.xxx:0.0
>>
>> [1] +  Done(1)                 xclock&
>>
>>
>> The DISPLAY variable is fine, I've enabled X11 forwarding (I've tried
>> also
>> without enabling this option):
>>
>> ForwardX11 yes
>>
>> but it's still failing, I've googled for this issue with cygwin but
>> couldn't
>> find anything, any help would be appreciated
> 
> I still can't tell if you are using ssh forwarding or not.
> 
> If you are using ssh forwarding, that DISPLAY setting is wrong, you should 
> leave it at what sshd sets it to on the remote host (typically something
> like 
> localhost:10.0)
> 
> If you aren't using ssh forwarding (not recommended), you need to use
> xhost 
> on the cygwin computer to allow access by the remote host (or equivalent
> actions)
> 
> I'm not sure why this would have stopped working after upgrading X
> (although 
> you don't say what version from). Perhaps you had added the X server -ac 
> option in the script used to start the X server, which had been updated?
> 
> [1] http://x.cygwin.com/docs/ug/using-remote-apps.html
> [2] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding
> 
> -- 
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer
> 
> --
> 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/
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Problems-running-graphic-interface-in-a-remote-host-tp32107650p32130876.html
Sent from the cygwin-xfree mailing list archive at Nabble.com.


--
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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-25 11:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 17:11 Problems running graphic interface in a remote host Ciro
2011-07-21 17:30 ` Christopher Faylor
2011-07-22  1:00   ` Jack
2011-07-22 14:10     ` Andrew DeFaria
2011-07-23 11:21 ` Jon TURNEY
2011-07-26 13:21   ` Ciro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).