https://atrong.googlecode.com/files/gomezpeer.sh
XML/HTML代码
- #!/bin/sh
- yum remove portmap* httpd* bind9* samba* nscd* sendmail* -y
- yum update -y
- yum groupinstall xfce-4.4 -y
- yum groupinstall "Chinese Support" -y
- yum install vnc-server -y
- yum install yum-priorities -y
- rpm --import http://atrong.googlecode.com/files/RPM-GPG-KEY.dag.txt
- rpm -ivh http://atrong.googlecode.com/files/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
- yum check-update
- yum --enablerepo=rpmforge install wine -y
- wget http://lastmile.gomez.com/PEERInstall.exe
- vncserver
- echo 'VNCSERVERS="1:root"'>>/etc/sysconfig/vncservers
- echo 'VNCSERVERARGS[1]="-geometry 800x600"'>>/etc/sysconfig/vncservers
- echo > /root/.vnc/xstartup
- echo '#!/bin/sh'>>/root/.vnc/xstartup
- echo '/usr/bin/startxfce4'>>/root/.vnc/xstartup
- chmod +x ~/.vnc/xstartup
- chkconfig vncserver on
- reboot