vncserver 使用时出现问题

上网、浏览、聊天、下载等
回复
hnaaa
帖子: 15
注册时间: 2017-12-28 19:12
系统: windows10
送出感谢: 0
接收感谢: 0

vncserver 使用时出现问题

#1

帖子 hnaaa » 2019-02-26 16:42

我想通过vncserver来让我的windows电脑远程连接我的ubuntu工作站,但是目前出现某种问题
ubuntu版本:16.04
windows版本:windows 7
我安装过以下组件
gnome-panel
gnome-settings-daemon
metacity
nautilus
gnome-terminal
通过apt-get install命令安装的 sudo apt-get install vnc4server

目前能够连接,但是通过windows上的vncviewr连接之后只有桌面和一个终端并不显示图标和其他工具栏

我的xstartup配置如下:
#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

连接过程中我的log信息如下:

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


Tue Feb 26 15:57:24 2019
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5902
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!
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.

** (gnome-panel:7025): WARNING **: Failed to get session bus: 无法连接:拒绝连接

** (gnome-settings-daemon:7026): WARNING **: Name taken or bus went away - shutting down
窗口管理器警告: Log level 32: could not find XKB extension.
窗口管理器警告: 合成所需要的扩展 composite 丢失

(metacity:7027): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(metacity:7027): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(metacity:7027): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: 无法连接:拒绝连接
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.

(nautilus:7028): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nautilus:7028): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nautilus:7028): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nautilus:7028): libunity-CRITICAL **: unity-launcher.vala:157: Unable to connect to session bus: 无法连接:拒绝连接

(nautilus:7028): libunity-CRITICAL **: unity-launcher.vala:157: Unable to connect to session bus: 无法连接:拒绝连接

(nautilus:7028): libunity-CRITICAL **: unity-launcher.vala:157: Unable to connect to session bus: 无法连接:拒绝连接

(nautilus:7028): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: 无法连接:拒绝连接

(nautilus:7028): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: 无法连接:拒绝连接

(nautilus:7028): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: 无法连接:拒绝连接

(nautilus:7028): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nautilus:7028): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nautilus:7028): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Nautilus-Share-Message: Called "net usershare info" but it failed: 执行子进程“net”失败(没有那个文件或目录)

Tue Feb 26 15:58:32 2019
Connections: accepted: 0.0.0.0::50038
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)

Tue Feb 26 15:58:37 2019
VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
VNCSConnST: Client pixel format depth 6 (8bpp) rgb222
VNCSConnST: Client pixel format depth 16 (16bpp) little-endian rgb565
回复

回到 “因特网相关软件”