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命令

RHEL配置gdm使用XDMCP远程登录图形化界面_图形化界面

选择启用XDMCP

4、重启服务并查看端口是否开启

gdm-restart

netstat -lnp |grep 177
udp        0      0 0.0.0.0:177                 0.0.0.0:*                               5917/gdm-binary