我通过远程连接ssh -XY
。我使用 xauth 来合并 cookie。我可以毫无问题地打开 kate、gedit。但是,我无法打开八度。
八度音程是一个快速应用程序。但 kate 也是一个 snap 应用程序,尽管它是经典模式。
firefox和octave打不开,一直抱怨认证错误。
firefox
X11 connection rejected because of wrong authentication.
Error: cannot open display: localhost:10.0
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
octave -f --force-gui
X11 connection rejected because of wrong authentication.
octave: unable to open X11 DISPLAY
octave: disabling GUI features
X11 connection rejected because of wrong authentication.
GNU Octave, version 7.1.0
Copyright (C) 1993-2022 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "x86_64-pc-linux-gnu".
答案1
在 .Xauthory 处寻找 .Xauthory 的 snap 包~/snap/<package>/current/
。我可以将 axe cookie 导出到该文件夹中或直接导出ln -s ~/.Xauthory
到该文件夹中。然后X转发就可以正常工作了。