VNC 服务器无法在 arch linux 上启动(结果 = vnc 查看器中的计算机拒绝连接)

VNC 服务器无法在 arch linux 上启动(结果 = vnc 查看器中的计算机拒绝连接)

tigervnc 服务器的日志文件包含以下内容:

mate-session[1077]: WARNING: Could not make bus activated clients aware of DISPLAY=:1 environment variable: Could not connect: Connection refused
mate-session[1077]: WARNING: Could not make bus activated clients aware of MATE_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Could not connect: Connection refused

(mate-session:1077): dconf-WARNING **: 10:08:58.516: failed to commit changes to dconf: Could not connect: Connection refused
mate-session[1077]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/RSG:@/tmp/.ICE-unix/1077,unix/RSG:/tmp/.ICE-unix/1077 environment variable: Could not connect: Connection refused

我尝试了多种方法,例如重新启动/编辑 /usr/bin/vncserver 文件,但都无法解决这个问题(有关更多信息,请查看https://bbs.archlinux.org/viewtopic.php?pid=1887449#p1887449)。谷歌搜索了几个小时也没有结果。

我的 xstartup 文件:

#!/bin/sh
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
mate-session &

我认为问题出在 dbus 上(见下文)。

unset DBUS_SESSION_BUS_ADDRESS

如果我删除该行,我只会出现这个错误。

mate-session[3099]: WARNING: Failed to acquire org.gnome.SessionManager

那么我该如何解决这个问题呢?

相关内容