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

Linux 启动vncserver后如何解释此日志文件?,linux,vnc,Linux,Vnc,我正在尝试配置一个GCP Linux虚拟机来运行VNC服务器。 我按照这里的说明做了:我没有任何明显的问题 当我跑的时候 $ vncserver 从命令行中,我的vnc客户端无法连接(“服务器无响应”),我在服务器上的日志文件中得到: 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 informati

我正在尝试配置一个GCP Linux虚拟机来运行VNC服务器。 我按照这里的说明做了:我没有任何明显的问题

当我跑的时候

$ vncserver 
从命令行中,我的vnc客户端无法连接(“服务器无响应”),我在服务器上的日志文件中得到:

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$

您的shell脚本应该是
xsetroot-solod-grey
时使用
xsetroot-solid-grey
。(我本想添加此作为评论,但我低于50次重复阈值。

很好。客户端仍然无法连接到服务器,日志文件的输出行数增加了十亿行,但这是另一个SO问题。:)
#!/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 &