VNC错误:“无法连接到会话总线:无法连接到套接字”


1

我在ubuntu机器上的显示器:1上启动了一个vncserver。连接到它时,我得到一个带有错误消息的灰色X窗口Could not connect to session bus: Failed to connect to socket

vnc日志是:

Xvnc Free Edition 4.1.1 - built Apr  9 2010 15:59:33
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc 


Sun Mar 20 15:33:59 2011
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5901
 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!
cat: /var/run/gdm/auth-for-link2-eGnVvf/database: No such file or directory
gnome-session[24880]: WARNING: Could not make bus activated clients aware of DISPLAY=:1.0 environment variable: Failed to connect to socket /tmp/dbus-FhdHHIq8jt: Connection refused 
gnome-session[24880]: WARNING: Could not make bus activated clients aware of GNOME_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Failed to connect to socket /tmp/dbus-FhdHHIq8jt: Connection refused 
gnome-session[24880]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/dell:@/tmp/.ICE-unix/24880,unix/dell:/tmp/.ICE-unix/24880 environment variable: Failed to connect to socket /tmp/dbus-FhdHHIq8jt: Connection refused

Sun Mar 20 15:34:10 2011
 Connections: accepted: 0.0.0.0::51620
 SConnection: Client needs protocol version 3.8 
 SConnection: Client requests security type VncAuth(2)
 VNCSConnST:  Server default pixel format depth 16 (16bpp) little-endian rgb565
 VNCSConnST:  Client pixel format depth 16 (16bpp) little-endian rgb565
gnome-session[24880]: Gtk-CRITICAL: gtk_main_quit: assertion `main_loops != NULL' failed
gnome-session[24880]: CRITICAL: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

任何想法如何解决?


我想知道是否是由于这一部分:错误打开安全策略文件/ etc / X11 / xserver / SecurityPolicy ...某些权限问题,它需要访问该目录,但不允许访问?否则,我遇到的每个vnc问题都是因为A:我忘记转发端口或在路由器上启用DMZ B:我忘记将服务器和查看器都设置为指定的端口(在您的情况下为5901)... C:我得到了错误的IP信息(例如,如果您连接到无线网络,并且VNC服务器在同一网络上运行,则使用的是网络IP地址,而不是外部IP。)
CreeDorofl 2011年

DBus在这里搞砸了。重新安装它,然后再试一次。
new123456 2011年

Answers:


1

尝试重新启动messagebus服务。

服务messagebus重新启动

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.