![运行 VNC 的 Arch Server 不再显示任何内容](https://linux22.com/image/715499/%E8%BF%90%E8%A1%8C%20VNC%20%E7%9A%84%20Arch%20Server%20%E4%B8%8D%E5%86%8D%E6%98%BE%E7%A4%BA%E4%BB%BB%E4%BD%95%E5%86%85%E5%AE%B9.png)
我有一台运行 arch、内核 4.13 的服务器,我经常远程访问它。我通过名为 tigervnc 的 VNC 进行远程访问。这已经连续几个月没有出现任何问题。我使用 KDE(Plasma 桌面)来支持 VNC。
几天前,服务器出现一些问题后,我升级了所有内容,然后重新启动。重新启动后,我可以启动 VNC 并进行远程登录,但实际上看不到任何东西。光标可以正常工作,但单击任何地方时都没有上下文菜单,没有 GUI,没有桌面,什么都没有。
我重新安装了 KDE,尝试将其作为 LXDE 运行(希望这是 KDE 的问题),重新安装了 tigervnc,重新启动,一切正常。下面是我的 xstartup 文件,但我不认为这是问题所在。下面还有来自 vnc 的日志。
启动
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#OS=`uname -s`
#if [ $OS = 'Linux' ]; then
# case "$WINDOWMANAGER" in
# *gnome*)
# if [ -e /etc/SuSE-release ]; then
# PATH=$PATH:/opt/gnome/bin
# export PATH
# fi
# ;;
# esac
#fi
#if [ -x /etc/X11/xinit/xinitrc ]; then
# exec /etc/X11/xinit/xinitrc
#fi
#if [ -f /etc/X11/xinit/xinitrc ]; then
# exec sh /etc/X11/xinit/xinitrc
#fi
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startkde &
VNCServer 日志
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation
Sat Dec 30 22:33:57 2017
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
startkde: Starting up...
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits)
OpenGL version string: 3.0 Mesa 17.3.1
OpenGL shading language version string: 1.30
Driver: Unknown
GPU class: Unknown
OpenGL version: 3.0
GLSL version: 1.30
Mesa version: 17.3.1
X server version: 1.19.5
Linux kernel version: 4.13.12
Requires strict binding: no
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
Service started, version: 7.0.0
Service started, version: 7.0.0
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/disable_kmix.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/fonts_akregator.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/fonts_global.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/fonts_global_toolbar.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/fonts_kate.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/gtkbreeze5.5.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/kde4breeze.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/krdb_libpathwipe.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/krunnerplugins.upd' for new updates
2017-12-30T22:34:23 Checking update-file '/usr/share/kconf_update/kscreenlocker.upd' for new updates
Sat Dec 30 22:34:25 2017
Connections: accepted: 10.40.1.109::57186
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VeNCrypt(19)
SVeNCrypt: Client requests security type TLSVnc (258)
Sat Dec 30 22:34:28 2017
VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888
VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888
ERROR: Back In Time is not configured!
Sat Dec 30 22:34:41 2017
Connections: closed: 10.40.1.109::57186 (Clean disconnection)
EncodeManager: Framebuffer updates: 18
EncodeManager: Tight:
EncodeManager: Solid: 1 rects, 786.432 kpixels
EncodeManager: 16 B (1:196609 ratio)
EncodeManager: Total: 1 rects, 786.432 kpixels
EncodeManager: 16 B (1:196609 ratio)
TLS: TLS session wasn't terminated gracefully
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
答案1
我无法解释为什么会发生这种情况,但经过几天的日志挖掘后,我发现正在使用的合成器是 OpenGL2.0,而它对 Kwin 不起作用。
我加载了不同的窗口管理器(我用的是 openbox),并且能够正常加载 VNC。将 Compositor 更改为 XRender 后,我就可以再次使用 Kwin 了。