2014年3月18日 星期二

Linux vps 挂沙丁鱼流量联盟(Gotop)赚钱

沙丁鱼是win应用程序,但是我可以教大家在linux vps上挂它,经本人测试,小到128M内存,大到1G内存的vps都可以挂它。
测试vps:debian6系统,128M内存(其它系统也可以)

一、先升级下源
  1. apt-get update

二、安装xfce桌面环境
  1. apt-get install xfce4

出现下图情况,输入“y”回车
go3
出现下图,默认USA,回车
go4
三、安装vnc远程控制服务端
  1. apt-get install vnc4server

输入 vncserver 设置vnc密码,需输入两次,输入时不显示字母
  1. vncserver

go1

编辑文件
  1. vi /root/.vnc/xstartup
跳到最后,按字母a进入编辑:
在最后一行加入
  1. exec startxfce4&

按ESC键退出编辑,输入:wq保存退出
设置vnc开机启动
  1. vi /etc/init.d/vncserver

加入以下代码:
  1. #! /bin/sh
  2. export USER=“root”
  3. export PATH=“/usr/local/bin:/usr/bin:/bin:/usr/bin/X11″
  4. NAME=vncstart
  5. start()
  6. {
  7. su – $USER -c“vncserver :1″
  8. }
  9. stop()
  10. {
  11. su – $USER -c“vncserver -clean -kill :1″
  12. }
  13. case“$1″ in
  14. start)
  15. echo -n “Starting Xvnc: “
  16. start
  17. ;;
  18. stop)
  19. echo -n “Stopping Xvnc “
  20. stop
  21. ;;
  22. restart)
  23. echo -n “Restarting Xvnc “
  24. stop
  25. start
  26. ;;
  27. ****)
  28. echo “Usage: /etc/init.d/$NAME {start|stop|restart}”
  29. exit 1
  30. ;;
  31. esac
  32. exit 0

按ESC键退出编辑,输入:wq保存退出

赋予可执行权限
  1. chmod +x /etc/init.d/vncserver
  2. update-rc.d vncserver defaults

重启vps
  1. reboot

使用vnc客户端(推荐realvnc)登录 你的ip:5901
go2
四、安装wine
  1. apt-get install wine

五、下载安装沙丁鱼
  1. wget http://images.gotop.org/software/gotop.rar

此处压缩包是rar格式的,要安装rar解压软件
先安装file-roller
  1. apt-get install file-roller

再安装unrar
  1. apt-get install unrar

六、进入vnc桌面,开启沙丁鱼
进入root文件夹,右键gotop.rar解压文件
go5
进入gotop文件夹,右击gotop.exe。使用wine打开
go6
挂机效果:
go8
资源占用情况
go9

七、说明
由于没有安装中文编码,会有方框框,无碍,只要把挂机速度调下(如图,调为高速)。
在国外vps上挂沙丁鱼流量联盟,有时会掉线,大家12小时登录vnc看看,出现“get task failed, will try 5 min later”,就是掉线了,退出重开就好了。
国外不同vps挂机,分数有多有少,12小时可以挂机得分1000-5000。
你要是觉得教程有用,点此注册成为我的下线,来吧,我直截了当!

—————————-
当然,大家可以安装更省资源的lxde桌面,只要换下以下步骤
  1. apt-get install lxde

  2. 编辑
  3. vi /root/.vnc/xstartup

  4. 在最后一行加入(去掉 exec startxfce4&,“x”删除一个字母,“dd”删除当前一行)

  5. exec startlxde&


centOS 5编译安装flex 2.5.35
到http://flex.sourceforge.net/下载新的flex: flex-2.5.35.tar.gz
3、解压 
   tar zxf flex-2.5.35.tar.gz
4、进入flex-2.5.35目录
  cd  flex-2.5.35
5、检查configure
  ./configure
6、编译
   make
7、安装
   sudo make install

在CentOS 5.5 上安装Wine 1.6.2

[root@localhost ]# wget http://prdownloads.sourceforge.net/wine/wine-1.6.2.tar.bz2

[root@localhost ]#tar jxvf  wine-1.6.2.tar.bz2
// (解压tar.bz2文件,解压得到wine-1.6.2文件夹)
[root@localhost ]#cd /root/wine-1.6.2
//(切换目录到wine-1.6.2,软件解压的目录)
[root@localhost wine-1.6.2]#./configure –prefix=/opt/wine
//(配置,把文件存放在/opt/wine下,删除时,卸载软件时,只要删除这个文件就行了)
[root@localhost wine-1.6.2]#make (编译)
[root@localhost wine-1.6.2]#make install (安装)
经历漫长的编译过程即可使用Wine了。
安装包会自动安装依赖的软件包,安装一般不会有什么问题。完整完毕,接着就是配置了。
首先把 Windows/system32 下的 MFC42.dll、msxml.dll、msvcp60.dll、riched20.dll、riched32.dll 等 .dll 文件复制到 ~/.wine/drive_c/windows/system32 里,再输入命令 winecfg 运行 wine 配置命令。
其实一般不需要再做特别的配置,wine 就能工作了。
还有一点得注意,做完这些以后运行 Windows 程序时,SELinux 可能会弹出阻止窗口。我们用下面的方法禁用 SELinux:
用文本编辑器编辑 /etc/sysconfig/selinux 文件,把 SELINUX=enforcing 变为 SELINUX=disabled,关闭 SELinux,存盘退出,重启系统。
运行 Windows 程序的方法:
拷贝 Windows 程序(例如 Ueit32.exe)到 ContOS 下的某文件夹下,运行命令:
wine Ueit32.exe

CentOS 5.6 安装Wine与开启.Net支持

CentOS编译安装Wine

沒有留言:

張貼留言