Linux端配置(红色部分为添加或者修改的内容)
vim /etc/gdm/custom.conf
[security]
AllowRoot=true
AllowRemoteRoot=true
[xdmcp]
Port=177
Enable=ture
vim /etc/inittab
id:5:initdefault: //修改成从图形终端启动系统
vim /etc/X11/xdm/xdm-config
! DisplayManager.requestPort: 0 //最后一行打上注释,即!
xdmcp服务默认使用udp177端口,防火墙需要添加以下规则
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
或者直接关闭防火墙
/etc/init.d/iptables stop
/etc/init.d/iptables save
重启系统
使用netstat -antpu |grep 177命令查看xdmcp服务是否启动:
Xmanager端配置
Win7要关闭防火墙