- # apt-get install tightvncserver vnc4server gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
- # apt-get install xfce4 xfce4-goodies
设置密码:
# vncserver
# vi /root/.vnc/xstartup
内容如下:
#!/bin/shexport XKL_XMODMAP_DISABLE=1unset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESS[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &gnome-panel &gnome-settings-daemon &metacity &nautilus &gnome-terminal &
开启服务:
vncserver -kill :1 //关闭vncserver :1 //开启