引用:[root@QRedHat etc]# cat /etc/inittab
......
id:5:initdefault:
......
改为5级别方式运行linux(很多系统已经是5了就不用改)
2. 修改GDM的配置文件,/etc/X11/gdm/gdm.conf,将[xdmcp]中的enable选项设置为1,例如
引用:[root@QRedHat etc]# cat /etc/X11/gdm/gdm.conf
......
[xdmcp]
Enable=1
false改为true
3. 修改/etc/X11/xdm/xdm-config文件,将DisplayManager.requestPort: 0注释掉,例如
引用:[root@QRedHat etc]# cat /etc/X11/xdm/xdm-config
......
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
! DisplayManager.requestPort: 0
不屏蔽改为屏蔽
4. 修改/etc/X11/xdm/Xaccess文件,例如,
引用:[root@QRedHat etc]# cat /etc/X11/xdm/Xaccess
......
* #any host can get a login window
......
* CHOOSER BROADCAST #any indirect host can get a chooser
5. 修改防火墙配置文件/etc/sysconfig/iptables(有记录为ipchains的),防止防火墙将通过177端口(即xdmcp服务)的数据过滤,在文件头部加入如下内容,
引用:# If you want to use GNOME/KDE, add the following line.
-A input -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
6. 重新启动RedHat Linux
在Xmanager 2.0中启动Xmanager就可以发现X Server了,点击进去看看吧,是不是很帅?(Linux下的远程桌面,呵呵)注意server的默认端口177哦。

