我想在任意分辨率下使用 VNC 和 xmonad 窗口管理器

我想在任意分辨率下使用 VNC 和 xmonad 窗口管理器

为了使用任意分辨率(客户端的分辨率),我发现我需要创建一个新的显示会话(正确的术语?)。如果我使用显示器 0,我无法以任何分辨率启动 VNC 服务器,因为连接的显示器只有几种模式,而且没有一种与我的客户端的分辨率相同。

因此,为了启动创建新会话的 VNC 服务器,我使用以下命令启动 tightvnc:

vncserver :12 -name "MyServer" -geometry 1440x900

我有一个文件,~/.vnc/xstartup内容如下:

xmonad &

当我远程连接到服务器时,它会创建一个新会话,但据我所知,它不会运行 xmonad。我得到的是一个分辨率为 1440x900 的窗口,其中填充了黑白交叉阴影图案,并以 X 作为光标。似乎没有任何输入有任何效果。

相关tightvnc日志文件的内容如下

17/12/13 15:20:28 Xvnc version TightVNC-1.3.9
17/12/13 15:20:28 Copyright (C) 2000-2007 TightVNC Group
17/12/13 15:20:28 Copyright (C) 1999 AT&T Laboratories Cambridge
17/12/13 15:20:28 All Rights Reserved.
17/12/13 15:20:28 See http://www.tightvnc.com/ for information on TightVNC
17/12/13 15:20:28 Desktop name 'MyServer' (glock:12)
17/12/13 15:20:28 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
17/12/13 15:20:28 Listening for VNC connections on TCP port 5912
Xlib:  extension "XINERAMA" missing on display ":12".

17/12/13 15:20:46 Got connection from client 127.0.0.1
17/12/13 15:20:46 Using protocol version 3.8
17/12/13 15:20:46 Full-control authentication passed by 127.0.0.1
17/12/13 15:20:46 Pixel format for client 127.0.0.1:
17/12/13 15:20:46   32 bpp, depth 24, little endian
17/12/13 15:20:46   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
17/12/13 15:20:46   no translation needed
17/12/13 15:20:46 rfbProcessClientNormalMessage: ignoring unknown encoding 16
17/12/13 15:20:46 Using tight encoding for client 127.0.0.1
17/12/13 15:20:46 Using image quality level 6 for client 127.0.0.1
17/12/13 15:20:46 rfbProcessClientNormalMessage: ignoring unknown encoding 8
17/12/13 15:20:46 rfbProcessClientNormalMessage: ignoring unknown encoding -307
17/12/13 15:20:46 Enabling LastRect protocol extension for client 127.0.0.1
17/12/13 15:20:46 rfbProcessClientNormalMessage: ignoring unknown encoding -223
17/12/13 15:20:46 Enabling cursor position updates for client 127.0.0.1
17/12/13 15:20:46 Enabling full-color cursor updates for client 127.0.0.1
17/12/13 15:20:54 Client 127.0.0.1 gone
17/12/13 15:20:54 Statistics:
17/12/13 15:20:54   key events received 18, pointer events 24
17/12/13 15:20:54   framebuffer updates 1, rectangles 23, bytes 2840
17/12/13 15:20:54     LastRect markers 1, bytes 12
17/12/13 15:20:54     cursor shape updates 1, bytes 684
17/12/13 15:20:54     cursor position updates 1, bytes 12
17/12/13 15:20:54     tight rectangles 20, bytes 2132
17/12/13 15:20:54   raw bytes equivalent 5184012, compression ratio 2431.525328
XIO:  fatal IO error 4 (Interrupted system call) on X server ":12"
      after 271 requests (271 known processed) with 0 events remaining.

至于~/.vnc/xstartup运行时可能产生的任何错误,我不知道在哪里可以找到它们。

相关内容