开启ssh的x11forwarding转发
[root@www ~]#grep ^X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes
重启sshd服务
[root@www ~]#systemctl restart sshd
xshell转发开启
安装火狐浏览器
[root@www conf.d]#yum install firefox libglvnd-glx -y
设置变量
10.0.0.1为宿主机IP地址
[root@www ~]#export DISPLAY=10.0.0.1:0.0
开启xmanger-passive
状态栏会显示小图标
开启firefox
[root@www ~]#firefox
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libEGL initialize failed (t=0.836508) [GFX1-]: glxtest: libEGL initialize failed
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libEGL initialize failed (t=0.836508) |[1][GFX1-]: glxtest: X error, error_code=2, request_code=148, minor_code=3 (t=0.836534) [GFX1-]: glxtest: X error, error_code=2, request_code=148, minor_code=3
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libEGL initialize failed (t=0.836508) |[1][GFX1-]: glxtest: X error, error_code=2, request_code=148, minor_code=3 (t=0.836534) |[2][GFX1-]: glxtest: process failed (exited with status 1) (t=0.836547) [GFX1-]: glxtest: process failed (exited with status 1)
图示