xterm fails even when DISPLAY is set

2006-09-01 Thread Jeffrey Stephen
Hi,
 
I have just installed cygwin-1.5.19, and cannot open an xterm.
 
I start the XWin server and the task manager shows that XWin.exe is
running. When I type "xterm" on the command line nothing happens - no
window appears and no error message is reported. The return status from
the xterm command in 53.
 
XWin is started as follows:
 
$ export DISPLAY=127.0.0.1:0.0
$ /usr/X11R6/bin/startxwin.sh 
 
The output is shown below, and also the log file /tmp/XWin.log
 
When I run xterm, nothing happens:
 
$ xterm
$ echo $?
53
 
When cygwin was installed I simply installed everything - I didn't
attempt to do a customised install ie. omitting certain packages etc.
However I have found that some utilities like "/usr/bin/less" and
"/usr/bin/tbl" were missing, so I installed the "less" and "groff"
packages. Maybe that indicates my install is not complete?
 
I have tried the "twm" window manager and it too fails:
$ twm
twm:  unable to open display "127.0.0.1:0.0"

$ echo $DISPLAY
127.0.0.1:0.0

$ xhost +
xhost:  unable to open display "127.0.0.1:0.0"
 
If I start XWin directly:
$  /usr/X11R6/bin/XWin.exe 
I get a "Cygwin/X" window covering the entire screen, but I can't open
any windows within it. It appears to be useless. Output from running
this command is shown below.
 
Running "startx" on the command line is also unsuccessful - when xterm
is run nothing appears:
$ export DISPLAY=127.0.0.1:0.0
$ startx
Output from startx is shown below
 
The installation added Cygwin entries to the Windows main menu. Under
Cygwin there is a launcher for bash shell (which works) and under
Cygwin-X there are sub-menus Editors, Information, Tools and Toys. These
are all empty. I thought there should have been an "xterm" launcher
somewhere in the Cywin menus.
 
Does anyone have any suggestions as to what the problem could be?
 
Regards
steve
 
 
 
= Output from startxwin.sh
==
 
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.99.901-4
 
Contact: cygwin-xfree@cygwin.com
 
XWin was started with the following command line:
 
XWin -multiwindow -clipboard -silent-dup-error
 
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be
created.
/home/jeffreys> winValidateArgs - g_iNumScreens: 1
iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See h ttp://x.cygwin.com/docs/faq/cygwin-x-faq.html for more
information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Multi Window or Rootless => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1024
depth: 32
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24
bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack
of shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "0409" (0409)
(--) Using preset keyboard for "English (USA)" (409), type "4"
Rules = "xorg" Model = "pc105" Layout = "us" Variant = "(null)" Options
= "(null)"
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
from list!
winPointerWarpCursor - Discarding first warp: 640 512
winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully
opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened
the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the
display.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
 
= /tmp/XWin.log file ==
 
$ cat /tmp/XWin.log
_XSERVTransmkdir: ERROR: euid != 0,directory 

Re: xterm fails even when DISPLAY is set

2006-09-01 Thread Justin Patrin

On 9/1/06, Jeffrey Stephen <[EMAIL PROTECTED]> wrote:

Hi,

I have just installed cygwin-1.5.19, and cannot open an xterm.

I start the XWin server and the task manager shows that XWin.exe is
running. When I type "xterm" on the command line nothing happens - no
window appears and no error message is reported. The return status from
the xterm command in 53.

XWin is started as follows:

$ export DISPLAY=127.0.0.1:0.0
$ /usr/X11R6/bin/startxwin.sh

The output is shown below, and also the log file /tmp/XWin.log

When I run xterm, nothing happens:

$ xterm
$ echo $?
53



DISPLAY needs to be set for the client programs, not for the X server. Try:
$ export DISPLAY=:0
$ xterm

--
Justin Patrin

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



Re: xterm fails even when DISPLAY is set

2006-09-01 Thread Charli Li


binpCB2ECNsOg.bin
Description: PGP/MIME version identification


encrypted.asc
Description: OpenPGP encrypted message