一、修改文件 /etc/inittab默认级别为5
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
二、配置/etc/gdm/custom.conf
# GDM configuration storage
[daemon]
#RemoteGreeter=/usr/libexec/gdm-simple-greeter
[security]
#AllowRoot=true
AllowRemoteRoot=true
[xdmcp]
Enable=true
Port=177
#DisplaysPerHost=5
[greeter]
[chooser]
[debug]
三、添加防火墙规则/etc/sysconfig/iptables
-A INPUT -m state --state NEW -m udp -p udp --dport 177 -j ACCEPT
四、重启linux系统
reboot
五、xmanager链接
新建XDMCP会话,输入主机和端口177即可