public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Can't use mintty instead of rxvt for ssh -Y using cygwin xserver
@ 2010-10-08 17:10 Reckoner
  2010-10-08 17:40 ` Christopher Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Reckoner @ 2010-10-08 17:10 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Hi,

I'm starting my xserver using

  C:\cygwin\bin\run.exe -p /usr/X11R6/bin XWin -multiwindow
-clipboard -silent-dup-error

and then I do:

  C:\cygwin\bin\rxvt.exe -e /bin/xhere /bin/zsh

when I do

  % ssh -Y host@remote.edu

I can successfully open remote x-windows.

However,

If I use mintty 0.91 instead of rxvt as shown below:

  C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/zsh

when I do

  % ssh -Y host@remote.edu

I *cannot* successfully open remote x-windows.

Note that changing the shell from zsh to bash doesn't help at all.

Any advice appreciated.

The appropriate log files are attached.

[-- Attachment #2: XWin.0.log --]
[-- Type: application/octet-stream, Size: 5106 bytes --]

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.8.2.0 (10802000)
Build Date: 2010-08-06

Contact: cygwin-xfree@cygwin.com
XWin was started with the following command line:

/usr/bin/XWin -multiwindow -clipboard -silent-dup-error 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - primary monitor w 1152 h 864
winInitializeDefaultScreens - native DPI x 96 y 96
winInitializeDefaultScreens - Returning
[  7392.890] _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
[  7392.890] _XSERVTransOpen: transport open failed for inet6/xppro:0
[  7392.890] _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[  7393.218] winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
[  7393.218] (II) xorg.conf is not supported
[  7393.218] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[  7393.218] LoadPreferences: /home/reckoner/.XWinrc not found
[  7393.218] LoadPreferences: Loading /etc/X11/system.XWinrc
[  7393.218] LoadPreferences: Done parsing the configuration file...
[  7393.218] winGetDisplay: DISPLAY=:0.0
[  7393.218] winDetectSupportedEngines - Windows NT/2000/XP
[  7393.218] winDetectSupportedEngines - DirectDraw installed
[  7393.218] winDetectSupportedEngines - Allowing PrimaryDD
[  7393.218] winDetectSupportedEngines - DirectDraw4 installed
[  7393.218] winDetectSupportedEngines - Returning, supported engines 0000001f
[  7393.234] winSetEngine - Multi Window or Rootless => ShadowGDI
[  7393.234] winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
[  7393.296] winAllocateFBShadowGDI - Creating DIB with width: 2752 height: 900 depth: 32
[  7393.296] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[  7393.296] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[  7393.296] null screen fn ReparentWindow
[  7393.296] null screen fn RestackWindow
[  7393.296] InitQueue - Calling pthread_mutex_init
[  7393.296] InitQueue - pthread_mutex_init returned
[  7393.296] InitQueue - Calling pthread_cond_init
[  7393.296] InitQueue - pthread_cond_init returned
[  7393.296] winInitMultiWindowWM - Hello
[  7393.296] winInitMultiWindowWM - Calling pthread_mutex_lock ()
[  7393.296] Screen 0 added at virtual desktop coordinate (1600,0).
[  7393.296] winMultiWindowXMsgProc - Hello
[  7393.296] winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
[  7393.312] MIT-SHM extension disabled due to lack of kernel support
[  7393.328] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[  7393.359] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
[  7393.359] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  7393.375] [dix] Could not init font path element /usr/share/fonts/TTF/, removing from list!
[  7393.375] [dix] Could not init font path element /usr/share/fonts/OTF/, removing from list!
[  7393.390] [dix] Could not init font path element /usr/share/fonts/Type1/, removing from list!
[  7394.171] winPointerWarpCursor - Discarding first warp: 1376 450
[  7394.171] (--) 5 mouse buttons found
[  7394.171] (--) Setting autorepeat to delay=500, rate=31
[  7394.171] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[  7394.171] (--) Found matching XKB configuration "English (USA)"
[  7394.171] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[  7394.171] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[  7394.171] winInitMultiWindowWM - pthread_mutex_lock () returned.
[  7394.187] winInitMultiWindowWM - pthread_mutex_unlock () returned.
[  7394.187] winMultiWindowXMsgProc - pthread_mutex_lock () returned.
[  7394.187] winGetDisplay: DISPLAY=:0.0
[  7394.187] winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
[  7394.187] winInitMultiWindowWM - DISPLAY=:0.0
[  7394.187] winGetDisplay: DISPLAY=:0.0
[  7394.187] winMultiWindowXMsgProc - DISPLAY=:0.0
[  7394.187] winProcEstablishConnection - Hello
[  7394.187] winInitClipboard ()
[  7394.187] winProcEstablishConnection - winInitClipboard returned.
[  7394.187] winClipboardProc - Hello
[  7394.187] DetectUnicodeSupport - Windows NT/2000/XP
[  7394.187] winGetDisplay: DISPLAY=:0.0
[  7394.187] winClipboardProc - DISPLAY=:0.0
[  7394.203] winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
[  7394.203] winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
[  7394.203] winClipboardProc - XOpenDisplay () returned and successfully opened the display.
[  8018.328] winDeinitMultiWindowWM - Noting shutdown in progress
[  8018.328] winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop.
[  8018.328] winClipboardProc - XDestroyWindow succeeded.
[  8018.328] winClipboardIOErrorHandler!

[  8018.328] winMultiWindowXMsgProcIOErrorHandler!

[  8018.328] winInitMultiWindowXMsgProc - Caught IO Error.  Exiting.
[  8018.390] winDeinitMultiWindowWM - Noting shutdown in progress

[-- Attachment #3: cygcheck.out --]
[-- Type: application/octet-stream, Size: 48929 bytes --]

[-- Attachment #4: Type: text/plain, Size: 223 bytes --]

--
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: Can't use mintty instead of rxvt for ssh -Y using cygwin xserver
  2010-10-08 17:10 Can't use mintty instead of rxvt for ssh -Y using cygwin xserver Reckoner
@ 2010-10-08 17:40 ` Christopher Faylor
  2010-10-11 16:02   ` reckoner
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Faylor @ 2010-10-08 17:40 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, Oct 08, 2010 at 10:10:28AM -0700, Reckoner wrote:
>Hi,
>
>I'm starting my xserver using
>
>  C:\cygwin\bin\run.exe -p /usr/X11R6/bin XWin -multiwindow
>-clipboard -silent-dup-error
>
>and then I do:
>
>  C:\cygwin\bin\rxvt.exe -e /bin/xhere /bin/zsh
>
>when I do
>
>  % ssh -Y host@remote.edu
>
>I can successfully open remote x-windows.
>
>However,
>
>If I use mintty 0.91 instead of rxvt as shown below:
>
>  C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/zsh
>
>when I do
>
>  % ssh -Y host@remote.edu
>
>I *cannot* successfully open remote x-windows.
>
>Note that changing the shell from zsh to bash doesn't help at all.
>
>Any advice appreciated.
>
>The appropriate log files are attached.

According to your cygcheck output, you don't have a DISPLAY environment
variable set.  Does performing an "export DISPLAY=:0" before using ssh
help?

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: Can't use mintty instead of rxvt for ssh -Y using cygwin xserver
  2010-10-08 17:40 ` Christopher Faylor
