[Debian Wiki] Update of "BOINC/ServerGuide" by SteffenMoeller

Debian Wiki debian-www at lists.debian.org
Sun Dec 26 00:10:59 UTC 2010


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.

The "BOINC/ServerGuide" page has been changed by SteffenMoeller:
http://wiki.debian.org/BOINC/ServerGuide?action=diff&rev1=19&rev2=20

  
  == Create and config BOINC project ==
  
- The following needs to be performed for every project, with or without the Debian BOINC server package:
+ The following needs to be performed for every project, with or without the Debian BOINC server package. In the following we will work on a single BASH shell. This allows us to use mostly self-explanatory variables to help your local adaptation.
+ 
+ === Secret words ===
+ 
+ Please define the password to be used to receive write access to your BOINC database. And also specify the name of the project.
+ {{{
+ pw=MYSQLPASSWORDFORBOINCUSER
+ dbprojectname=boinctest
+ }}}
  
  === Create MySQL database for BOINC project ===
+ 
+ With the variables defined before, you can just copy and pasted the code below:
+ 
  {{{
- mysql -u root -p
- > CREATE DATABASE boincdb;
+ cat <<EOMYSQL | mysql -u root -p
+ CREATE DATABASE $dbprojectname;
- > CREATE USER 'boincadm'@'localhost' IDENTIFIED BY 'MYSQLPASSWORDFORBOINCUSER';
+ CREATE USER 'boincadm'@'localhost' IDENTIFIED BY '$pw';
- > GRANT ALL PRIVILEGES ON boincdb.* TO 'boincadm'@'localhost';
+ GRANT ALL PRIVILEGES ON $dbprojectname.* TO 'boincadm'@'localhost';
+ EOMYSQL
  }}}
  
  === Create project ===
  
  Please replace a.b.c.d with your full hostname or your server's IP address. If you only have dynamic IP addresses, then this is unfortunate, but investigate the service of dyndns.org to help out.
+ {{{
+ hosturl=http://a.b.c.d
+ fileprojectname=$dbprojectname
+ niceprojectname="BoincTestProject at Home"
+ installroot=/var/tmp/boinc
+ }}}
  
  ==== Installation according to the books - without the Debian server package ====
+ {{{
+ [ -d "$installroot" ] || sudo mkdir -p "$installroot"
+ sudo ./tools/make_project --url_base "$hosturl" --db_name "$dbprojectname" --db_user boincadm  --db_passwd "$pw" --drop_db_first  --project_root /var/www/boinc/$fileprojectname "$fileprojectname" "$niceprojectname"
- 
- sudo mkdir /var/boinc
- sudo ./tools/make_project --url_base http://a.b.c.d --db_name boincdb --db_user boincadm  --db_passwd "MYSQLPASSWORDFORBOINCUSER" --drop_db_first  --project_root /var/boinc/testproj testproj 'TestProject at Home'
- cd /var/boinc/testproj
  }}}
  
  ==== Installation with the Debian server package ====
  
   If you use boinc-server package you need to use these command instead(will be fix in next version of bonic-server package) :
   {{{
+ [ -d "$installroot" ] sudo mkdir "$installroot"
+ sudo PYTHONPATH=$PYTHONPATH:/usr/share/pyshared/Boinc /usr/share/boinc-server/tools/make_project --url_base "$hosturl" --db_name "$dbprojectname" --db_user boincadm  --db_passwd "$pw" --drop_db_first  --project_root "$installroot"/"$fileprojectname" --srcdir /usr/share/boinc-server/ "$fileprojectname" "$niceprojectname"
- sudo mkdir /var/boinc
- sudo bash
- export PYTHONPATH=$PYTHONPATH:/usr/share/python-support/boinc-server/Boinc
- /usr/share/boinc-server/tools/make_project --url_base http://a.b.c.d --db_name boincdb --db_user boincadm  --db_passwd "MYSQLPASSWORDFORBOINCUSER" --drop_db_first  --project_root /var/boinc/testproj --srcdir /usr/share/boinc-server/ testproj 'TestProject at Home'
  exit
- cd /var/boinc/testproj
  }}}
  
  === Continue - with or without the Debian BOINC server package ===
   1. Change files and directories permission: {{{
- cd /var/boinc/testproj
+ cd "$installroot"/"$fileprojectname"
  sudo chown root:boincadm  -R 
  sudo chmod g+w  -R .
  sudo chmod 02770 -R upload html/cache html/inc html/languages html/languages/compiled html/user_profile



More information about the pkg-boinc-commits mailing list