RHEL4
1、確保安裝操作系統時勾選“X Window System”及“GNOME Desktop Environment”桌面
2、確保系統默認啓動圖形化界面
id:5:initdefault:
3 、
vi /etc/X11/gdm/gdm.conf 將紅色部分false改爲true
[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
Enable=true
圖形畫界面運行gdmsetup命令
選擇啓用XDMCP
4、重啓服務並查看端口是否開啓
gdm-restart
netstat -lnp |grep 177
udp 0 0 0.0.0.0:177 0.0.0.0:* 5917/gdm-binary