How do I fix XDMCP fatal error: Manager unwilling Host unwilling?

2005-07-07 Thread Angus Veitch
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) 

Re: How do I fix XDMCP fatal error: Manager unwilling Host unwilling?

2005-07-07 Thread Alexander Gottwald
On Fri, 8 Jul 2005, Angus Veitch wrote:

 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:
 
 Fatal server error:
 XDMCP fatal error: Manager unwilling Host unwilling

 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.

http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-xdmcp-query

XDMCP and firewalls

XDMCP will not work correctly if you have a personal firewall installed or the 
built-in firewall of Windows is activated.

The XDMCP protocol will send and receive data on port 177/UDP. But the actual 
connections will be made to the local port 6000/TCP. It is safe to allow 
connections since the xserver has an own security layer. An overview of used 
ports is given in Table 2.

Table 2. Ports used with XDMCP connections
PortProtocolDirection   Comment
177 UDP Incoming/Outgoing   Actual XDMCP connection
6000+displayTCP IncomingConnection for X11 clients. display is 
usally 0 except you specify it on the commandline.

Special Note: XDMCP does not work with any kind of network address translation

There are configuration files for xdm which control which host can connect 
to the xdmcp server. They are usally located in /etc/X11/xdm/Xaccess. KDM
may use different locations. The default will allow any host access. But I 
don't know how the installed files differ from the defaults.

You might want to ask the distributor of MEPIS how to get XDMCP access to 
the system. 

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723