1. 修改/etc/inittab,改变runlevel为5,例如
[root@QRedHat etc]# cat /etc/inittab
......
id:5:initdefault:
......
改为5级别方式运行linux
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/Xaclearcase/" target="_blank" >ccess文件,例如,
[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