当我使用vnc连接我的服务器(我使用的是CentOS 6 x64和gnome)时, gnome没有显示任何标题栏/窗口边框,鼠标指针总是处于加载animation状态
这是我有xstartup代码
#!/bin/sh [ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n export LANG export SYSFONT vncconfig -iconic & unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS OS=`uname -s` if [ $OS = 'Linux' ]; then case "$WINDOWMANAGER" in *gnome*) if [ -e /etc/SuSE-release ]; then PATH=$PATH:/opt/gnome/bin export PATH fi ;; esac fi if [ -x /etc/X11/xinit/xinitrc ]; then exec /etc/X11/xinit/xinitrc fi if [ -f /etc/X11/xinit/xinitrc ]; then exec sh /etc/X11/xinit/xinitrc fi [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm &
这是相关的日志文件
Xvnc TigerVNC 1.0.90 - built Dec 8 2011 01:43:50 Copyright (C) 2002-2005 RealVNC Ltd. Copyright (C) 2000-2006 Constantin Kaplinsky Copyright (C) 2004-2009 Peter Astrand for Cendio AB See http://www.tigervnc.org for information on TigerVNC. Underlying X server release 11004000, The X.Org Foundation Wed Oct 31 05:43:48 2012 vncext: VNC extension running! vncext: Listening for VNC connections on all interface(s), port 5901 vncext: created VNC server for screen 0 expected keysym, got XF86TouchpadOn: line 120 of inet expected keysym, got XF86TouchpadOff: line 121 of inet gnome-session[4111]: devkit-power-gobject-WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory gnome-session[4111]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory gnome-session[4111]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory GNOME_KEYRING_SOCKET=/tmp/keyring-9VeO4T/socket SSH_AUTH_SOCK=/tmp/keyring-9VeO4T/socket.ssh GNOME_KEYRING_PID=4139 ** (process:4169): WARNING **: Unable to get backtrace: Failed to execute child process "gdb" (No such file or directory) gnome-session[4111]: ******************* START ******************************** gnome-session[4111]: Frame 0: /usr/bin/gnome-session() [0x418157] gnome-session[4111]: Frame 1: /usr/bin/gnome-session() [0x4182b7] gnome-session[4111]: Frame 2: /lib64/libpthread.so.0(+0xf4a0) [0x7fbc8ba6c4a0] gnome-session[4111]: Frame 3: /usr/lib64/libpulsecommon-0.9.21.so(pa_shm_cleanup+0xb2) [0x7fbc7cac58f2] gnome-session[4111]: Frame 4: /usr/lib64/libpulsecommon-0.9.21.so(pa_shm_create_rw+0x71) [0x7fbc7cac5ab1] gnome-session[4111]: Frame 5: /usr/lib64/libpulsecommon-0.9.21.so(pa_mempool_new+0xc6) [0x7fbc7caba556] gnome-session[4111]: Frame 6: /usr/lib64/libpulse.so.0(pa_context_new_with_proplist+0x188) [0x7fbc7ccf8438] gnome-session[4111]: Frame 7: /usr/lib64/libcanberra-0.22/libcanberra-pulse.so(+0x484f) [0x7fbc7cf2d84f] gnome-session[4111]: Frame 8: /usr/lib64/libcanberra-0.22/libcanberra-pulse.so(pulse_driver_open+0x7e) [0x7fbc7cf2daae] gnome-session[4111]: Frame 9: /usr/lib64/libcanberra.so.0(+0xbfa1) [0x7fbc802cdfa1] gnome-session[4111]: Frame 10: /usr/lib64/libcanberra.so.0(+0x36d8) [0x7fbc802c56d8] gnome-session[4111]: Frame 11: /usr/lib64/libcanberra.so.0(ca_context_play_full+0x114) [0x7fbc802c5ed4] gnome-session[4111]: Frame 12: /usr/lib64/libcanberra-gtk.so.0(ca_gtk_play_for_widget+0x110) [0x7fbc804d4e80] gnome-session[4111]: Frame 13: /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so(+0x407a) [0x7fbc806da07a] gnome-session[4111]: Frame 14: /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so(+0x4113) [0x7fbc806da113] (gnome-panel:4151): GVFS-RemoteVolumeMonitor-WARNING **: invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/libexec/gvfs-gdu-volume-monitor received signal 6 gnome-session[4111]: Frame 15: /usr/lib64/libgdk-x11-2.0.so.0(+0x1d396) [0x7fbc8d591396] gnome-session[4111]: Frame 16: /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x22e) [0x7fbc8b123f0e] gnome-session[4111]: Frame 17: /lib64/libglib-2.0.so.0(+0x3c938) [0x7fbc8b127938] gnome-session[4111]: Frame 18: /lib64/libglib-2.0.so.0(g_main_loop_run+0x195) [0x7fbc8b127d55] gnome-session[4111]: Frame 19: /usr/lib64/libgtk-x11-2.0.so.0(gtk_dialog_run+0x1ab) [0x7fbc8db12a7b] gnome-session[4111]: Frame 20: /usr/bin/gnome-session() [0x423816] gnome-session[4111]: Frame 21: /usr/bin/gnome-session() [0x41ca32] gnome-session[4111]: Frame 22: /lib64/libgobject-2.0.so.0(g_closure_invoke+0x15e) [0x7fbc8b61bb3e] gnome-session[4111]: Frame 23: /lib64/libgobject-2.0.so.0(+0x20e23) [0x7fbc8b630e23] gnome-session[4111]: Frame 24: /lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x7ef) [0x7fbc8b6320af] gnome-session[4111]: Frame 25: /lib64/libgobject-2.0.so.0(g_signal_emit+0x83) [0x7fbc8b6325f3] gnome-session[4111]: Frame 26: /usr/bin/gnome-session() [0x42086c] gnome-session[4111]: Frame 27: /usr/bin/gnome-session() [0x411c00] gnome-session[4111]: Frame 28: /lib64/libgobject-2.0.so.0(g_closure_invoke+0x15e) [0x7fbc8b61bb3e] gnome-session[4111]: Frame 29: /lib64/libgobject-2.0.so.0(+0x20e23) [0x7fbc8b630e23] gnome-session[4111]: Frame 30: /lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x68a) [0x7fbc8b631f4a] gnome-session[4111]: Frame 31: /lib64/libgobject-2.0.so.0(g_signal_emit+0x83) [0x7fbc8b6325f3] gnome-session[4111]: Frame 32: /usr/bin/gnome-session() [0x40f3c7] gnome-session[4111]: Frame 33: /usr/lib64/libSM.so.6(_SmsProcessMessage+0x92b) [0x7fbc8e6eba8b] gnome-session[4111]: Frame 34: /usr/lib64/libICE.so.6(IceProcessMessages+0x342) [0x7fbc8e4dcfb2] gnome-session[4111]: Frame 35: /usr/bin/gnome-session() [0x410002] gnome-session[4111]: Frame 36: /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x22e) [0x7fbc8b123f0e] gnome-session[4111]: Frame 37: /lib64/libglib-2.0.so.0(+0x3c938) [0x7fbc8b127938] gnome-session[4111]: Frame 38: /lib64/libglib-2.0.so.0(g_main_loop_run+0x195) [0x7fbc8b127d55] gnome-session[4111]: Frame 39: /usr/lib64/libgtk-x11-2.0.so.0(gtk_main+0xa7) [0x7fbc8db9e307] gnome-session[4111]: Frame 40: /usr/bin/gnome-session() [0x41999a] gnome-session[4111]: Frame 41: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7fbc8a62acdd] gnome-session[4111]: Frame 42: /usr/bin/gnome-session() [0x40a949] gnome-session[4111]: ******************* END ********************************** (nautilus:4152): EggSMClient-WARNING **: Failed to connect to the session manager: IO error occured opening connection Window manager warning: CurrentTime used to choose focus window; focus window may not be correct. Window manager warning: Got a request to focus the no_focus_window with a timestamp of 0. This shouldn't happen! ** (gnome-panel:4151): WARNING **: panel-applet-frame.c:1288: failed to load applet OAFIID:GnoteApplet: (null) ** Message: Could not connect to session manager: Could not get owner of name 'org.gnome.SessionManager': no such name ** (gnome-panel:4151): WARNING **: Could not connect to session manager: Could not get owner of name 'org.gnome.SessionManager': no such name (nautilus:4152): GVFS-RemoteVolumeMonitor-WARNING **: invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/libexec/gvfs-gdu-volume-monitor received signal 6 ** (gnome-panel:4151): WARNING **: panel-applet-frame.c:1359: failed to load applet OAFIID:GNOME_FastUserSwitchApplet (cannot get property bag): Unknown CORBA exception id: 'IDL:omg.org/CORBA/INV_OBJREF:1.0' (gnome-panel:4151): Gtk-WARNING **: A floating object was finalized. This means that someone called g_object_unref() on an object that had only a floating reference; the initial floating reference is not owned by anyone and must be removed with g_object_ref_sink(). Wed Oct 31 05:43:59 2012 Connections: accepted: 118.99.70.56::1972 Wed Oct 31 05:44:00 2012 SConnection: Client needs protocol version 3.8 SConnection: Client requests security type VncAuth(2) Wed Oct 31 05:44:02 2012 VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888 VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888 ** (gnome-terminal:4189): WARNING **: Failed to connect to the session manager: Could not open network socket Wed Oct 31 05:44:48 2012 Connections: closed: 118.99.70.56::1972 (Clean disconnection) SMsgWriter: framebuffer updates 133 SMsgWriter: Tight rects 151, bytes 132714 SMsgWriter: raw bytes equivalent 5046132, compression ratio 38.022605
我的问题很简单,我怎么能解决这个:))