为什么我的 TightVNC 服务器不显示 LXQt 桌面?

为什么我的 TightVNC 服务器不显示 LXQt 桌面?

我正在尝试使用 TightVNC 在我的 Lubuntu 20.04 / LXQt / LightDM / Xorg / openbox 机器上设置 vnc 服务器。

先描述一下我的问题:当我使用 TightVNC(java 版本)从 Windows 机器连接时,我可以连接,我可以看到我的 python 应用程序运行正常,这是我在 Lubuntu 机器上本地启动的,但我看不到任何桌面。全是灰色的。我的 ~/.vnc/nb-lubuntu:1.log 显示了很多错误。

这是我的~/.vnc/xstartup:

#!/bin/sh
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc &
exec startx &
/usr/bin/openbox &
/usr/bin/startlxqt

这是我的 .vnc 下的 :1.log,其中充满了错误:

10/04/21 22:19:12 Copyright (C) 2000-2009 TightVNC Group
10/04/21 22:19:12 Copyright (C) 1999 AT&T Laboratories Cambridge
10/04/21 22:19:12 All Rights Reserved.
10/04/21 22:19:12 See http://www.tightvnc.com/ for information on TightVNC
10/04/21 22:19:12 Desktop name 'X' (nb-lubuntu:1)
10/04/21 22:19:12 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
10/04/21 22:19:12 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
Obt-Message: XKB extension is not present on the server or too old
Obt-Message: Xinerama extension is not present on the server
Obt-Message: XRandR extension is not present on the server
qt.qpa.xcb: XKeyboard extension not present on the X server

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
Xlib:  extension "XInputExtension" missing on display ":1".
Openbox-Message: Requested key "Print" does not exist on the display
Openbox-Message: Requested key "Print" does not exist on the display
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"

** (light-locker:37818): ERROR **: 22:19:13.553: Environment variable XDG_SESSION_PATH not set. Is LightDM running?
[: 1: Syntax error: Unterminated quoted string
qt.qpa.xcb: XKeyboard extension not present on the X server
AUDIT: Sat Apr 10 22:19:13 2021: 37728 Xtightvnc: client 13 rejected from local host
Failure: Module initialization failed
qt.qpa.xcb: XKeyboard extension not present on the X server
qt.qpa.xcb: XKeyboard extension not present on the X server
qt.qpa.xcb: XKeyboard extension not present on the X server
qt.qpa.xcb: XKeyboard extension not present on the X server
blueman-applet version 2.1.2 starting
There is an instance already running
qt.qpa.xcb: XKeyboard extension not present on the X server

** (update-notifier:37905): WARNING **: 22:19:14.233: already running?
[Critical] Cannot register service 'org.lxqt.global_key_shortcuts'
[Notice] Stopped
(0x7fff1efdbfb0) Debug: New PolkitAgentListener  0x7fdccc003da0
(0x7fff1efdbfb0) Debug: Adding new listener  PolkitQt1::Agent::Listener(0x7fff1efdbfc0) for  0x7fdccc003da0
qt.qpa.xcb: XKeyboard extension not present on the X server
qt.qpa.xcb: XKeyboard extension not present on the X server
qt.qpa.xcb: XKeyboard extension not present on the X server
An instance of qlipper is already running!
(0x7ffdc9104d50) Debug: registerService failed: another service with 'org.freedesktop.Notifications' runs already
QSystemTrayIcon::setVisible: No Icon set
(0x7fffca5aa4c0) Warning: Unable to register 'org.lxqt.lxqt-powermanagement' service - is another instance of lxqt-powermanagement running?
AUDIT: Sat Apr 10 22:19:15 2021: 37728 Xtightvnc: client 18 rejected from local host
(0x7fff0fbe8860) Debug: ""
(0x7fff0fbe8860) Debug: ()
(0x7ffc852f58c0) Debug: systemd: "CanHibernate" = "challenge"
(0x7ffc852f58c0) Debug: systemd: "CanSuspend" = "challenge"
(0x7fff0fbe8860) Debug: WinIdChange 3000006 handle QWidgetWindow(0x55e8cce84850, name="LXQtPanel panel1Window") QScreen(0x55e8ccd0c680, name=":1.0")
(0x7fff0fbe8860) Debug: Systray started
(0x7fff0fbe8860) Warning: The X11 connection broke (error 2). Did the X11 server die?
mount error(16): Device or resource busy
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
RandR extension missing
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console
X connection to :1 broken (explicit kill or server shutdown).
X connection to :1 broken (explicit kill or server shutdown).
Gdk-Message: 22:22:09.825: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

(0x7ffdf5f3f750) Warning: The X11 connection broke (error 1). Did the X11 server die?
(0x7fff1efdbfb0) Warning: The X11 connection broke (error 1). Did the X11 server die?
(0x7ffdc9104d50) Warning: The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?

最后一行反映了我目前的心理状况。显然 lxqt 没有启动。我的桌面是“X”作为后备?我做错了什么?谢谢您的帮助!

答案1

我终于找到了一个替代方案:

x2go。

在 lubuntu 下安装它很容易

  • sudo apt-get 安装软件属性-通用
  • sudo 添加 apt 存储库 ppa:x2go/stable
  • sudo apt-get 更新 sudo apt-get 安装 x2goserver x2goserver-xsession

然后在 Windows 下安装 x2go 客户端并配置会话。非常直观,桌面清晰可见(现有桌面的副本,没有单独的会话)。

相关内容