Version: (using KDE KDE 3.3.0) Installed from: Gentoo Packages Compiler: gcc-3.3.4 OS: Linux Hi I'm running several boxes on Gentoo. I just didn't get xdmcp working, thou I proceeded all the steps I can think of. I am trying to get kdm's remote login to work using xdmcp. I have set [Xdmcp] enable=true on /usr/kde/3.3/share/config/kdm/kdmrc. In /usr/kde/3.3/share/config/kdm/Xaccess, I have * #any host can get a login window * CHOOSER BROADCAST #any indirect host can get a chooser I've tried to connect 3 ways using xdmcp. (1) Using kdm remote login: When I ask for a remote login in kdm, I get a nice chooser window with a list of computers. But when I try to select one, X restarts TWICE and brings me back to my local kdm login. I also get this error in /var/log/kdm.log Fatal server error: XDMCP fatal error: Session declined No valid address Why doesn't it work the ordinary way??? (2) direct query from command line: If I run X -query foo I get a remote kdm login windows on another computer (foo). I can login and everything works perfectly. (3) indirect query from command line -> remote computer If I run X -indirect foo I get a chooser which I think is being provided by computer foo. When I select a computer from the list, X restarts ONCE, and then I get a nice login window on whichever computer I want. I can login and everything works perfectly. (4) indirect query from command line -> local computer If I run X -indirect localhost I also get a chooser. Selecting foo although simply gets me no connection neither errors. Just starring at the awful grey background from the X server that dosn't do even less than nothing. So it seems that there is something wrong with the way that kdm is envoked, and that whatever is causing the problem is local. I don't know where to start looking for the error.
hmm, somehow my comment to the gentoo bug report seems to have got lost ... (1) is prolly caused by -nolisten tcp in Xservers, as the command is reused for remote login Xservers as well. dunno how to fix it best. no idea about (4), though. try the usual things, like running kdm (both the chooser and the target machine) with -debug 1 and examine the syslogs, tcpdump on udp port 177 and tcp port 6000, etc. to see how far it gets.
Sorry that I didn't have the time to debug so far. Maybe later on I'll go on with this, but I have no experience so far, I'm quite a newbie. Anyway there are some iteresting news. Another box running FreeBSD has no problem accessing the my Gentoo box to get a graphical login. Vice versa there occour the problems described above. So I'll have to look for the error on the client side.
I've solved using this configuration in kdm Xservers file (both on the client and on the server): :0 local@tty1 /usr/X11R6/bin/X :1 local@tty2 reserve /usr/X11R6/bin/X :1 vt8 :2 local@tty3 reserve /usr/X11R6/bin/X :2 vt9 :3 local@tty4 reserve /usr/X11R6/bin/X :3 vt10 :4 local@tty5 reserve /usr/X11R6/bin/X :4 vt11 :5 local@tty6 reserve /usr/X11R6/bin/X :5 vt12 I'm now able to run multiple sessions on the server, and remote login both from command line and from kdm
I was unable to post the same reply on http://bugs.gentoo.org/show_bug.cgi?id=62013 , could someone else try? Thank you
fixed for kde 3.4 by getting rid of the Xservers file. use "ServerCmd=/usr/X11R6/bin/X" and "ServerArgsLocal=-nolisten tcp".