在deepin上跑BOINC的一點經驗總結

      BOINC(Berkeley Open Infrastructure for NetworkComputing,伯克利開放式網絡計算平臺)是目前主流的分佈式計算平臺之一,旨在爲各研究者提供彙集全球各地大量個人電腦的強大運算能力。直至2008年1月25日,BOINC在全世界有約549,000臺活躍的主機並平均提供約852TeraFLOPS (TFLOPS)的運算能力。對志願者來說,它提供了一個統一的客戶端程序。


       我以前都是在windows系統下跑boinc的,現在使用deepin linux系統了。這幾天搗鼓了一下boinc,把經驗和大家分享一下。


       一開始我是在boinc官網上下載linux版本的,又是sh腳本又是路徑問題,折騰了半天才發現,不需要手動下載,只要運行以下apt安裝命令即可實現boinc的安裝。

  1. sudo apt-get install boinc

複製代碼




          然後在命令行中運行boinc,就能把boinc後臺調度程序運行起來。

  1. boinc

複製代碼

        

           boinc自帶的管理程序boincmgr運行的時候出現問題,界面上的鏈接按鈕是“灰色”的,因此失效無法使用。

  1. 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環境變量。

  1. export BROWSER="/opt/google/chrome"

複製代碼




           設置完成以後再次在命令行輸入boincmgr運行boinc前臺管理界面。此時已經可以對boinc進行設置了。boinc能夠在deepin上正常運行了。

  1. boincmgr

複製代碼


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章