#/bin/bash | |
# Author : laomo | |
# Donate Address : https://ripple.com//send?to=rQKFznLaiyT55YXSS33fE6NgTjKbrnN4gT | |
sudo apt-get update | |
sudo apt-get install libxss1 libstdc++5 ia32-libs freeglut3 | |
#optional(for see the tasks) | |
sudo apt-get install htop | |
wget http://boinc.berkeley.edu/dl/boinc_7.2.33_x86_64-pc-linux-gnu.sh | |
chmod +x boinc_7.2.33_x86_64-pc-linux-gnu.sh | |
./boinc_7.2.33_x86_64-pc-linux-gnu.sh | |
cd BOINC | |
./boinc --daemon | |
wait | |
#use yours accout_key replace the accout_key | |
./boinccmd --project_attach http://www.worldcommunitygrid.org/ 13d806d0565d9df344a75f981b9fe005 | |
wait | |
./boinccmd --project http://www.worldcommunitygrid.org/ update | |
#startup | |
sudo echo "cd $PWD && ./boinc --daemon" > /etc/init.d/boinc-startup | |
sudo chmod +x /etc/init.d/boinc-startup | |
sudo update-rc.d boinc-startup defaults 99 |
wget https://gist.github.com/laomo/7982980/raw/boinc_for_wcg.sh | |
chmod +x boinc_for_wcg.sh | |
./boinc_for_wcg.sh | |
#已添加开机启动功能 |
![]() |
1
Livid MOD 你之前是 Gravatar 么?
|
![]() |
3
109109 2014-01-22 12:04:23 +08:00
|
4
yHT1OQRX57br2Oye 2014-01-22 13:52:38 +08:00
牛逼!
|
![]() |
5
dorentus 2014-01-22 13:56:08 +08:00
既然用 apt 了,那直接 apt-get install boinc-client 不是更方便……
|
![]() |
6
laomo OP @dorentus http://www.v2ex.com/t/91056#reply33 可以看这里。
这个脚本其实是那时候就写了的,只是后来又不完善了下。 而且我现在都更习惯boinc安装在这个目录下边,而不是系统里~~个人喜好 |
![]() |
7
qiuai 2014-01-22 14:52:58 +08:00
accout_key 从哪里找...
|
![]() |
8
dreasky 2014-01-22 14:58:17 +08:00
能开机自动运行么
|
![]() |
9
dorentus 2014-01-22 15:02:21 +08:00
@laomo 那倒也是,自定义目录是感觉比放系统目录里面好一些……
@qiuai https://secure.worldcommunitygrid.org/ms/viewMyProfile.do WCG 的站点内链接组织得太混乱了,每次找这个页面都很难找到…… 大致来说,先点右上角的「Settings」进到「设备管理器」页面,然后左侧栏导航里面会有一个「我的概要文件」的链接,点击它就能看到账户的名字、密钥等信息。 |
![]() |
11
laomo OP |
![]() |
12
qiuai 2014-01-22 15:10:53 +08:00
centos要哭了...咋装libxssl啊..
|
![]() |
13
qiuai 2014-01-22 15:11:57 +08:00
@laomo =.=...我还以为只是改了下key成了输入的......sorry....另...怎么解决Centos下的libxssl...
|
![]() |
14
laomo OP |
![]() |
16
dreasky 2014-01-22 16:04:06 +08:00
@laomo linux开机不一定直接执行/etc/init.d/下的脚本的哦,我的ubuntu vps上还需要执行
update-rc.d boinc-startup defaults 99 |
![]() |
17
zoowii 2014-01-22 16:27:36 +08:00
建议把你自己的ripple地址改成一个特殊变量,没有修改会报错,要不估计真会有人搜到就用了
|
18
paolongtao 2014-01-22 16:36:38 +08:00
@dorentus 对头,安装就一条命令搞定
|
![]() |
19
0x61 2014-01-23 12:07:02 +08:00
use /root/boinc/BOINC/run_manager to start BOINC
./boinc.sh: line 26: ./boinc: No such file or directory ./boinc.sh: line 29: ./boinccmd: No such file or directory ./boinc.sh: line 31: ./boinccmd: No such file or directory ./boinc.sh: line 33: ./boinccmd: No such file or directory ./boinc.sh: line 35: ./boinccmd: No such file or directory check the log if yourkey attach it done 这个咋回事? |
![]() |
21
109109 2014-01-23 12:50:14 +08:00
@0x61
boinc_7.2.34_x86_64-pc-linux-gnu.sh 此程序应该只适用于系统是64位的 Ubuntu 12.04 运行不能则是缺少库,可降低版本看看 http://boinc.berkeley.edu/download_all.php/ 如果是 centos6 的话,降低版本可运行 wget http://mirror01.idc.hinet.net/EPEL/6/x86_64/boinc-client-6.10.45-1.r21128svn.el6.x86_64.rpm rpm -ivh boinc-client-6.10.45-1.r21128svn.el6.x86_64.rpm |
![]() |
23
109109 2014-01-23 13:48:33 +08:00
@0x61
./boinccmd --get_messages 查看最后显示的信息,一开始应该是在下载中 如果等几分钟仍无显示, 重复 ./boinccmd --project_attach http://www.worldcommunitygrid.org/ yourskey ./boinccmd --project http://www.worldcommunitygrid.org/ update 更新任务 |
![]() |
24
Rubricate 2014-01-23 23:15:15 +08:00
收益越来越少了···哎
|