Featured image of post 用闲置服务器跑BOINC

用闲置服务器跑BOINC

BOINC的安装

什么是BOINC?

​ 伯克利开放式网络计算平台(Berkeley Open Infrastructure for Network Computing)是目前主流的分布式计算平台之一,由加州大学伯克利分校电脑学系发展出的分布式计算系统。原本专为SETI@home项目而设计,目前纳入的领域包括数学、医学、天文学和气象学等。BOINC汇集全球各地志愿者的电脑或移动设备,提供运算能力给研究者。

如何安装BOINC?

  1. 下载
1
2
sudo apt-get install boinc-client  # Debian
sudo yum install boinc-client boinc-manager  # Redhat/CentOS

​ 具体可以参考:https://boinc.berkeley.edu/wiki/Installing_BOINC

  1. 允许远程连接

vim /etc/boinc-client/cc_config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<cc_config>
  <log_flags>
    <task>1</task>
    <file_xfer>1</file_xfer>
    <sched_ops>1</sched_ops>
  </log_flags>
  <options>
    <allow_remote_gui_rpc>1</allow_remote_gui_rpc>
  </options>
</cc_config>
  1. 设置密码

vim /etc/boinc-client/gui_rpc_auth.cfg

填写密码,如果不需要就留空

  1. 打开端口
  2. 测试BOINC

systemctl stop boinc-client

boinc

​ 如果有Config: GUI RPC allowed from any host就说明配置成功

  1. 使用进程守护启动BOINC systemctl start boinc-client

​ 如果要重启也能启动,可以systemctl enable boinc-client

  1. 连接服务器

​ 使用桌面端BOINC manager进行管理


参考:

https://boinc.berkeley.edu/

https://zh.wikipedia.org/wiki/BOINC

http://boinc.equn.com/

Licensed under CC BY-NC-SA 4.0