启动 vncserver 后如何解释此日志文件?

How do I interpret this log file after starting vncserver?

我正在尝试将 GCP Linux VM 配置为 运行 VNC 服务器。 我按照此处的说明进行操作:https://www.youtube.com/watch?v=-tZLBcfyngU 并且我没有遇到任何明显的问题。

当我运行

$ vncserver 

从命令行,我的 vnc 客户端无法连接 ("no response from the server"),我在服务器上的日志文件中得到了这个:

Xvnc Free Edition 4.1.1 - built Feb 25 2015 23:02:21
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc
Wed Jul 18 11:09:40 2018
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5903
 vncext:      created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
usage: xsetroot [options]
  where options are:
  -display <display>   or   -d <display>
  -fg <color>   or   -foreground <color>
  -bg <color>   or   -background <color>
  -rv   or   -reverse
  -def   or   -default
  -name <string>
  -cursor <cursor file> <mask file>
  -cursor_name <cursor-font name>
  -xcf <ARGB cursor file> <cursor size>
  -solid <color>
  -gray   or   -grey
  -bitmap <filename>
  -mod <x> <y>
  -help
  -version

**/home/nicholdw/.vnc/xstartup: 12: /home/nicholdw/.vnc/xstartup: gnome-settings-daemon: not found**

**** (gnome-panel:16661): WARNING **: 11:09:43.917: Failed to request name: the name already has an owner**
**metacity-Message: 11:09:43.976: could not find XKB extension.**

**(metacity:16663): metacity-WARNING **: 11:09:43.983: Failed to create MetaCompositorXRender: Missing composite extension required for compositing
# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached**
nicholdw@ubuntu-with-vnc-server-and-gui-desktop:~/.vnc$

配置文件如下所示

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solod grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

你的 shell 脚本有 xsetroot -solod grey 而它应该是 xsetroot -solid grey。 (我会把它添加为评论,但我低于 50 个代表阈值。