因此,经过多次尝试和错误,我设法得到了X11转发工作。我办公室的桌面是Ubuntu16.04LTS,我使用XQuartz从我的MacBook Pro中进行ssh。当我进入时,我在终端上得到以下信息:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-128-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage我知道X11转发是有效的,因为我可以让FireFox转发,但它非常慢和错误。

但我不能让谷歌Chrome转发。在运行命令google-chrome时,终端提供了以下内容:
ATTENTION: default value of option force_s3tc_enable overridden by environment.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[10497:10497:0702/053002.891053:ERROR:gl_context_glx.cc(227)] Couldn't make context current with X drawable.
[10497:10497:0702/053002.891090:ERROR:gpu_info_collector.cc(63)] gl::GLContext::MakeCurrent() failed
[10455:10549:0702/053003.740008:ERROR:bus.cc(394)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")XQuartz只显示一个空白窗口。在ctrl-c上,在进程和退出终端时,会产生更多的错误消息(如果需要的话,我可以发布)。但是谁能帮我,告诉我我做错了什么,或者如果我没有正确设置x11转发?我基本上遵循了过程这里 (也已经为我安装了xauth ),所以我只是编辑了配置文件。
发布于 2020-02-25 14:09:09
尝试使用其SwiftShader软件渲染器启动Chrome --这是2017年的集成到铬中:
chromium-browser --use-gl=swiftshader发布于 2018-07-24 14:32:00
默认情况下,Chrome启动了硬件加速,我认为这是导致问题的原因。试着从以下几个方面开始:
google-chrome --disable-gpu发布于 2022-11-10 14:38:45
你在Chrome上使用SNAP,而不使用Firefox吗?
如果xeyes/xlogo/xterm有效,但不使用chrome,请确保它是否来自snap。
如果是的话,它需要在.bashrc中使用这个:
export XAUTHORITY=$HOME/.Xauthority 请参阅更多信息https://forum.snapcraft.io/t/x11-forwarding-using-ssh/2381
https://askubuntu.com/questions/1051443
复制相似问题