Changes between Version 26 and Version 27 of BOINC/Server
- Timestamp:
- Oct 15, 2008, 3:45:13 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BOINC/Server
v26 v27 25 25 * '''前置作業''': 建立 BOINC Server Xen VM (Etch) 26 26 {{{ 27 xen-server:~# xen-create-image -dir /home/xen --dist etch --debootstrap --fs reiserfs --accounts --kernel /boot/vmlinuz-2.6.18-6-xen-vserver-amd64 --initrd /boot/initrd.img-2.6.18-6-xen-vserver-amd64 --hostname boinc-server --ip 140.110. 240.195 --gateway 140.110.240.254--netmask 255.255.255.0 --mirror http://free.nchc.org.tw/debian27 xen-server:~# xen-create-image -dir /home/xen --dist etch --debootstrap --fs reiserfs --accounts --kernel /boot/vmlinuz-2.6.18-6-xen-vserver-amd64 --initrd /boot/initrd.img-2.6.18-6-xen-vserver-amd64 --hostname boinc-server --ip 140.110.X.X --gateway 140.110.X.X --netmask 255.255.255.0 --mirror http://free.nchc.org.tw/debian 28 28 xen-server:~# xm create /etc/xen/boinc-server.cfg 29 29 xen-server:~# xm list … … 80 80 {{{ 81 81 boinc-server:~# cd ~/boinc_trunk/tools 82 boinc-server:~/boinc_trunk/tools# ./make_project --url_base http://140.110. 240.195/ --db_host localhost --db_user boincadm --project_root /var/www/boinc_projects --delete_prev_inst --drop_db_first --test_app bioinfo82 boinc-server:~/boinc_trunk/tools# ./make_project --url_base http://140.110.X.X/ --db_host localhost --db_user boincadm --project_root /var/www/boinc_projects --delete_prev_inst --drop_db_first --test_app bioinfo 83 83 boinc-server:~/boinc_trunk/tools# chown -R www-data:www-data /var/www/boinc_projects 84 84 boinc-server:~/boinc_trunk/tools# cd /var/www/boinc_projects … … 215 215 }}} 216 216 * 檢視 BOINC Project 範例 217 * 專案計畫首頁 - http://140.110. 240.195/bioinfo218 * 專案管理首頁 - http://140.110. 240.195/bioinfo_ops/217 * 專案計畫首頁 - http://140.110.X.X/bioinfo 218 * 專案管理首頁 - http://140.110.X.X/bioinfo_ops/ 219 219 220 220 == 測試 BOINC Project 範例 == … … 224 224 boinc-client:~# apt-get install boinc-client 225 225 }}} 226 * STEP 2: 其次是前往 http://140.110. 240.195/bioinfo/create_account_form.php 註冊帳號226 * STEP 2: 其次是前往 http://140.110.X.X/bioinfo/create_account_form.php 註冊帳號 227 227 * 取得 Account key , 例如: 8346cd95017b110ee2ecd88ed7734981 228 * [備註] 相同的資訊可以登入後, 在 http://140.110. 240.195/bioinfo/home.php 取得228 * [備註] 相同的資訊可以登入後, 在 http://140.110.X.X/bioinfo/home.php 取得 229 229 * 亦可使用命令列取得 Account key 230 230 {{{ 231 boinc-client:~# boinc_cmd --create_account http://140.110. 240.195/bioinfo ${YOUR_EMAIL} "${YOUR_PASSWORD}" ${YOUR_ID}231 boinc-client:~# boinc_cmd --create_account http://140.110.X.X/bioinfo ${YOUR_EMAIL} "${YOUR_PASSWORD}" ${YOUR_ID} 232 232 status: Success 233 233 poll status: operation in progress … … 238 238 * [方法一] 直接執行 boinc 239 239 {{{ 240 boinc-client:~# boinc -attach_project http://140.110. 240.195/bioinfo 8346cd95017b110ee2ecd88ed7734981 &240 boinc-client:~# boinc -attach_project http://140.110.X.X/bioinfo 8346cd95017b110ee2ecd88ed7734981 & 241 241 ########################### 說明 ######################################### 242 242 boinc-server:~# boinc -attach_project ${專案網址} ${線上申請到的_Account_key} & … … 246 246 boinc-client:~# /etc/init.d/boinc-client start 247 247 ##### 加入專案 ##### 248 boinc-client:~# boinc_cmd --project_attach http://140.110. 240.195/bioinfo 8346cd95017b110ee2ecd88ed7734981248 boinc-client:~# boinc_cmd --project_attach http://140.110.X.X/bioinfo 8346cd95017b110ee2ecd88ed7734981 249 249 ##### 取得狀態 ##### 250 250 boinc-client:~# boinc_cmd --get_state 251 251 ##### 離開專案 ##### 252 boinc-client:~# boinc_cmd --project http://140.110. 240.195/bioinfo detach252 boinc-client:~# boinc_cmd --project http://140.110.X.X/bioinfo detach 253 253 }}} 254 254