PDA

View Full Version : cygwin/x with XDMCP not starting



mshanmuga
11-26-2004, 12:27 AM
Hi,
I have knoppix installed on harddrive of a desk top system and connecting
via WindowsXP notebook.

With PuTTY on Windows XP, I have successfully login with ssh. Also with Cygwin/X running,
I can start X-applications from within PuTTY w/ X11Forwarding enabled. But I want
to use a WindowManager on the Linux machine.

I have tried to setup Cygwin/X to use XDMCP. All I got was a local Xwindow with
nothing in it. I assume I didn't get a XDMCP respond back. I also am thinking, if
I start the XDMCP from Cygwin/X, I am not going thru PuTTY, that means it will
not be over ssh.

I have edited /etc/kde3/kdm/Xaccess and uncommented before * as follows
....
#

* #any host can get a login window
...
I have edited /etc/kde3/kdm/kdmrc as follows.
[Xdmcp]
# Whether KDM should listen to XDMCP requests. Default is true.
Enable=true
# The UDP port KDM should listen on for XDMCP requests. Don't change the 177.
Port=177

I have restarted kdm after this editing.


I gave the following command from the Cygwin terminal window
$ run XWin -query 192.168.0.2(knoppix ip addess) :1 -nodecoration -lesspointer.
After aborting the empty window I looked at /tmp/XWin.log

....
...
...
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.1.0-5

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

/usr/x11r6/bin/XWin -query 192.168.0.2 :1 -nodecoration
-lesspointer

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
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/TT
F/,/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 shar
ed memory support in the kernel
(--) Setting autorepeat to delay=250, rate=6
(--) winConfigKeyboard - Layout: "00000409" (00000409)
(--) 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 li
st!

Fatal server error:
XDMCP fatal error: Session failed Session 44928006 failed for display AC93C3D2.i
pt.aol.com:1: cannot open display

winDeinitMultiWindowWM - Noting shutdown in progress
... /usr/x11r6/bin
$
...
...

Can somebody tell me how to troubleshoot this problem? Thanks

mshanmuga
11-28-2004, 08:41 PM
ok I got some clue from this nicely written article http://www.linuxjournal.com/article/6713.

I gave up XDMCP
What I really wanted is KDE desktop of my linux PC on my Windows XP notebook.
From cygwin terminal of my Windows XP notebook,
I just ran the xserver as
$/usr/X11R6/bin XWin
and then from my puTTY which is connected to my Linux PC,
I just ran startKDE.
Thats all! I got KDE desktop in a Cygwin/X window!
Great to see both Window XP and KDE on one screen!