首页
关于
友情链接
文章归档
Search
1
centos 32位 64位 下挂vagex一键包代码
719 阅读
2
wordpress转typecho方法
615 阅读
3
一个自制的virto精简版kvm qemu win2003模板 最低64M内存可用
605 阅读
4
PHP 安装
539 阅读
5
暴雨 车被泡了~
480 阅读
默认分类
vps综合利用
登录
/
注册
Search
标签搜索
Uncategorized
安装
mysql
utf-8
网站
google
linux
free
免费
黑色
ssl
一键包
优化
40%
press
vagex
32位
64位
debian
domain
御品VPS
累计撰写
501
篇文章
累计收到
1
条评论
首页
栏目
默认分类
vps综合利用
页面
关于
友情链接
文章归档
搜索到
4
篇与
一键包
的结果
2012-09-29
debian下挂vagex一键包代码
debian下一键安装挂vagex环境 在host1free 128 下测试通过 debian6 32bit 先用vi 建立下面的内容 比如保存为vg.sh,就用vi vg.sh,保存后 再chmod +x vg.sh , ./vg.sh 回车 就行了 安装完后 用vnc连接IP:1 去设置你的vagex ID 开挂成功 ,重启一下就全自动运行了, 这里没有增加定期删日志和重启 ,大家可参见centos的cron#!/bin/shapt-get -y remove portmap* httpd* bind9* samba* nscd* sendmail* apache*apt-get updateapt-get -y install vnc4server iceweasel expectwget http://fpdownload.adobe.com/get/flashplayer/pdc/10.3.183.19/install_flash_player_10_linux.tar.gztar xvzf install_flash_player_10_linux.tar.gzmkdir -p ~/.mozilla/plugins/mv libflashplayer.so ~/.mozilla/plugins/rm -rf usrrm -rf install_flash_player_10_linux.tar.gztouch /etc/init.d/vncservercat > /etc/init.d/vncserver<<EOF### BEGIN INIT INFO# Provides: vncserver# Required-Start: \$remote_fs \$syslog# Required-Stop: \$remote_fs \$syslog# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-Description: Start daemon at boot time# Description: Enable service provided by daemon.### END INIT INFOPATH="\$PATH:/usr/X11R6/bin/"z# The Username:Group that will run VNCexport USER="root"#\${RUNAS}# The display that VNC will useDISPLAY="1"# Color depth (between 8 and 32)DEPTH="16"# The Desktop geometry to use#GEOMETRY="x"GEOMETRY="800x600"#You Can Choice GEOMETRY="1024x768" && GEOMETRY="1280x1024"# The name that the VNC Desktop will have.NAME="Vncserver"OPTIONS="-name \${NAME} -depth \${DEPTH} -geometry \${GEOMETRY} :\${DISPLAY}". /lib/lsb/init-functionscase "\$1" instart)su \${USER} -c "/usr/bin/vncserver \${OPTIONS}";;stop)su \${USER} -c "/usr/bin/vncserver -kill :\${DISPLAY}";;restart)\$0 stop\$0 start;;esacexit 0EOFchmod +x /etc/init.d/vncserverupdate-rc.d vncserver defaultstouch ~/vnc.shcat > ~/vnc.sh<<EOF#!/usr/bin/expect# Change VNC passwordset timeout 30spawn vncpasswdexpect "Password:"send "1234567\r"expect "Verify:"send "1234567\r"expect eofexitEOFchmod +x ~/vnc.sh~/vnc.shvncserver :1cat > ~/.vnc/xstartup<<EOF#!/bin/shiceweasel --display=:1EOFtouch ~/addon.shcat >~/addon.sh<<EOFiceweasel https://addons.mozilla.org/firefox/downloads/file/147370/vagex_firefox_add_on-1.2.2-fx.xpi --display=:1EOFchmod +x ~/addon.sh/root/addon.sh &#rm -rf ~/vnc.sh#rm -rf ~/addon.shecho "VNC password is \"1234567\""echo "You can change it use \"vncpasswd\""echo "kinsw.com by hollandmoon qdmz.tk update"
2012年09月29日
185 阅读
0 评论
0 点赞
2012-09-05
linux vagex挂机赚钱一键安装包 for debian
http://www.hutuge.com/tag/vagex/ 引用自 linux vagex挂机赚钱一键安装包 for debian 前几天发了一个Vagex在Centos上的一键安装包,很多用Debian的系统装不上,今天看到了一个,顺便更新了下。该一键包包含的有 Firefox flash 插件 VNC vagex 插件 只适用于 debian 系统,且建议为32位,OpenVZ 保守需要突发内存512M,Xen 仅需内存256M,默认每天自动重启一次。安装前先要注册个帐号【点击这里注册】安装步骤1、先进入 screen ,防止中途断线。 screen 2、下载 vagex_debian.sh wget http://vagex-debian.googlecode.com/svn/trunk/vagex_debian.sh 3、执行 vagex_debian.sh sh vagex_debian.sh 4、中途需要输入 VNC 的密码 ----------- Plese input the VNC password below! ----------- You will require a password to access your desktops. Password: Verify: 5、看到以下提示即完成安装 Starting VNC server...DONE! ----------- Now you can VNC to complete the rest of the installation manually! ----------- 6、VNC 登陆,浏览器已经打开,进行必要的浏览器优化。7、依次选择 File > Open File ,选择 vagex 安装文件,默认在 /tmp 下,确定安装,重启浏览器。8、第一次重启后无法输入 vagex ID ,点击 cancel ,转向终端执行以下命令重启后 VNC 登陆,正常输入 vagex ID 。 /etc/init.d/vncserverd restart 9、按 ctrl + w 关掉小窗口,确认挂机正常后按 ctrl + q 正常退出浏览器,转向终端再次执行以下命令重启。 /etc/init.d/vncserverd restart 浏览器优化 View > Toolbars > 去勾 Bookmarks ToolbarEdit > Preferences > General > When Namoroka starts: Show a blank pageView > Preferences > Privacy > Namoroka will: Never remember historyView > Preferences > Advanced > Update > 全部去勾地址栏输入 about:config 回车并确认,在 Filter 输入 libflashplayer 搜索,双击结果使之 Value 为 false 。 再说明下,该一键包是在Debian下工作的centos 下请用1、下载一键包【CentOS 5系列版本】 32位系统:wget http://www.imnpc.me/AutoxfceCentOS32x.sh64位系统:wget http://www.imnpc.me/AutoxfceCentOS64x.sh
2012年09月05日
422 阅读
5 评论
0 点赞
2012-08-29
centos 32位 64位 下挂vagex一键包代码
32位: #!/bin/bashyum -y install vnc-server vncserverpkill -9 vnc yum -y groupinstall xfce-4.4 yum -y install curl firefox wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/install_flash_player_11_linux.i386.tar.gztar zxvf install_flash_player_11_linux.i386.tar.gzmkdir -p ~/.mozilla/plugins/cp libflashplayer.so ~/.mozilla/plugins/ echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncserversecho 'VNCSERVERARGS[1]="-geometry 1024x768"' >> /etc/sysconfig/vncservers/etc/init.d/vncserver restartcat >/root/.vnc/xstartup <<EOF#!/bin/sh/usr/bin/startxfce4EOF /etc/init.d/vncserver restart chmod +x ~/.vnc/xstartupchkconfig vncserver on wget https://addons.mozilla.org/firefox/downloads/file/151606/vagex_firefox_add_on-1.4.1-fx+fn+sm+an.xpi64位 :#!/bin/bashyum -y install vnc-servervncserverpkill -9 vncrm -rf /tmp/.X1*yum -y groupinstall xfce-4.4yum -y install curl firefoxwget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.236/install_flash_player_11_linux.x86_64.tar.gztar zxvf install_flash_player_11_linux.x86_64.tar.gzmkdir -p ~/.mozilla/plugins/cp libflashplayer.so ~/.mozilla/plugins/echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncserversecho 'VNCSERVERARGS[1]="-geometry 1024x768"' >> /etc/sysconfig/vncservers/etc/init.d/vncserver restartcat >/root/.vnc/xstartup <<EOF#!/bin/sh/usr/bin/startxfce4EOF/etc/init.d/vncserver restartchmod +x ~/.vnc/xstartupchkconfig vncserver onwget https://addons.mozilla.org/firefox/downloads/file/151606/vagex_firefox_add_on-1.4.1-fx+fn+sm+an.xpi
2012年08月29日
719 阅读
0 评论
0 点赞
2012-08-29
debian下挂vagex一键包代码
apt-get remove portmap* httpd* bind9* samba* nscd* sendmail* -yapt-get updateapt-get -q -y --force-yes install vnc4server xterm jwm mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm bzip2 libidl-dev zipwget http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/3.6.28-candidates/build1/source/firefox-3.6.28.source.tar.bz2bzip2 -d firefox-3.6.28.source.tar.bz2tar -xvf firefox-3.6.28.source.tarcd mozilla-*./configure --enable-application=browser && make && make installwget http://fpdownload.adobe.com/get/flashplayer/pdc/10.3.183.19/install_flash_player_10_linux.tar.gztar xvzf install_flash_player_10_linux.tar.gzmkdir -p ~/.mozilla/plugins/cp libflashplayer.so ~/.mozilla/plugins/wget http://www.abfan.com/vncservercp vncserver /etc/init.d/chmod +x /etc/init.d/vncserverupdate-rc.d vncserver defaultswget http://vagex.com/vagex_add_on-1.2.3.xpivncserverecho 'startjwm &'>>/root/.vnc/xstartupecho 'firefox --display=:1'>>/root/.vnc/xstartup
2012年08月29日
232 阅读
1 评论
0 点赞