Ubuntu在VNC View不显示桌面
第一步:安装桌面环境
第二步:配置文件
第三步:重启
1. Ubuntu在VNC View不显示桌面
证对不同的环境执行相应的命令
# yum groupinstall "GNOME Desktop Environment"(CentOS 5.x安装 GNOME桌面环境)
# yum groupinstall "X Window System" "Desktop"(CentOS 6.x安装GNOME桌面环境)
# yum -y install gnome*
# yum groupinstall Xfce(CentOS安装Xfce桌面环境,可选)
# yum install vnc-server vnc* (CentOS 5.x里)
# yum install tigervnc-server tigervnc (CentOS 6.x里)
2. 编辑~/.vnc/xstartup文件
#!/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 -solid grey
vncconfig -iconic &
x-window-manager &
dbus-launch nautilus &
gnome-panel &
gnome-terminal &
gnome-settings-daemon &