连接vncserver时出现黑屏。我已经在SUSE-12平台上安装了vnc服务器,而在连接vncserver时,日志文件出现以下错误;
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s),
port 5901
vncext: Listening for HTTP connections on all
interface(s), port 5801
vncext: created VNC server for screen 0
** (process:9295): WARNING **: Could not make bus activated
clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable:
Could not connect: Connection refused
gnome-session-is-accelerated: llvmpipe detected.
gnome-session-binary[9295]: WARNING: Could not make bus
activated clients aware of GNOME_DESKTOP_SESSION_ID=this-is-
deprecated environment variable: Could not connect: Connection
refused
gnome-session-binary[9295]: WARNING: Could not make bus
activated clients aware of XDG_MENU_PREFIX=gnome- environment
variable: Could not connect: Connection refused
gnome-session-binary[9295]: WARNING: Could not make bus
activated clients aware of QT_QPA_PLATFORMTHEME=qgnomeplatform
environment variable: Could not connect: Connection refused
gnome-session-binary[9295]: WARNING: Lost name on bus:
org.gnome.SessionManager
Unable to init server: Could not connect: Connection refused
** (gnome-session-failed:9316): WARNING **: Cannot open display:
/root/.xinitrc: line 1: 9295 Terminated gnome-
session
我点击了以下链接以安装vncserver; https://www.dell.com/support/article/in/en/inbsd1/sln283107/how-to-install-and-configure-a-vnc-server-on-suse-linux-enterprise-server-sles-11?lang=en
预先感谢您的帮助。
我尝试编辑.vnc / xstartup并更新了所有必需的软件包,但是没有用。 现在,我的.vnc / xstartup文件的配置为;
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export SESSION_MANAGER
export DBUS_SESSION_BUS_ADDRESS
userclientrc=$HOME/.xinitrc
sysclientrc=/etc/X11/xinit/xinitrc
if [ -f "$userclientrc" ]; then
client="$userclientrc"
elif [ -f "$sysclientrc" ]; then
client="$sysclientrc"
fi
if [ -x "$client" ]; then
exec "$client"
fi
if [ -f "$client" ]; then
exec sh "$client"
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
if [ -x /usr/bin/icewm ]; then
/usr/bin/icewm &
else
echo "No window manager found. You should install a window
manager to get properly working VNC session."
fi