This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Unable to connect to X Server -- Updated
- To: "'Giridharan Iyengar'" <giyengar at us dot ibm dot com>, cygwin-xfree at cygwin dot com
- Subject: RE: Unable to connect to X Server -- Updated
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Wed, 7 Mar 2001 17:46:57 -0500
> REM *********THIS PART COMMENTED OUT. IF YOU WANT TO USE
> NOHUP, UNCOMMENT
> EVERYTHING AND COMMENT OUT START BELOW********
> bash -c "/usr/bin/nohup /usr/bin/bash -c ""/bin/bash -c 'XWin :0'&""&"
>
> bash -c "/usr/bin/nohup /usr/bin/bash -c ""/usr/bin/bash -c './xterm
> -display :0 -sb -sl 2048 -font 7x13bold -sb -rightbar -ms red
> -fg yellow
> -bg black -e /usr/bin/bash' &""&" &
> bash -c "/usr/bin/nohup /usr/bin/bash -c ""/usr/bin/bash -c
> './twm -display
> :0' &""&" &
Oh i see you are using nohup? I am having problems with it too
since Cygwin 1.1.6. If I add it to startxwin.bat it does not work,
but if I type it from a bash shell, it works. I did not get time
to investigate it. It used to work perfect until Cygwin 1.1.4.
I recommend in your startxwin.bat file comment out nohup commands
and use
start /B ./xterm :0
start /B ./twm :0
Suhaib
> REM bash -c "/usr/bin/nohup /usr/bin/bash -c ""/usr/bin/bash
> -c './mxterm
> -sb -sl 2048 -font 7x13bold -sb -rightbar -ms red -fg yellow
> -bg black -e
> /usr/bin/bash' &""&" &
> REM bash -c "/usr/bin/nohup /usr/bin/bash -c ""/usr/bin/bash
> -c './rxvt -fn
> 7x13bold -e /usr/bin/bash' &""&" &
> REM bash -c "/usr/bin/nohup /usr/bin/bash -c ""/usr/bin/bash
> -c './xfwm'
> &""&"
>
>
> REM ***************** TO USE WINDOWS START
> COMMAND*********************
>
> REM start XWin -screen 0 800x600x16 -whitepixel 255 -blackpixel 0
>
> REM start XWin -screen 0 800x600x16
>
> REM start rxvt -fn "Lucida Console-12"
> REM start xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
> /usr/bin/bash
> REM start /B mxterm -sl 1000 -sb -rightbar -ms red -fg yellow
> -bg black -e
> /usr/bin/bash
> REM start /B xfwm
>
> REM start mwm
> REM start twm
> REM set stty=intr ^c susp ^z start ^q stop ^s quit ^\\ erase ^?
> @echo on
> ==============================================================
> ================================================
>
> I added the -display :0 for both twm and xterm after suhaib's
> suggestion.
> Now, the output reads.
>
> ==============================================================
> ================================================
> _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
>
> ./twm: unable to open display ":0"
>
> ./xterm Xt error: Can't open display: :0
>
> pwin->width = 00000400
>
> pwin->height = 00000300
>
> pwin->paddedWidth = 00000800
>
> pwin->bitsPerPixel = 00000010
>
> calling winAllocateFramebufferMemory
>
> calling cfb16ScreenInit( 0a016cd8, 220d0000, 00000400,
> 00000300, 00000064,
> 00000064, 00001000 )
>
> Successful addition of Screen 0xa016ed0 0xa016cd8
>
> error opening security policy file
> /usr/X11R6/lib/X11/xserver/SecurityPolicy
>
> Switch: 0xa016cd8, 0xa01eec8
>
> Switch: 0xa016cd8, 0xa01eec8
>
> ==============================================================
> ================================================
>
>
> -giri
>
>