12 | | * 參考 [http://boinc.berkeley.edu/trac/wiki/ServerIntro#cookbook-debian40 Cookbook for Debian 4.0] |
| 21 | === 前置作業: Based Xen Hypervisor === |
| 22 | |
| 23 | * 以下的步驟是在 Xen 的環境下完成, Xen 的安裝步驟請參考 [wiki:Xen_Installation Xen Installation How-To] |
| 24 | * '''前置作業''': 建立 BOINC Server Xen VM (Etch) |
| 25 | {{{ |
| 26 | 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.194 --gateway 140.110.240.254 --netmask 255.255.255.0 --mirror http://free.nchc.org.tw/debian |
| 27 | xen-server:~# xm create /etc/xen/boinc-server.cfg |
| 28 | xen-server:~# xm list |
| 29 | Name ID Mem(MiB) VCPUs State Time(s) |
| 30 | Domain-0 0 1878 4 r----- 1478.4 |
| 31 | bonic-server 1 128 1 -b---- 1035.7 |
| 32 | }}} |
| 33 | * 使用 root 帳號登入, 別忘了要設定密碼喔!! 否則用 xen-create-image 產生 VM 時請記得加 --passwd |
| 34 | {{{ |
| 35 | xen-server:~# xm console bonic-server |
| 36 | boinc-server login: root |
| 37 | boinc-server:~# passwd |
| 38 | }}} |
| 39 | |
| 40 | |
| 41 | === 安裝 BOINC Server 相關軟體 === |
| 42 | |
| 43 | * [參考文獻] [http://boinc.berkeley.edu/trac/wiki/ServerIntro#cookbook-debian40 Cookbook for Debian 4.0] |
| 44 | * |
37 | | # cd ~ |
38 | | # svn co http://boinc.berkeley.edu/svn/trunk/boinc boinc_trunk |
39 | | # cd ~/boinc_trunk |
40 | | ~/boinc_trunk# svn update |
41 | | ~/boinc_trunk# ./_autosetup |
42 | | ~/boinc_trunk# ./configure --disable-client --enable-unicode |
43 | | ~/boinc_trunk# make |
| 69 | boinc-server:~# svn co http://boinc.berkeley.edu/svn/trunk/boinc boinc_trunk |
| 70 | boinc-server:~# cd ~/boinc_trunk |
| 71 | boinc-server:~/boinc_trunk# svn update |
| 72 | boinc-server:~/boinc_trunk# ./_autosetup |
| 73 | boinc-server:~/boinc_trunk# ./configure --disable-client --enable-unicode |
| 74 | boinc-server:~/boinc_trunk# make |
48 | | # cd ~/boinc_trunk/tools |
49 | | ~/boinc_trunk/tools# ./make_project --url_base http://140.110.240.194/ --db_host localhost --db_user boincadm --project_root /var/www/boinc_projects --delete_prev_inst --drop_db_first --test_app bioinfo |
50 | | ~/boinc_trunk/tools# chown -R www-data:www-data /var/www/boinc_projects |
51 | | ~/boinc_trunk/tools# cd /var/www/boinc_projects |
52 | | /var/www/boinc_projects# ln -s bioinfo.httpd.conf /etc/apache2/sites-enabled/bioinfo |
53 | | /var/www/boinc_projects# apache2ctl -t |
54 | | /var/www/boinc_projects# apache2ctl restart |
55 | | /var/www/boinc_projects# cat bioinfo.cronjob >> /var/spool/cron/crontabs/root |
56 | | /var/www/boinc_projects# bin/xadd |
57 | | /var/www/boinc_projects# bin/update_versions |
58 | | /var/www/boinc_projects# bin/start |
59 | | /var/www/boinc_projects# bin/status |
| 79 | boinc-server:~# cd ~/boinc_trunk/tools |
| 80 | boinc-server:~/boinc_trunk/tools# ./make_project --url_base http://140.110.240.194/ --db_host localhost --db_user boincadm --project_root /var/www/boinc_projects --delete_prev_inst --drop_db_first --test_app bioinfo |
| 81 | boinc-server:~/boinc_trunk/tools# chown -R www-data:www-data /var/www/boinc_projects |
| 82 | boinc-server:~/boinc_trunk/tools# cd /var/www/boinc_projects |
| 83 | boinc-server:/var/www/boinc_projects# ln -s bioinfo.httpd.conf boinc-server:/etc/apache2/sites-enabled/bioinfo |
| 84 | boinc-server:/var/www/boinc_projects# apache2ctl -t |
| 85 | boinc-server:/var/www/boinc_projects# apache2ctl restart |
| 86 | boinc-server:/var/www/boinc_projects# cat bioinfo.cronjob >> /var/spool/cron/crontabs/root |
| 87 | boinc-server:/var/www/boinc_projects# bin/xadd |
| 88 | boinc-server:/var/www/boinc_projects# bin/update_versions |
| 89 | boinc-server:/var/www/boinc_projects# bin/start |
| 90 | boinc-server:/var/www/boinc_projects# bin/status |