@ 2010-10-11 16:02   ` reckoner
  2010-10-11 16:15     ` Andy Koppe
  0 siblings, 1 reply; 6+ messages in thread
From: reckoner @ 2010-10-11 16:02 UTC (permalink / raw)
  To: cygwin-xfree

Thanks for your reply.

Evidently, there is some subtle difference in how the DISPLAY variable, 
which is set in the user startup files is processed by rxvt as opposed 
to mintty.

Ultimately, although the DISPLAY variable is clearly set in the user 
startup files, I additionally had to set it higher up in the startup 
process in /etc/profile in order to get it to work with mintty.

Thanks again for all your help.

On 10/8/2010 10:39 AM, Christopher Faylor wrote:
> On Fri, Oct 08, 2010 at 10:10:28AM -0700, Reckoner wrote:
>> Hi,
>>
>> I'm starting my xserver using
>>
>>   C:\cygwin\bin\run.exe -p /usr/X11R6/bin XWin -multiwindow
>> -clipboard -silent-dup-error
>>
>> and then I do:
>>
>>   C:\cygwin\bin\rxvt.exe -e /bin/xhere /bin/zsh
>>
>> when I do
>>
>>   % ssh -Y host@remote.edu
>>
>> I can successfully open remote x-windows.
>>
>> However,
>>
>> If I use mintty 0.91 instead of rxvt as shown below:
>>
>>   C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/zsh
>>
>> when I do
>>
>>   % ssh -Y host@remote.edu
>>
>> I *cannot* successfully open remote x-windows.
>>
>> Note that changing the shell from zsh to bash doesn't help at all.
>>
>> Any advice appreciated.
>>
>> The appropriate log files are attached.
>
> According to your cygcheck output, you don't have a DISPLAY environment
> variable set.  Does performing an "export DISPLAY=:0" before using ssh
> help?
>
> 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/
>

