无法在 X 转发的 ssh 连接上启动 chromium

无法在 X 转发的 ssh 连接上启动 chromium

当我尝试启动 chromium 时,出现错误消息:

$ chromium
X11 connection rejected because of wrong authentication.
[10139:10139:0321/173002.675673:ERROR:ozone_platform_x11.cc(234)] Missing X server or $DISPLAY
[10139:10139:0321/173002.675976:ERROR:env.cc(225)] The platform failed to initialize.  Exiting.
$ echo $DISPLAY
localhost:10.0

$ xterm # xterm starts fine

答案1

查看

env | grep DISPLAY

并匹配运行命令

DISPLAY=:1 chromium

相关内容