We help IT Professionals succeed at work.

Cannot connect to Mandrake 8.1 from Windows X-Server

pure032398
pure032398 asked
on
Hello folks.

I just installed mandrake 8.1 at home.
Works fine.

It's running KDE.
Windows [W2K] software i'm using is X-Win32.
In X-Win32, i'm trying to do XDMCP Query.

When i was using and older version of Mandrake (7.0?), i used to connect properly.

I cannot remember what i did to get X-Win32 to connect.

I -DO- have xfs running though ... here's a list of my procs...

***
xfs       3225  0.0  1.0  4788 3464 ?        S    Oct30   0:00 xfs -port -1 -daemon -droppriv -user xfs
***

thanks for any help :)

-PK-

----
[pure@defiance pure]$ ps -aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  1424  528 ?        S    Oct30   0:04 init [5]
root         3  0.0  0.0     0    0 ?        SW   Oct30   0:00 [keventd]
root         4 17.7  0.0     0    0 ?        SW   Oct30 155:55 [kapm-idled]
root         5  0.0  0.0     0    0 ?        SWN  Oct30   0:00 [ksoftirqd_CPU0]
root         6  0.0  0.0     0    0 ?        SW   Oct30   0:00 [kswapd]
root         7  0.0  0.0     0    0 ?        SW   Oct30   0:00 [kreclaimd]
root         8  0.0  0.0     0    0 ?        SW   Oct30   0:00 [bdflush]
root         9  0.0  0.0     0    0 ?        SW   Oct30   0:00 [kupdated]
root        10  0.0  0.0     0    0 ?        SW<  Oct30   0:00 [mdrecoveryd]
root        93  0.0  0.2  1568  672 ?        S    Oct30   0:00 devfsd /dev
root       122  0.0  0.1  1384  384 ?        S    Oct30   0:00 open -w -s -c 11 /sbin/Monitor-NewStyle-Categorizing-WsLib
root       127  0.0  0.2  2812  920 tty11    S    Oct30   0:02 /sbin/Monitor-NewStyle-Categorizing-WsLib
root       832  0.0  0.0     0    0 ?        SW   Oct30   0:00 [khubd]
rpc       1236  0.0  0.1  1560  568 ?        S    Oct30   0:00 portmap
root      1258  0.0  0.1  1496  616 ?        S    Oct30   0:00 syslogd -m 0
root      1266  0.0  0.3  2000 1120 ?        S    Oct30   0:00 klogd -2
rpcuser   1291  0.0  0.2  1744  864 ?        S    Oct30   0:00 rpc.statd
root      1386  0.0  0.1  1408  536 ?        S    Oct30   0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmd_proxy
daemon    1411  0.0  0.1  1452  556 ?        S    Oct30   0:00 /usr/sbin/atd
root      1436  0.0  0.5  1900 1892 ?        SL   Oct30   0:00 ntpd -A
root      1469  0.0  0.4  2692 1304 ?        S    Oct30   0:01 /usr/sbin/sshd
root      1802  0.0  0.1  1464  552 ?        S    Oct30   0:00 gpm -t imps2 -m /dev/psaux
root      1896  0.0  0.2  1640  700 ?        S    Oct30   0:00 crond
root      1917  0.0  0.3  2448 1244 ?        S    Oct30   0:00 /bin/sh /usr/bin/safe_mysqld --datadir=/var/lib/mysql --pid-file=/var
mysql     1954  0.0  1.3 26952 4452 ?        S    Oct30   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --
mysql     1956  0.0  1.3 26952 4452 ?        S    Oct30   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --
mysql     1957  0.0  1.3 26952 4452 ?        S    Oct30   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --
mysql     1958  0.0  1.3 26952 4452 ?        S    Oct30   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --
root      2094  0.0  0.1  1392  444 tty1     S    Oct30   0:00 /sbin/mingetty tty1
root      2095  0.0  0.1  1392  444 tty2     S    Oct30   0:00 /sbin/mingetty tty2
root      2096  0.0  0.1  1392  444 tty3     S    Oct30   0:00 /sbin/mingetty tty3
root      2097  0.0  0.1  1392  444 tty4     S    Oct30   0:00 /sbin/mingetty tty4
root      2098  0.0  0.1  1392  444 tty5     S    Oct30   0:00 /sbin/mingetty tty5
root      2099  0.0  0.1  1392  444 tty6     S    Oct30   0:00 /sbin/mingetty tty6
root      2100  0.0  0.2  2560  724 ?        S    Oct30   0:00 /usr/bin/kdm -nodaemon
root      2111 78.8  1.6 76072 5212 ?        R    Oct30 692:59 /etc/X11/X -deferglyphs 16 -auth /var/lib/kdm/authfiles/A:0-c72jPe
root      2112  0.0  0.2  2564  844 ?        S    Oct30   0:00 -:0                  
root      2118  0.0  2.1 14644 6900 ?        S    Oct30   0:00 /usr/bin/kdm_greet
root      2547  0.0  1.4  6376 4760 ?        S    Oct30   0:00 /usr/bin/perl /usr/share/webmin-0.89/miniserv.pl /etc/webmin/miniserv
xfs       3225  0.0  1.0  4788 3464 ?        S    Oct30   0:00 xfs -port -1 -daemon -droppriv -user xfs
root      3398  0.1  0.6  3408 1996 ?        S    11:20   0:00 /usr/sbin/sshd
pure      3399  0.6  0.4  2740 1560 pts/0    S    11:20   0:00 -bash
pure      3424  0.0  0.2  2820  868 pts/0    R    11:20   0:00 ps -aux
[pure@defiance pure]$
Comment
Watch Question

