执行export DISPLAY=192.168.1.10:0.0 (在实际使用中将192.168.1.10替换为当前客户端的IP)
如果想永久生效,则将此行添加到/home/username/.bash_profile或/etc/profile
添加完之后记得执行source
#source /home/username/.bash_profile或
#source /etc/profile
测试是否生效
#xclock
如果提示没有xclock,则可能是xorg-x11-apps这个包没有安装,用yum安装下即可