环境:Ubuntu 14.04 server
1.升级现有apt-get
apt-get update
2.安装GUI(–no-install-recommends意思为只安装基本组件)
apt-get install --no-install-recommends ubuntu-desktop
安装network-manager
apt-get install network-manager
3.安装VNC server必须的gnome组件
apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
4.安装VNC server
apt-get install vnc4server
5.编辑VNC启动文件
vi /usr/bin/vncserver
找到:
"# exec /etc/X11/xinit/xinitrc\n\n"
在该行下,增加下面的几行代码:
"gnome-panel &\n". "gnome-settings-daemon &\n". "metacity &\n". "nautilus &\n". "gnome-terminal &\n".
6.启动VNC server,配置登录密码等
vnc4server