wiki:BOINC/DRBL-Live

Version 13 (modified by jazz, 16 years ago) (diff)

--

  • 下載 DRBL-Live
  • 啟動 DRBL LiveCD
  • 開啟 terminal 安裝 boinc-client , 然後啟動 boinc-client 到背景跑, 用 boinc_cmd 加入中心自己架的 BOINC 範例及 WCG
    user@debian:~$ sudo su -
    debian:~# apt-get update
    debian:~# apt-get install boinc-client
    debian:~# /etc/init.d/boinc-client start
    debian:~# boinc_cmd --project_attach http://140.110.240.195/bioinfo 565b90756d47438d6cddcf58913c09cd
    debian:~# boinc_cmd --project_attach http://www.worldcommunitygrid.org 8528e341841afe33648c55fd2ed5c17f
    
  • 點選桌面"啟動 DRBL"圖示或執行 drbl-live.sh
    debian:~# /opt/drbl/sbin/drbl-live.sh start
    
  • 如果預設要讓 boinc-client 的 service 在背景跑, 可以使用 drbl-client-service 把 boinc-client 設為預設啟動
    debian:~# /opt/drbl/sbin/drbl-client-service boinc-client on
    
  • 如果要手動啟動或關閉每一台 DRBL Client 的 BOINC Client 可以用 drbl-doit 指令
    debian:~# /opt/drbl/bin/drbl-doit /etc/init.d/boinc-client start
    debian:~# /opt/drbl/bin/drbl-doit /etc/init.d/boinc-client stop
    
  • 把所有 DRBL Client 打開, 用 PXE 開機 .... 理論上就已經會有可以執行 BOINC 的環境, 可以檢查以下幾個檔案. 並可使用 boinc_cmd 來查詢目前 BOINC Client 執行的狀態
    user@debian02:~$ ls /etc/init.d/boinc-client
    user@debian02:~$ ls /var/lib/boinc-client/account*
    user@debian02:~$ boinc_cmd --get_state
    
  • 為了讓每一台 DRBL Client 開機之後就開始跑 WCG 或其他 BOINC Application, 可以用 boinc_cmd 加入 --set_run_mode always 的參數, 來強制一完成 BOINC 登入, 取得程式就可以開始跑了.
    • /opt/drbl/sbin/drbl-live-boinc

      old new  
      3131  [ -n "$(echo $url | grep -E "^#")" ] && continue  # skip the comment lines
      3232  if [ -n "$url" -a -n "$auth" ]; then
      3333     echo "Attaching project $url..."
      34      boinc_cmd --project_attach $url $auth
       34     boinc_cmd --project_attach $url $auth --set_run_mode always
      3535  fi
      3636done < $BOINC_CONF

Attachments (1)

Download all attachments as: .zip