#!/bin/bash
yum -y install vnc-server
yum -y update 
vncserver
pkill -9 vnc
rm -rf /tmp/.X1*
yum -y install xfce*
yum -y groupinstall chinese-support
wget http://d.zmrbk.com/soft/opera11.rpm
rpm -ivh opera11.rpm
echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers
echo 'VNCSERVERARGS[1]="-geometry 1024x768"' >> /etc/sysconfig/vncservers
/etc/init.d/vncserver restart
cat >/root/.vnc/xstartup <<EOF
#!/bin/sh
/usr/bin/startxfce4
EOF
/etc/init.d/vncserver restart
chmod +x ~/.vnc/xstartup
chkconfig vncserver on
