Discussion:
xterm Xt error: Can't open display
Alex Vinokur
2002-10-03 16:55:54 UTC
Permalink
=====================
Windows 2000 Professional
CYGWIN_NT-5.0
Cygwin/XFree86 4.2.0
=====================


***@5AT8S8CQEEX4QHI /
$ which xterm
/usr/X11R6/bin/xterm


###### Attempt-1 ######

***@5AT8S8CQEEX4QHI ~
$ set | grep DISPLAY

***@5AT8S8CQEEX4QHI /
$ xterm
xterm Xt error: Can't open display:


###### Attempt-2 ######

***@5AT8S8CQEEX
$ set | grep DISPLAY
DISPLAY=127.0.0.1:0.0

***@5AT8S8CQEEX4QHI ~
$ xterm
xterm Xt error: Can't open display: 127.0.0.1:0.0


What is wrong ?

==================
Alex Vinokur
mailto:***@go.to
http://up.to/alexvn
==================
Sylvain Petreolle
2002-10-03 16:05:04 UTC
Permalink
Obvious question : did you launch XFree (e.g launch 'startx' in cygwin
or by startxwin.bat from windows)?
Post by Alex Vinokur
Windows 2000 Professional
CYGWIN_NT-5.0
Cygwin/XFree86 4.2.0
=====================
$ which xterm
/usr/X11R6/bin/xterm
###### Attempt-1 ######
$ set | grep DISPLAY
$ xterm
###### Attempt-2 ######
$ set | grep DISPLAY
DISPLAY=127.0.0.1:0.0
$ xterm
xterm Xt error: Can't open display: 127.0.0.1:0.0
What is wrong ?
==================
Alex Vinokur
http://up.to/alexvn
==================
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
Alex Vinokur
2002-10-03 17:12:49 UTC
Permalink
Post by Sylvain Petreolle
Obvious question : did you launch XFree (e.g launch 'startx' in cygwin
or by startxwin.bat from windows)?
------ launching 'startx' in cygwin ------
***@5AT8S8CQEEX4QHI ~
$ startx

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.

------ launching startxwin.bat from windows ------
C:\cyg_win\usr\X11R6\bin>startxwin.bat
startxwin.bat - Starting on Windows NT/2000
XIO: fatal IO error 104 (Connection reset by peer) on X server "127.0.0.1:0.0"
after 0 requests (0 known processed) with 0 events remaining.
XIO: fatal IO error 104 (Connection reset by peer) on X server "127.0.0.1:0.0"
after 0 requests (0 known processed) with 0 events remaining.
XIO: fatal IO error 104 (Connection reset by peer) on X server "127.0.0.1:0.0"
after 0 requests (0 known processed) with 0 events remaining.
Post by Sylvain Petreolle
Post by Alex Vinokur
Windows 2000 Professional
CYGWIN_NT-5.0
Cygwin/XFree86 4.2.0
=====================
$ which xterm
/usr/X11R6/bin/xterm
###### Attempt-1 ######
$ set | grep DISPLAY
$ xterm
###### Attempt-2 ######
$ set | grep DISPLAY
DISPLAY=127.0.0.1:0.0
$ xterm
xterm Xt error: Can't open display: 127.0.0.1:0.0
What is wrong ?
==================
Alex Vinokur
http://up.to/alexvn
==================
___________________________________________________________
Yahoo! Mail : http://fr.mail.yahoo.com
Sylvain Petreolle
2002-10-03 16:31:39 UTC
Permalink
you were launching an xterm not being under X.
Post your /tmp/Xwin.log on the list and read FAQ.
Post by Sylvain Petreolle
Post by Sylvain Petreolle
Obvious question : did you launch XFree (e.g launch 'startx' in
cygwin
Post by Sylvain Petreolle
or by startxwin.bat from windows)?
------ launching 'startx' in cygwin ------
$ startx
giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.
------ launching startxwin.bat from windows ------
C:\cyg_win\usr\X11R6\bin>startxwin.bat
startxwin.bat - Starting on Windows NT/2000
XIO: fatal IO error 104 (Connection reset by peer) on X server "127.0.0.1:0.0"
after 0 requests (0 known processed) with 0 events remaining.
XIO: fatal IO error 104 (Connection reset by peer) on X server "127.0.0.1:0.0"
after 0 requests (0 known processed) with 0 events remaining.
XIO: fatal IO error 104 (Connection reset by peer) on X server "127.0.0.1:0.0"
after 0 requests (0 known processed) with 0 events remaining.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
Alex Vinokur
2002-10-03 18:12:17 UTC
Permalink
Post by Sylvain Petreolle
you were launching an xterm not being under X.
Post your /tmp/Xwin.log on the list and read FAQ.
[snip]

------ Xwin.log : BEGIN ------
ddxProcessArgument () - Initializing default screens
winInitializeDefaultScreens () - w 1024 h 768
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[---omitted---]

------ Xwin.log : END --------


***@5AT8S8CQEEX4QHI /tmp
$ ls -ld .X11-unix
drwxr-xr-x 2 Administ None 0 Oct 3 19:07 .X11-unix

