#!/bin/bash
yum remove portmap* httpd* bind9* samba* nscd* sendmail* -y
yum update -y
yum install vnc-server -y
yum install firefox curl -y
yum install gnome-terminal -y
yum groupinstall “Chinese Support” -y
vncserver
pkill -9 vnc
echo ‘VNCSERVERS=”1:root”‘>>/etc/sysconfig/vncservers
echo ‘VNCSERVERARGS[1]=”-geometry 800×600″‘>>/etc/sysconfig/vncservers
echo >/root/.vnc/xstartup
echo ‘#!/bin/bash’>>/root/.vnc/xstartup
echo ‘gnome-terminal’>>/root/.vnc/xstartup
echo ‘firefox’>>/root/.vnc/xstartup
chmod +x /root/.vnc/xstartup
chkconfig vncserver on
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.243/install_flash_player_11_linux_i386.tar.gz
tar zxvf install_flash_player_11_linux_i386.tar.gz
mkdir -p ~/.mozilla/plugins/
cp libflashplayer.so ~/.mozilla/plugins/
wget https://addons.mozilla.org/firefox/downloads/file/143311/vagex_firefox_add_on-1.1.8-fx.xpi
echo >/var/spool/cron/root
echo ’08 03 * * * rm -rf /root/.vnc/*.log’>>/var/spool/cron/root
echo ’10 03 * * * reboot’>>/var/spool/cron/root
echo ’18 22 * * * rm -rf /root/.vnc/*.log’>>/var/spool/cron/root
echo ’20 22 * * * reboot’>>/var/spool/cron/root
reboot
中间需录入两次vnc密码,然后会自动重启, 重启后用vnc连接你vps的IP :1
进入后会看到打开的firefox ,点文件 打开 ,找到 vagex擦件1.1.8 安装  并设置优化firefox ,比如主页  不记密码  不自动升级等,重启firefox  ,设置好vagex的ID, 再退出一次firefox
然后在 命令提示下 启动 firefox,  看是否自动跑点   ,一切正常  OK  。
  • 暂无相关文章