linux - 启动 vncserver 后如何解释此日志文件?
问题描述
我正在尝试配置 GCP Linux VM 来运行 VNC 服务器。我按照这里的说明进行操作:https ://www.youtube.com/watch?v=-tZLBcfyngU ,我没有任何明显的问题。
当我跑
$ 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$
配置文件看起来像这样
#!/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 代表阈值。
推荐阅读
- javascript - 单击时边框停止减小大小
- r - TSstudio 中的 ts_backtesting 函数未显示在 R 中 TSstudio 包中的函数列表中
- asp.net-core - C# .net core 条件构造依赖对象
- django - Django-allauth:PasswordChangeView 覆盖success_url,注销用户导致错误
- led - Pspice中的LED属于哪个库?
- swift - 根据用户 ID 更改我的 UserModel(类)中的值
- ios - iOS 13 App 在返回按钮 UIPrintPanelNavigationController 上崩溃
- javascript - 仅包括