Friday, January 18, 2013

Install BOINC Server on Ubuntu

(BOINC Server on Ubuntu Desktop 12.04)

1. Install BOINC server dependencies:

sudo apt-get install subversion build-essential apache2 php5 \
     mysql-server php5-gd php5-cli php5-mysql python-mysqldb \
     libtool automake autoconf pkg-config libmysql++-dev libssl-dev

 

2. Create a user and a group for BOINC and add www-data to that group:

sudo addgroup  --system boincadm
sudo adduser www-data boincadm

 

3. Download BOINC source:

svn co http://boinc.berkeley.edu/svn/branches/server_stable boinc

 

4. Compile BOINC:

cd boinc; ./_autosetup; ./configure --disable-client; make

 

5. Setup a project: 

~/boinc$ sudo ./tools/make_project --url_base http://a.b.c.d --db_name boinctest --db_user root --db_passwd "pw" --drop_db_first --project_root /var/www/boinc/boinctest boinctest BoincTestProject@Home

The result should finish with something similar to the following:

Done creating project.  Please view
/var/www/boinc/boinctest/boinctest.readme
for important additional instructions.

So following the instructions.

 

6. Change file and directory permission:

/var/www/boinc/boinctest$ sudo chown root:boincadm  -R .
/var/www/boinc/boinctest$ sudo chmod g+w -R .
/var/www/boinc/boinctest$ sudo chmod 02770 -R upload html/cache html/inc html/languages html/languages/compiled html/user_profile

 

7. Test Web interfaces

http://a.b.c.d/boinctest/
http://a.b.c.d/boinctest_ops/

 

Source:

http://wiki.debian.org/BOINC/ServerGuide/Initialisation