Commented:
Hi.
What level of security did you choose on your server? If you're running ipchains (ipfilter?) then this might be what's blocking your access. I mean the firewall, I just don't remember what it's called right now.
Also check your files /etc/hosts.allow and /etc/hosts.deny they might restrict access for you.

I believe that the command 'ipchains -L' will show you your firewalling rules.

Best regards

//Haeger
Commented:
Hi pure,

xfs is just the X11 Font Server, it doesn't respond to XDMCP requests.

XDMCP requests are handled by xdm or kdm, which is running on your machine. Good.

I don't know Mandrake very well, but with SuSE, for security reasons, xdm/kdm is initially not bound to any TCP Port, instead X uses UNIX sockets allowing local access only. You can check that with `netstat -an|grep LISTEN|grep 6000`. If you get nothing, you have to do some changes to enable XDMCP over TCP/IP.

First look in "/usr/X11R6/lib/X11/xdm/xdm-config" for the line
"DisplayManager.requestPort:    0"
NOT being enabled (comment out using "!")
Further look in "/usr/X11R6/lib/X11/xdm/Xaccess", for the line
"* CHOOSER BROADCAST"
to be there uncommented.
Now restart kdm and it should work.

-- asem

Author

Commented:
hmm.. interesting ...

i'm getting there now ...

i UNCOMMENTED out that line in /etc/X11/xdm/xdm-config

I also found this [http://www.linuxdoc.org/HOWTO/XDMCP-HOWTO/procedure.html#PREP]

"3.I use the gdm as default and use gdm login window to switch between KDE and GNOME. Edit /etc/X11/gdm/gdm.conf. This activates XDMCP, causing it to listen to the request. Change this:

         [xdmcp]
         Enable=0
 to:

    Enable=1"

So i tried ..
[root@echobase X11]# find / -name kdm -print
/var/lib/kdm
/usr/share/doc/HTML/en/kdm
/usr/share/apps/kdm
/usr/share/config/kdm
/usr/bin/kdm
[root@echobase X11]# cd /usr/share/config/kdm
[root@echobase kdm]# ls
kdmrc  README

and edited the kdmrc file (with the above info)....

so it seems to work fine now .. but i'm not sure if the KDM is a DAEMON .. considering the ps info says ..

root      3040  0.4  0.3  2828 1088 ?        S    08:15   0:00 /usr/bin/kdm -nodaemon

so ... i'm nearly there ...

anyone now know how to make this a daemon?
And why wasn't there any documentation saying to ENABLE this feature?

:(

-PK-
 

Commented:
hmm... this "-nodaemon" option confuses me too. It ain't there on the systems I know (mostly SuSE).

What about killing that process and start it new without this option?

It must be set in an run control script, so have a look into /etc/init.d/kdm or maybe /sbin/init.d/kdm or the like.

What does 'netstat -an' say? Do you now have a TCP listenener on Port 6000 or just unix socket listener like '/tmp/.X11-unix/X0'?

-- asem

Commented:
Hi Pure,

did you have any success or other news in the meantime?

-- asem
pure:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Author

Commented:
i cannot remember what i did to fix this problem, so i've split the points for trying.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.