其实我两个月前就重新挂
vagex了……之前旧版非常省资源的,官方强制升级插件,旧版不能用了。
开了三个号,两个月的收益还不错o(╯□╰)o,够买独服了 (便宜vps需要自己挖掘)
vagex不允许多个账号用一个Paypal收款,这时候可以申请paypal企业账号,按几下鼠标即可
装firefox最新版的话,很多vps(尤其像burstnet这样的超瘦货)会卡死
(如图,其实已经卡死了,点哪里都没反应,ip也没上。512M openvz)
后来在用了这方法,发现128M的vps都能挂起……(虽然安装过程非常慢)
一键包下载(若用此一键包,执行完后请跳到第六步手工操作):
|
cd ~;wget http://soft.jybb.me/vagex-debian.sh;sh vagex-debian.sh
|
1、更新源以及安装相关依赖
|
apt-get update;apt-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 zip
|
2.下载firefox 3.6.28源码包,并编译安装(编译过程非常缓存,建议screen里执行)
|
wget http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/3.6.28-candidates/build1/source/firefox-3.6.28.source.tar.bz2
bzip2 -d firefox-3.6.28.source.tar.bz2
tar -xvf firefox-3.6.28.source.tar
cd mozilla-*
./configure --enable-application=browser && make && make install
|
3.下载flash和vagex插件并安装
|
wget http://soft.jybb.me/install_flash_player_11_linux.i386.tar.gz
tar zxvf install_flash_player_11_linux.i386.tar.gz
mkdir ~/.mozilla/plugins
mv *.so ~/.mozilla/plugins
wget http://vagex.com/vagex_add_on-1.5.6.xpi
|
4.启动vnc并设置
|
vncserver #输入两次密码
chmod +x ~/.vnc/xstartup
vi ~/.vnc/xstartup
|
将下面两行加到最后
(startjwm后面的是 &号,被自动转换了)
|
startjwm &
firefox --display=:1
|
5.设置VNC开机启动
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#加入以下内容
### 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 INFO
PATH="$PATH:/usr/X11R6/bin/"
# The Username:Group that will run VNC
export USER="root"
#${RUNAS}
# The display that VNC will use
DISPLAY="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-functions
case "$1" in
start)
su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
;;
stop)
su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
;;
restart)
$0 stop
$0 start
;;
esac
exit 0
|
添加权限使配置生效
|
chmod +x /etc/init.d/vncserver
update-rc.d vncserver defaults
|
6.添加计划任务
|
crontab -e
0 */3 * * * /sbin/reboot
|
7.重启
8.用vncviewer连接你的vps,端口号为1。连接后如果看到firefox打开,离成功就不远了!
按下面步骤设置firefox:
安装完插件重启,输入vagex id,然后就可以看到vagex正常工作了……
此时关闭firefox(切记),在终端输入firefox启动,然后reboot一次
再连接,如果正常,那么安装就结束了
内存占用情况(128M的vks)
|
root@vks27825:~# free -m
total used free shared buffers cached
Mem: 128 126 1 0 0 23
-/+ buffers/cache: 102 25
Swap: 128 92 35
|
Are you presently seeking to ways to accrue popularity quickly? You only require to Buy Facebook Followers to become recognized online. buy cheap facebook followers
回复删除Facebook is a dazzling system which offers its customers tremendous possibilities to expand their perspectives. buy usa likes
回复删除Are you seeking genuine real YouTube likes? Leave behind your headaches, we'll extensively help you to buy YouTube likes
回复删除Absolutely nothing is complimentary on earth, but insure that you Buy facebook reviews just from reliable sources for good acceptance on the net. buy facebook reviews
回复删除