亲测通过
1. 安装相关的包:
apt-getupdate
apt-get install ubuntu-desktop
apt-getinstall vnc4server
apt-get install x-window-system-core
apt-get install gdm
apt-get install gnome-panel
2. 设置vncserver
Vncpasswd
以root身份chmod +x/etc/X11/xinit/xinitrc
Vi /root/.vnc/xstartup
#!/bin/sh #gnome-session --session=gnome-classic & [-x /etc/vnc/xstartup] && exec/etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb$HOME/.Xresources xsetroot -solid grey vncconfig -iconic & #gnome-session --session=gnome-classic & xterm -gemetry 80x24+10+10 -ls -title"$VNCDESKTOP Desktop" & #x-terminal-emulator -gemetry 80x24+10+10 -ls-title "$VNCDESKTOP Desktop" & #x-window-manager & #twm & gnome-session &
chmod +x xstartup
本文出自 “水滴石穿” 博客,转载请与作者联系!
Ubuntu 12.04 Server LTS下安装桌面及vncserver,布布扣,bubuko.com
Ubuntu 12.04 Server LTS下安装桌面及vncserver
原文:http://floydzhang.blog.51cto.com/8635217/1431482