- # 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/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
开启服务:
vncserver -kill :1 //关闭
vncserver :1 //开启
转载请标明出处:http://www.cnblogs.com/ssslinppp/