在kde3/share/config/kdm/kdmrc或gdm/gdm.conf文件中有关于XDMCP的配置
kde:
ServerArgsLocal=
ServerCmd=/usr/X11R6/bin/X
把ServerArgsLocal参数修改为
ServerArgsLocal=-nolisten tcp
ServerCmd=/usr/X11R6/bin/X
gdm:
command=/usr/X11R6/bin/X
把它修改为
command=/usr/X11R6/bin/X -nolisten tcp
现在重启kdm或gdm。用netstat或nmap看看:
root@jun# netstat -tlunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:33732 0.0.0.0:* 9507/eva
udp 0 0 0.0.0.0:33733 0.0.0.0:* 9507/eva
或
root@jun# nmap -sT 127.0.0.1
Starting nmap 3.93 ( http://www.insecure.org/nmap/ ) at 2006-05-15 22:24 CST
All 1480 scanned ports on localhostcat (127.0.0.1) are: closed
Nmap finished: 1 IP address (1 host up) scanned in 0.193 seconds
是不是没有了 6000 啊。
阅读(2889) | 评论(0) | 转发(0) |