使用 lightdm 和 x11vnc 的 vnc 在有效登录后立即断开连接

使用 lightdm 和 x11vnc 的 vnc 在有效登录后立即断开连接

从精确的 64 位服务器安装开始,我配置了以下内容;

sudo apt-get install lightdm x11vnc
sudo dpkg-reconfigure lightdm

在 /etc/init/x11vnc.conf 中,我放置了;

start on login-session-start
script
/usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -forever -bg -rfbport 5900 -o /var/log/x11vnc.log
end script

使用 Windows 中的 UltraVNC,我连接并输入有效的登录信息,窗口立即关闭。vnc 日志显示;

30/04/2013 16:52:01 Got connection from client 10.0.2.2
30/04/2013 16:52:01   other clients:
30/04/2013 16:52:01 Disabled X server key autorepeat.
30/04/2013 16:52:01   to force back on run: 'xset r on' (3 times)
30/04/2013 16:52:01 incr accepted_client=1 for 10.0.2.2:61281  sock=8
30/04/2013 16:52:01 Client Protocol Version 3.8
30/04/2013 16:52:01 Protocol version sent 3.8, using 3.8
30/04/2013 16:52:01 rfbProcessClientSecurityType: executing handler for type 1
30/04/2013 16:52:01 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
30/04/2013 16:52:01 copy_tiles: allocating first_line at size 33
30/04/2013 16:52:02 Pixel format for client 10.0.2.2:
30/04/2013 16:52:02   32 bpp, depth 24, little endian
30/04/2013 16:52:02   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
30/04/2013 16:52:02 no translation needed
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
30/04/2013 16:52:02 Using compression level 6 for client 10.0.2.2
30/04/2013 16:52:02 Enabling X-style cursor updates for client 10.0.2.2
30/04/2013 16:52:02 Enabling full-color cursor updates for client 10.0.2.2
30/04/2013 16:52:02 Enabling cursor position updates for client 10.0.2.2
30/04/2013 16:52:02 Using image quality level 6 for client 10.0.2.2
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
30/04/2013 16:52:02 Enabling LastRect protocol extension for client 10.0.2.2
30/04/2013 16:52:02 Enabling NewFBSize protocol extension for client 10.0.2.2
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type cacheEnable
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)
30/04/2013 16:52:02 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
30/04/2013 16:52:02 Using ZRLE encoding for client 10.0.2.2
30/04/2013 16:52:03 Pixel format for client 10.0.2.2:
30/04/2013 16:52:03   32 bpp, depth 24, little endian
30/04/2013 16:52:03   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
30/04/2013 16:52:03 no translation needed
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
30/04/2013 16:52:03 Using compression level 6 for client 10.0.2.2
30/04/2013 16:52:03 Enabling X-style cursor updates for client 10.0.2.2
30/04/2013 16:52:03 Enabling full-color cursor updates for client 10.0.2.2
30/04/2013 16:52:03 Enabling cursor position updates for client 10.0.2.2
30/04/2013 16:52:03 Using image quality level 6 for client 10.0.2.2
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
30/04/2013 16:52:03 Enabling LastRect protocol extension for client 10.0.2.2
30/04/2013 16:52:03 Enabling NewFBSize protocol extension for client 10.0.2.2
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)
30/04/2013 16:52:03 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
30/04/2013 16:52:03 Switching from ZRLE to hextile Encoding for client 10.0.2.2
30/04/2013 16:52:03 client_set_net: 10.0.2.2  0.0015
caught XIO error:
30/04/2013 16:52:07 deleted 32 tile_row polling images.
tail: x11vnc.log: file truncated
30/04/2013 16:52:08 passing arg to libvncserver: -rfbport
30/04/2013 16:52:08 passing arg to libvncserver: 5900

知道我遗漏了什么吗?

答案1

问题其实很简单,我没有安装底层桌面提供程序。另外,我的设备没有视频卡和视频驱动程序,因此没有帧缓冲区可以进行渲染。

对我有用的解决方案是在这个帖子

答案2

lightdm我最终通过将桌面管理器从 切换到解决了这个问题gdm

以下是详细说明:如何从 LightDM 切换到 GDM?

答案3

同样的问题也发生在这儿,解决方案是应用这个答案并正确配置颜色深度(我的情况是 32 位)。后者是 remmina 的问题。

答案4

我遇到了同样的问题(基本上是完全相同的日志输出),在我的例子中,这是因为我的主文件夹中的一个文件.ICEauthority不知何故被 root 所拥有。可能是因为我在调试期间使用 sudo 运行了某些操作。将用户切换回我的用户解决了这个问题。

一些有用的日志记录可能在/var/log/lightdm/

相关内容