安裝gnome桌面
sudo apt-get install gnome-core
安裝vnc
sudo apt-get install vnc4server
啟動vnc
vncserver
設置一下密碼
接着設置一下配置文件
vim ~/.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-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-panel & gnmoe-settings-daemon & metacity & nautilus &
然后重啟vnc
vncserver -kill :1 //關閉 vncserver :1 //開啟
用vnc連接的時候 地址欄填寫 ip:1 然后輸入剛剛設置的密碼就可以進入了
如果出現桌面是灰色的現象,嘗試一下下面的方法
解決灰色桌面問題:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
原因是gnome有些組件沒有裝上