--
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: Can't use mintty instead of rxvt for ssh -Y using cygwin xserver
  2010-10-11 16:02   ` reckoner
@ 2010-10-11 16:15     ` Andy Koppe
  2010-10-11 17:22       ` Christopher Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Koppe @ 2010-10-11 16:15 UTC (permalink / raw)
  To: cygwin-xfree

On 11 October 2010 17:02, reckoner wrote:
> Evidently, there is some subtle difference in how the DISPLAY variable,
> which is set in the user startup files is processed by rxvt as opposed to
> mintty.
>
> Ultimately, although the DISPLAY variable is clearly set in the user startup
> files, I additionally had to set it higher up in the startup process in
> /etc/profile in order to get it to work with mintty.

Rxvt and also xterm set DISPLAY to the X display they're connected to.
Mintty of course isn't an X application, hence all it could do is take
an uneducated guess and set DISPLAY to ':0'. I don't think that would
be appropriate, because no X server might be present or it might point
at the wrong one. The Cygwin console and PuTTYcyg don't set DISPLAY
either.

Andy

--
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: Can't use mintty instead of rxvt for ssh -Y using cygwin xserver
  2010-10-11 16:15     ` Andy Koppe
@ 2010-10-11 17:22       ` Christopher Faylor
  2010-10-11 21:42         ` Charles Wilson
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Faylor @ 2010-10-11 17:22 UTC (permalink / raw)
  To: cygwin-xfree

On Mon, Oct 11, 2010 at 05:14:56PM +0100, Andy Koppe wrote:
>On 11 October 2010 17:02, reckoner wrote:
>>Evidently, there is some subtle difference in how the DISPLAY variable,
>>which is set in the user startup files is processed by rxvt as opposed
>>to mintty.
>>
>>Ultimately, although the DISPLAY variable is clearly set in the user
>>startup files, I additionally had to set it higher up in the startup
>>process in /etc/profile in order to get it to work with mintty.
>
>Rxvt and also xterm set DISPLAY to the X display they're connected to.
>Mintty of course isn't an X application, hence all it could do is take
>an uneducated guess and set DISPLAY to ':0'.  I don't think that would
>be appropriate, because no X server might be present or it might point
>at the wrong one.  The Cygwin console and PuTTYcyg don't set DISPLAY
>either.

You probably could try to figure out if the X server is working and then
see which display is being used from that but I really don't think it
makes sense to slow down mintty to perform this check.  FWIW, this
wouldn't work with the linux console either.

IMO, it just boils down to a situation where, if the user wants to have
things display remotely, they have to go to the effort to properly set
the DISPLAY environment variable.  Modifying mintty, the cygwin console,
or any other non-X application to do the right thing isn't the way to
go.

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: Can't use mintty instead of rxvt for ssh -Y using cygwin xserver
  2010-10-11 17:22       ` Christopher Faylor
@ 2010-10-11 21:42         ` Charles Wilson
  0 siblings, 0 replies; 6+ messages in thread
From: Charles Wilson @ 2010-10-11 21:42 UTC (permalink / raw)
  To: cygwin-xfree

On 10/11/2010 1:21 PM, Christopher Faylor wrote:
> You probably could try to figure out if the X server is working and then
> see which display is being used from that but I really don't think it
> makes sense to slow down mintty to perform this check.  FWIW, this
> wouldn't work with the linux console either.
> 
> IMO, it just boils down to a situation where, if the user wants to have
> things display remotely, they have to go to the effort to properly set
> the DISPLAY environment variable.  Modifying mintty, the cygwin console,
> or any other non-X application to do the right thing isn't the way to
> go.

FYI, the 'checkX' program from the run2 package could be useful here, as
part of a script the end user could run, within mintty or the cygwin
console...

--
Chuck

--
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:[~2010-10-11 21:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 17:10 Can't use mintty instead of rxvt for ssh -Y using cygwin xserver Reckoner
2010-10-08 17:40 ` Christopher Faylor
2010-10-11 16:02   ` reckoner
2010-10-11 16:15     ` Andy Koppe
2010-10-11 17:22       ` Christopher Faylor
2010-10-11 21:42         ` Charles Wilson

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).