我有一个Windows 10主机运行Virtualbox,安装了Ubuntu22.04客户。它使用NAT网络与端口22转发给客人。然后,我在另一台Windows10机器上安装了WindowsXServerv1.20.14.0。从这里开始,我已经设置了Putty,允许在ssh会话期间将X11转发到另一个盒子上的Ubuntu22.04来宾。
我发现只有一些应用程序显示。xclock和gvim弹出,并按您的预期行事。shotwell和gedit不显示,但也不提供任何错误消息。firefox不显示和抱怨不受支持的授权协议。
Using username "user".
Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-37-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 updates can be applied immediately.
Last login: Fri Jun 10 21:00:39 2022 from 10.0.2.2
user@ubuntu:~$ echo $XDG_SESSION_TYPE x11
tty x11
user@ubuntu:~$ sudo cat /etc/ssh/ssh_config | grep X11
[sudo] password for user:
ForwardX11 yes
ForwardX11Trusted yes
user@ubuntu:~$ xclock
user@ubuntu:~$ gvim
user@ubuntu:~$ gedit
^C
user@ubuntu:~$ firefox
PuTTYNG X11 proxy: Unsupported authorisation protocol
Error: cannot open display: localhost:10.0
发布于 2022-07-07 16:09:31
我今天为这件事挣扎了几个小时。
上面的post线程链接到我使用的解决方案。我不完全理解这些细节,但下面一行允许我成功地运行firefox:
XAUTHORITY=$HOME/.Xauthority /snap/bin/firefox
这也适用于其他我有问题的应用程序。这是令人惊讶的,因为我通过APT而不是snap安装了铬和火狐。我重新安装了firefox,并注意到它在安装时提到了snap。
我想snap不知道XAUTHORITY在哪里,这样做可以告诉它它在哪里。别引用我的话。
https://askubuntu.com/questions/1413448
复制相似问题