您的位置:首页 > 运维架构 > Linux

在deepin上跑BOINC的一点经验总结

2016-04-01 23:46 531 查看
      BOINC(Berkeley
Open Infrastructure for NetworkComputing,伯克利开放式网络计算平台)是目前主流的分布式计算平台之一,旨在为各研究者提供汇集全球各地大量个人电脑的强大运算能力。直至2008年1月25日,BOINC在全世界有约549,000台活跃的主机并平均提供约852TeraFLOPS
(TFLOPS)的运算能力。对志愿者来说,它提供了一个统一的客户端程序。

       我以前都是在windows系统下跑boinc的,现在使用deepin linux系统了。这几天捣鼓了一下boinc,把经验和大家分享一下。

       一开始我是在boinc官网上下载linux版本的,又是sh脚本又是路径问题,折腾了半天才发现,不需要手动下载,只要运行以下apt安装命令即可实现boinc的安装。

sudo apt-get install boinc

复制代码

          然后在命令行中运行boinc,就能把boinc后台调度程序运行起来。

boinc

复制代码
        

           boinc自带的管理程序boincmgr运行的时候出现问题,界面上的链接按钮是“灰色”的,因此失效无法使用。

boincmgr

复制代码

          查询中文总站官网(http://www.equn.com/wiki/BOINC:%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3)后发现,是由于环境变量的设置问题造成的:

If the web site buttons in the Manager don't work, make sure your $BROWSER environment variable is set.

如果 BOINC 界面上的链接按钮失效,请确认环境变量 $BROWSER 已经设置。

      查询加州大学柏克莱分校的论坛(http://boinc.berkeley.edu/dev/forum_thread.php?id=661)才找到了 $BROWSER 的设置方法。

I can solve that for you. In linux a series of environment variables are stored that relate to certain default attributes like HOSTNAME or LOCALE. One of these environment variables is called BROWSER and often it is not set by default.

You need to be root to do this.

edit the file /etc/profile with a convenient app like vi or nano and add this to the end,

BROWSER="<path/to/your/browser"

save and you're done. The simplest way for this to be read by BOINC is simply to reboot but you could try maybe export $BROWSER from the command line and just restart BOINC.

By way of example, I use mozilla and the mozilla binary's full path is /opt/mozilla/bin/mozilla so my extra line is

BROWSER="/opt/mozilla/bin/mozilla"

You can find the exact path using the whereis command,

whereis mozilla

You will also find the acroread package useful. In ArchLinux this is as simple as,

pacman -Sy acroread

but I'm sure SuSe/RH/FC/Debian have something similar

enjoy.

         从上面的回复内容看,我需要找到我的浏览器路径,将$BROWSER设置为我的浏览器路径。
          我的浏览器是google chrome,于是我找到了chrome的路径为:

/opt/google/chrome

     于是我在命令行输入以下命令,设置$BROWSER环境变量。

export BROWSER="/opt/google/chrome"

复制代码

           设置完成以后再次在命令行输入boincmgr运行boinc前台管理界面。此时已经可以对boinc进行设置了。boinc能够在deepin上正常运行了。

boincmgr

复制代码
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  deepin BOINC linux