首先编辑GDM配置文件
vi /etc/gdm/custom.conf
在相关属性里面添加相应的值
1)root 用户访问设置
[security]
AllowRemoteRoot=true
[xdmcp]
Enable=true
2)除root外用户设置
[security]
DisallowTCP=false
AllowRemoteRoot=true
[xdmcp]
Enable=1
Post=177
重启GDM
/usr/sbin/gdm-restart
Xmanager连接gdm用的是UDP的177端口,所以防火墙上一定要打开这个端口:
a.查看防火墙信息:
#/etc/init.d/iptables status
b.关闭防火墙服务:
#/etc/init.d/iptables stop
c.加端口:
#/sbin/iptables -I INPUT -p tcp --dport 177 -j ACCEPT
转载于:https://blog.51cto.com/3apple/625182