1。安装X11
yum -y install xorg-x11-xauth
yum install xorg-x11-server-utils
yum install xorg-x11-server-Xnest
yum install libXtst
2。windows安装xming
http://xming-x-server.cn.uptodown.com/download
3。vi /etc/ssh/sshd_config
取消这一行的注释——如果没有这一行则手动添加之:
X11Forwrding yes
4。配置xming
Xming > XLaunch
putty配置
[root@BJL18 ~]$ #yum -y install xclock
错误解决:
1。Can't open display: localhost:10.0
在/etc/hosts 中加入
127.0.0.1 localhost
ipaddress
2。PuTTY X11 proxy: wrong authentication protocol attemptedError: Can't open display: localhost:11.0
[root@BJL18 ~]# echo $DISPLAY
localhost:11.0
[root@BJL18 ~]# export DISPLAY=windows_ip:0
[root@BJL18 ~]# echo $DISPLAY