11 Aralık 2008 Perşembe

Ubuntu and BOINC Server

Hi! In this post we will compile latest stable BOINC server code on Ubuntu 8.10 (Intrepid Ibex) Desktop box.

Actually there is a cookbook for Boinc server installation on Debian 4.0 box so we can use directions in this cookbook, because Ubuntu is debian based. http://boinc.berkeley.edu/trac/wiki/ServerIntro

First of all we have to install following packages which are needed to compile boinc server code. You can easily install these packages by using Synaptic Package Manager.

m4
make
autoconf
automake
gcc
g++
pkg-config
libtool
subversion
vim

apache2-mpm-prefork
libapache2-mod-php5
mysql-client-5.0
mysql-server-5.0
php5-mysql
php5-cli
php5-gd
phpmyadmin
python-mysqldb
libmysql++-dev
libssl-dev

You should choose a root password for mysql and select apache2 for phpmyadmin when asked by Synaptic.

After installation of above packages you should create an user for boinc server. Open an terminal and run following commands to create boincadm user.
useradd -m -s /bin/bash boincadm
usermod -G boincadm www-data

And than we should create mysql user and grant permissions for boinc.
mysql -h localhost -u root -p
(Enter your mysql root password which you entered when using Synaptic)
GRANT ALL ON *.* TO 'boincadm'@'localhost';
SET PASSWORD FOR 'boincadm'@'localhost'='';
quit


Then switch to user boincadm by following code
su boincadm

Now, we should get boinc server source code from BOINC's svn source to boinc folder in your home directory (/home/boincadm/boinc). Run following commands to do this.
cd ~
svn co http://boinc.berkeley.edu/svn/branches/server_stable boinc

Above command may take some time depending on your internet connection speed.

Finally we are going to compile boinc server code. Run following commands respectively.

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

(Do not make install)

If you don't encounter any error this means you are ready to have a boinc server. Simply, we can create a boinc sample project, this is what we will discuss in next post.

Hiç yorum yok:

Konular

Matematik (5) Kod (4) Gündem (2) Bilgisayar (1) İnternet (1)