Cygwin XDMCP suddenly stopped working
For some months now I've been using Cygwin/X on two different Windows XP computers to connect to an Ubuntu machine via XDMCP, and have had no problems. Now, seemingly out of the blue, the connection procedure has suddenly stopped working on one of the Windows computers. I say 'out of the blue' because I have not touched any cygwin files for months. The only things that I have done on the 'unsuccessful' computer between the time when it was working and not working is: a) Installed and promptly uninstalled JabberD 1.4.2. b) Installed ejabberd 0.7.5. (Disabling or uninstalling ejabberd had no effect.) c) Installed Gaim 2.0.0 beta 3 (no gtk). (Gaim 2.0 beta 2 was previously installed.) I have no idea how any of these actions would affect Cygwin, but then again I don't really know much, period, so I thought I'd mention them. Following is the Cygwin/X log file from the unsuccessful WinXP computer, split into two parts. The first appears in the log files of both the successful and unsuccessful WinXP computers -- in fact, it constitutes the entirety of the successful log file. The second part is the remainder of the unsuccessful log file, and appears only in that log. Does anyone have any clues about what might have gone wrong??? Thanks. --FIRST PART (common to both successful and unsuccessful log files)-- Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-4 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: /usr/X11R6/bin/XWin :0 -query 192.168.0.111 -nodecoration -lesspointer -clipboard ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1280 h 1024 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information (==) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/ 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 (--) 7 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, 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/100dpi/, removing from list! winProcEstablishConnection - Hello winProcEstablishConnection - Xdmcp enabled, waiting to start clipboard client until fourth call. winProcEstablishConnection - Hello winProcEstablishConnection - Xdmcp enabled, waiting to start clipboard client until fourth call. winProcEstablishConnection - Hello winProcEstablishConnection - Xdmcp enabled, waiting to start clipboard client until fourth call. winInitClipboard () winClipboardProc - Hello DetectUnicodeSupport - Windows NT/2000/XP winProcQueryTree - winInitClipboard returned. winClipboardProc - DISPLAY=127.0.0.1:0.0 winProcEstablishConnection - Hello winProcEstablishConnection - Clipboard client already launched, returning. winClipboardProc - XOpenDisplay () returned and successfully opened the display. --SECOND PART (remainder of unsuccessful log file)-- winProcSetSelectionOwner - Clipboard not yet started, aborting. winProcSetSelectionOwner - Clipboard not yet started, aborting. winClipboardIOErrorHandler! winClipboardProc - setjmp returned for IO Error Handler. winProcSetSelectionOwner - OpenClipboard () failed: 0578 winProcSetSelectionOwner - OpenClipboard () failed: 0578 winProcSetSelectionOwner - OpenClipboard () failed: 0578 winProcSetSelectionOwner - OpenClipboard () failed: 0578 winProcSetSelectionOwner - OpenClipboard () failed: 0578 (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information (==) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/ 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 (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap (--) 7 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing
XDMCP and Kerio Personal Firewall
Hello All, A while back I had some problems getting XDMCP working between Win XP and Ubuntu. The Ubuntu login screen loaded successfully, but upon logging in all I got was a blank brown screen. I've recently figured out that the problem all along was Kerio Personal Firewall, which was running at the Windows end. Apparently other users also have found that Kerio is somehow incompatible with XDMCP, even when an appropriate filter rule has been defined. I switched to another firewall (Jepico) and XDMCP now works beautifully with Cygwin/X. I just thought I'd report this in case other Kerio users have experienced the same problem and haven't suspected the firewall as the cause. Cheers. -- 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/
Duplication error upon startx with XWin :0; No terminal with XWin :1
First of all, thanks to Alexander and Igor for responding to my last message. I'm edging my way forward, but haven't seen the light just yet. I'm still not having much success running startx or xdmcp. It's even possible that some of what I am observing is perfectly healthy, and it is my expectations or understanding of the program that are wrong. Since I don't know whether all my problems are related, I'll deal with startxwin.bat in this email and with startxdmcp.bat in the next one. Sorry for all the logs! I'm running a freshly downloaded cygwin/x, and am trying to connect WinXP to a (nearly) freshly installed Linux box running MEPIS. If I run startxwin.bat with the line XWin :0 -multiwindow -clipboard -silent-dup-error, I successfully load a terminal, but attempting to run startx invokes: Fatal server error: InitOutput - Duplicate invocation on display number: 0. The full XWin.log follows: - Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-3 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: /usr/X11R6/bin/XWin :0 -multiwindow -clipboard -silent-dup-error ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1600 h 1200 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information (==) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/ winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1600 height: 1200 depth: 32 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 (--) 5 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! winInitMultiWindowWM - pthread_mutex_lock () returned. winProcEstablishConnection - Hello winInitClipboard () winClipboardProc - Hello DetectUnicodeSupport - Windows NT/2000/XP winProcEstablishConnection - winInitClipboard returned. winClipboardProc - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - pthread_mutex_lock () returned. winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 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. winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. - . . . and when I execute startx from the terminal . . . - Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-3 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: X :0 -multiwindow -clipboard ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1600 h 1200 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root winCheckDisplayNumber - Cygwin/X is already running on display 0 Fatal server error: InitOutput - Duplicate invocation on display number: 0. Exiting. winDeinitMultiWindowWM - Noting shutdown in progress - I can't find any other xwin processes running (perhaps I don't know what to look for), but to keep xwin happy, I instead run startxwin.bat with XWin :1 (...etc). The result is that I get no terminal at all -- the cygwin/x window is just a blank grey screen. The XWin.log follows: - Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-3 Contact:
How do I fix XDMCP fatal error: Manager unwilling Host unwilling?
This is essentially Part 2 of my other email (Duplication error upon startx with XWin :0; No terminal with XWin :1). I'm running a freshly downloaded cygwin/x, and am trying to connect WinXP to a (nearly) freshly installed Linux box running MEPIS. Running the default startxdmcp.bat with XWin :0 -query %REMOTE_HOST% -nodecoration -lesspointer fails at: Fatal server error: XDMCP fatal error: Manager unwilling Host unwilling. The full XWin.log follows: - Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-3 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: /usr/X11R6/bin/XWin :0 -query 192.168.0.111 -nodecoration -lesspointer ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1600 h 1200 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information (==) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/ 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 (--) 5 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Fatal server error: XDMCP fatal error: Manager unwilling Host unwilling winDeinitMultiWindowWM - Noting shutdown in progress - Now, I'm new to both Linux and XDMCP, so I'm still feeling my way in this area. But I have managed to track down /etc/kde3/kdm/kdmrc and modify the approriate line to: [Xdmcp] Enable=true I have also done a few other things specified in the XDMCP HowTo available at http://en.tldp.org/HOWTO/XDMCP-HOWTO/. But due to the specifics of MEPIS combined with my inexperience with Linux, there is still a reasonable chance that I have missed something. Also, I think (but am not sure) that I have set up GuardDog (firewall) on MEPIS to allow the XDMCP requests. At least I am now getting the same results with the firewall turned off as when it is turned on. What is the likely cause of the fatal error in this case? What steps should I take to overcome it? Thanks, Angus. Cygwin Configuration Diagnostics Current System Time: Fri Jul 08 01:25:11 2005 Windows XP Professional Ver 5.1 Build 2600 Path: C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\Common Files\GTK\2.0\bin Output from C:\cygwin\bin\id.exe (nontsec) UID: 1004(angus) GID: 513(None) 0(root) 513(None)544(Administrators) 545(Users) 1003(Debugger Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1004(angus) GID: 513(None) 0(root) 513(None)544(Administrators) 545(Users) 1003(Debugger Users) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS Path = `C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\angus\Application Data' CLASSPATH = `C:\WINDOWS\System32\QTJava.zip' CommonProgramFiles = `C:\Program Files\Common Files' COMPUTERNAME = `DURON1K' ComSpec = `C:\WINDOWS\system32\cmd.exe' GAIMHOME = `D:\Gaim\Data Settings' HOMEDRIVE = `C:' HOMEPATH = `\' LOGONSERVER = `\\DURON1K' NUMBER_OF_PROCESSORS = `1' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping 0, AuthenticAMD' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0700' ProgramFiles = `C:\Program Files' PROMPT = `$P$G' QTJAVA = `C:\WINDOWS\System32\QTJava.zip' SESSIONNAME = `Console' SystemDrive = `C:' SystemRoot = `C:\WINDOWS' TEMP = `C:\DOCUME~1\angus\LOCALS~1\Temp' TMP = `C:\DOCUME~1\angus\LOCALS~1\Temp' USERDOMAIN = `DURON1K' USERNAME = `angus' USERPROFILE = `C:\Documents and Settings\angus' windir = `C:\WINDOWS' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default)
Errors: Duplicate invocation and can't find dll's
I have just installed the X components of Cygwin and am hoping to eventually connect with XDMCP to my Linux machine. But I'm having some serious teething problems. First, XWin seems to be having difficulty finding the dlls. If I run XWin -query [computer name] I First I get an error message saying that it can't find cygwin1.dll. If I copy that dll file from the cygwin\bin\ directory into C:\cygwin\usr\X11R6\bin, the error message changes to another dll. If I copy that dll to the X11R6\bin directory, it moves onto yet another one that it can't find. If I run startxwin.bat instead, I don't get the dll error. But when I try to run startx, I get: winCheckDisplayNumber - Cygwin/X is already running on display 0 Fatal server error: InitOutput - Duplicate invocation on display number: 0. Exiting. If I try startxdmcp.bat, I get a similar result: mkdir: Cannot create /tmp/.X11-unix with root ownership winCheckDisplayNumber - Cygwin/X is already running on display 0 Fatal server error: InitOutput - Duplicate invocation on display number: 0. Exiting. The supposed cause of this error is that I am running two sessions of XWin, but that is simply not the case. I get the same results if I add :1 to the batch files. Any suggestions? PS. This may be relevant: When I installed Cygwin/X, selected all of the X components, rather than just the ones that are automatically selected by the x-org base package or whatever it was called. Is this bad?