Tiger VNC Wayland 问题

Tiger VNC Wayland 问题

我已经使用本指南或多或少地设置了 Tiger-VNC:

https://www.linode.com/docs/guides/centos-install-and-configure-vnc-server/

我面临的问题是,当我启用以下功能时,我无法保持会话启动:

sudo systemctl start vncserver@:6001.service

它立即在systemctl状态中显示“active”,然后更改为inactive dead,退出:

$ sudo systemctl status vncserver@:6001.service
○ vncserver@:6001.service - Remote desktop service (VNC)
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
     Active: inactive (dead) since Thu 2022-12-01 19:35:32 GMT; 2s ago
   Duration: 1.265s
    Process: 9262 ExecStartPre=/usr/libexec/vncsession-restore :6001 (code=exited, status=0/SUCCESS)
    Process: 9273 ExecStart=/usr/libexec/vncsession-start :6001 (code=exited, status=0/SUCCESS)
   Main PID: 9280 (code=exited, status=0/SUCCESS)
        CPU: 19ms

当我查看 Journal-ctl 时,我看到:

Dec 01 19:35:32 centosstream9 sudo[9364]:    john : TTY=pts/0 ; PWD=/home/john ; USER=root ; COMMAND=/bin/systemctl status vncserver@:6001.service
Dec 01 19:35:31 centosstream9 gnome-session-f[9363]: Cannot open display: 
Dec 01 19:35:31 centosstream9 gnome-session-binary[9307]: WARNING: software acceleration check failed: Child process exited with code 1
Dec 01 19:35:31 centosstream9 gnome-session[9307]: gnome-session-binary[9307]: WARNING: software acceleration check failed: Child process exited with code 1
Dec 01 19:35:31 centosstream9 gnome-session[9357]: gnome-session-check-accelerated: no X11 display found
Dec 01 19:35:31 centosstream9 gnome-session[9352]: gnome-session-check-accelerated: no X11 display found

检查了这台服务器 Centos Stream 9,它似乎正在使用 Wayland。我不确定是否熟悉 Wayland,但我知道它应该取代 X。所以我猜我的问题与此有关,至于为什么它会说上面的错误(就像我假设某处有一个选项)我缺少启用 Wayland 支持,要么是这样,要么就是不兼容)。我实际上不确定该怎么做才能让它发挥作用,有人可以建议吗?

答案1

我遇到了同样的错误,这是因为 /etc/tigervnc/vncserver.users 中配置的用户已使用图形会话登录到服务器。文档 /usr/share/doc/tigervnc/HOWTO.md 的末尾巧妙地注明了这一点。

相关内容