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: cygwin-xfree at cygwin dot com
- Subject: Re:Unable to connect to X Server -- Updated
- From: "Giridharan Iyengar" <giyengar at us dot ibm dot com>
- Date: Wed, 7 Mar 2001 17:25:04 -0500
Copy of my startxwin.bat
======================================================================================================
@echo off
SET DISPLAY=127.0.0.1:0.0
SET PATH=.;%PATH%;\cygwin\bin;\cygwin\usr\X11R6\bin;\cygwin\usr\bin;
\cygwin\usr\local\bin;\cygwin\sbin;\cygwin\usr\sbin
SET XFCE_DATA=\cygwin\usr\X11R6\var; xfce
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' &""&" &
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