VNC viewer连接VNC server 无法显示正常桌面,桌面是上只显示3个勾选框,鼠标显示成一个叉

来源:互联网 发布:win8网络连接受限 编辑:程序博客网 时间:2024/06/11 13:37

这是VNC server没有配置好显示桌面造成的,修改用户目录下的.vnc/xstartup文件

将里面内容全部注释,添加以下内容:

#!/bin/sh
def
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
  
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &


或者:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
export XKL_XMODMAP_DISABLE=1
 unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS
gnome-panel &
gnmoe-settings-daemon &
metacity &
nautilus &
gnome-terminal &