1. 修改/etc/inittab,改变runlevel为5,例如
[root@QRedHat etc]# cat /etc/inittab
......
id:5:initdefault:
......
2. 修改GDM的配置文件,/etc/X11/gdm/gdm.conf,将[xdmcp]中的enable选项设置为1,例如
[root@QRedHat etc]# cat /etc/X11/gdm/gdm.conf
......
[xdmcp]
Enable=1
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/ipchains,在文件头部加入如下内容,
# If you want to use GNOME/KDE, add the following line.
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
6. 重新启动RedHat Linux
(陈绪先生注:此法也适用于Redhat 7.3,Advanced Server 2.1, Fedora core 1)