***@5AT8S8CQEEX4QHI /tmp
$ chown root .X11-unix
chown: `root': invalid user


------ /etc/passwd : BEGIN ------
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-5AT8S8CQEEX4QHI\Administrator,S-1-5-21-602162358-839522115-547660867-500:/home/Administ
rator:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-5AT8S8CQEEX4QHI\Guest,S-1-5-21-602162358-839522115-547660867-501:/home/Guest:/bin/bash
------ /etc/passwd : END --------

==================
Alex Vinokur
mailto:***@go.to
http://up.to/alexvn
==================
Alex Vinokur
2002-10-03 18:22:45 UTC
Permalink
----- Original Message -----
From: "Sylvain Petreolle" <***@yahoo.fr>
Sent: Thursday, October 03, 2002 6:31 PM
Subject: Re: xterm Xt error: Can't open display
Post by Sylvain Petreolle
you were launching an xterm not being under X.
Post your /tmp/Xwin.log on the list and read FAQ.
------ launching 'startx' in cygwin : BEGIN ------
***@5AT8S8CQEEX4QHI ~
$ startx

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.

------ launching 'startx' in cygwin : END --------



------ XWinn.log : BEGIN ------
ddxProcessArgument () - Initializing default screens
winInitializeDefaultScreens () - w 1024 h 768
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - DirectDraw4 installed
winDetectSupportedEngines () - Returning, supported engines 0000001f
winSetEngine () - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL () - Using Windows display depth of 16 bits per pixel
winAdjustForAutoHide - Original WorkArea: 0 0 739 1024
winAdjustForAutoHide - Adjusted WorkArea: 0 0 739 1024
winCreateBoundingWindowWindowed () - WindowClient w 1018 h 713 r 1018 l 0 b 713 t 0
winCreateBoundingWindowWindowed () - Returning
winAllocateFBShadowDDNL () - lPitch: 2036
winInitVisualsShadowDDNL () - Masks 0000f800 000007e0 0000001f BPRGB 6 d 16
winLayerCreate () - dwDepth 16
winRandRInit ()
winCreateDefColormap () - Deferring to fbCreateDefColormap ()
winScreenInit () - returning
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!

Fatal server error:
could not open default font 'fixed'

------ XWinn.log : END --------

[snip]

==================
Alex Vinokur
mailto:***@go.to
http://up.to/alexvn
==================
Sylvain Petreolle
2002-10-03 18:16:50 UTC
Permalink
read the FAQ :

http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-error-font-eof
Post by Alex Vinokur
could not open default font 'fixed'
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
Alex Vinokur
2002-10-03 22:39:51 UTC
Permalink
Post by Sylvain Petreolle
http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-error-font-eof
Post by Alex Vinokur
could not open default font 'fixed'
Thanks.

I reinstalled Cygwin and Cygwin/XFree86.
Now it works.

==================
Alex Vinokur
mailto:***@go.to
http://up.to/alexvn
==================

Ben Calvert
2002-10-03 16:08:59 UTC
Permalink
1. is X running?
2. which user is X running as?
3. what machine does it think it's running on? (ie, does it know that
127.0.0.1 is your machine? ) i've seen windows installs without 127.0.0.1
before.
4. if the above seem to be working, try "xhost + 5AT8S8CQEEX4QHI" which
will allow anyone on that machine to run programs. theoretically :)



"Alex Vinokur"
<***@come.to> To: cygwin-***@cygwin.com
Sent by: cc:
cygwin-xfree-owner@ Subject: xterm Xt error: Can't open display
cygwin.com


10/03/2002 09:55 AM
Please respond to
cygwin-xfree






=====================
Windows 2000 Professional
CYGWIN_NT-5.0
Cygwin/XFree86 4.2.0
=====================


***@5AT8S8CQEEX4QHI /
$ which xterm
/usr/X11R6/bin/xterm


###### Attempt-1 ######

***@5AT8S8CQEEX4QHI ~
$ set | grep DISPLAY

***@5AT8S8CQEEX4QHI /
$ xterm
xterm Xt error: Can't open display:


###### Attempt-2 ######

***@5AT8S8CQEEX
$ set | grep DISPLAY
DISPLAY=127.0.0.1:0.0

***@5AT8S8CQEEX4QHI ~
$ xterm
xterm Xt error: Can't open display: 127.0.0.1:0.0


What is wrong ?

==================
Alex Vinokur
mailto:***@go.to
http://up.to/alexvn
==================
Alex Vinokur
2002-10-03 17:20:05 UTC
Permalink
Post by Ben Calvert
1. is X running?
How can I know that ?
Post by Ben Calvert
2. which user is X running as?
The same question
Post by Ben Calvert
3. what machine does it think it's running on? (ie, does it know that
127.0.0.1 is your machine? ) i've seen windows installs without 127.0.0.1
before.
The same question
Post by Ben Calvert
4. if the above seem to be working, try "xhost + 5AT8S8CQEEX4QHI" which
will allow anyone on that machine to run programs. theoretically :)
***@5AT8S8CQEEX4QHI ~
$ xhost + 5AT8S8CQEEX4QHI
xhost: unable to open display "127.0.0.1:0.0"
Post by Ben Calvert
=====================
Windows 2000 Professional
CYGWIN_NT-5.0
Cygwin/XFree86 4.2.0
=====================
$ which xterm
/usr/X11R6/bin/xterm
###### Attempt-1 ######
$ set | grep DISPLAY
$ xterm
###### Attempt-2 ######
$ set | grep DISPLAY
DISPLAY=127.0.0.1:0.0
$ xterm
xterm Xt error: Can't open display: 127.0.0.1:0.0
What is wrong ?
--
==================
Alex Vinokur
mailto:***@go.to
http://up.to/alexvn
==================
Loading...