= 架設 BOINC Server = == 下載 VMWare Image == 根據[http://boinc.berkeley.edu/trac/wiki/VirtualMachines 官方文件]的說明, 安裝 BONIC Server 最容易的方法是安裝[http://www.vmware.com/download/player/ VMWare player] (免費軟體/freeware)。目前有兩個 VMWare Image 可以下載: * [http://boincdl.ssl.berkeley.edu/dl/debian-40r0-i386-boinc.zip Berkeley BOINC 團隊提供的 VMWare Image - Debian Etch 4.0r0 32bit] * [http://boincdl.ssl.berkeley.edu/dl/ubuntu-server-7.04-i386-boinc.zip Berkeley BOINC 團隊提供的 VMWare Image - Ubuntu Feisty 7.04 32-bit] == 自行安裝 == * 參考 [http://boinc.berkeley.edu/trac/wiki/ServerIntro#cookbook-debian40 Cookbook for Debian 4.0] * BOINC Server 基本的套件需求 {{{ $ apt-get update $ apt-get upgrade $ apt-get install m4 make autoconf automake gcc g++ pkg-config libtool subversion vim apache2-mpm-prefork libapache2-mod-php5 mysql-server mysql-client-5.0 mysql-client-5.0 php5-mysql php5-cli php5-gd phpmyadmin python-mysqldb libmysql++-dev libssl-dev }}} * 建立 BOINC 管理者帳號 {{{ ~# adduser boincadm Adding user `boincadm' ... Adding new group `boincadm' (1001) ... Adding new user `boincadm' (1001) with group `boincadm' ... Creating home directory `/home/boincadm' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for boincadm Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [y/N] y }}} * 修改 MySQL Server 預設 root 密碼 {{{ # mysqladmin -h localhost -u root password '新的 MySQL Root 密碼' }}} * 建立 BOINC SQL 管理者 boincadm 權限 {{{ $ mysql -h localhost -u root -p > GRANT ALL ON *.* TO 'boincadm'@'localhost'; > SET PASSWORD FOR 'boincadm'@'localhost'=''; > quit }}} * 編譯 BOINC 原始檔 {{{ $ cd ~ $ svn co http://boinc.berkeley.edu/svn/trunk/boinc boinc_trunk $ svn update $ cd ~/boinc_trunk $ ./_autosetup $ ./configure --disable-client $ make }}} == 測試 BOINC Server == * 使用 [http://boincdl.ssl.berkeley.edu/dl/debian-40r0-i386-boinc.zip Berkeley BOINC 團隊提供的 VMWare Image - Debian Etch 4.0r0 32bit] * Linux 上如果遇到權限問題, 請確認解壓縮之後, vmx 檔案是否具備執行權限(Execution) * 狀況: 網路卡一直無法正常啟動, 故轉而使用自行製作的 vmware image. * 使用自製 Debian Etch 4.0r0 版本的 vmware image 並執行 [#自行安裝 自行安裝] 的步驟