apt-get install xfce4 xfce4-goodies gnome-icon-theme tightvncserver iceweasel
adduser vnc
apt-get install sudo
gpasswd -a vnc sudo
su - vnc
运行
vncserver
停止
vncserver -kill :1
---黑屏处理
vi /root/.vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
文章评论