centos 6.8 Xorg无法远程连接的问题
正常情况,客户机上执行:
export DISPLAY=server_ip:0.0
再运行 X程序,可将界面投射至 server_ip 上的 Xorg 显示。 (服务端可能需要执行 “xhost +” )
centOS 6.8 默认不接受 外部 tcp连接,需要进行如下2项设置:
1. 修改 /etc/gdm/custom.conf
[daemon] AutomaticLoginEnable=True AutomaticLogin=atc [security] DisallowTCP=false AllowRemoteRoot=true [xdmcp] Enable=true [greeter] IncludeAll=true [chooser] [debug]
如图:

2. 更新安装 xorg-x11-server-common-1.17.4-16.el6.centos.x86_64.rpm 和 xorg-x11-server-Xorg-1.17.4-16.el6.centos.x86_64.rpm
(来自 CentOS 6.9 的 官方iso)
(centOS 6.8上Xorg的bug)

重起主机后生效。
浙公网安备 33010602011771号