| 10 | == 自行安裝 == |
| 11 | |
| 12 | * 參考 [http://boinc.berkeley.edu/trac/wiki/ServerIntro#cookbook-debian40 Cookbook for Debian 4.0] |
| 13 | * BOINC Server 基本的套件需求 |
| 14 | {{{ |
| 15 | $ apt-get update |
| 16 | $ apt-get upgrade |
| 17 | $ 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 |
| 18 | }}} |
| 19 | * 建立 BOINC 管理者帳號 |
| 20 | {{{ |
| 21 | ~# adduser boincadm |
| 22 | Adding user `boincadm' ... |
| 23 | Adding new group `boincadm' (1001) ... |
| 24 | Adding new user `boincadm' (1001) with group `boincadm' ... |
| 25 | Creating home directory `/home/boincadm' ... |
| 26 | Copying files from `/etc/skel' ... |
| 27 | Enter new UNIX password: |
| 28 | Retype new UNIX password: |
| 29 | passwd: password updated successfully |
| 30 | Changing the user information for boincadm |
| 31 | Enter the new value, or press ENTER for the default |
| 32 | Full Name []: |
| 33 | Room Number []: |
| 34 | Work Phone []: |
| 35 | Home Phone []: |
| 36 | Other []: |
| 37 | Is the information correct? [y/N] y |
| 38 | }}} |
| 39 | * 修改 MySQL Server 預設 root 密碼 |
| 40 | {{{ |
| 41 | # mysqladmin -h localhost -u root password '新的 MySQL Root 密碼' |
| 42 | }}} |
| 43 | * 建立 BOINC SQL 管理者 boincadm 權限 |
| 44 | {{{ |
| 45 | $ mysql -h localhost -u root -p |
| 46 | > GRANT ALL ON *.* TO 'boincadm'@'localhost'; |
| 47 | > SET PASSWORD FOR 'boincadm'@'localhost'=''; |
| 48 | > quit |
| 49 | }}} |
| 50 | * |
| 51 | {{{ |
| 52 | $ cd ~ |
| 53 | $ svn co http://boinc.berkeley.edu/svn/trunk/boinc boinc_trunk |
| 54 | $ svn update |
| 55 | $ cd ~/boinc_trunk |
| 56 | $ ./_autosetup |
| 57 | $ ./configure --disable-client |
| 58 | $ make |
| 59 | }}} |
| 60 | |