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

Debian Wiki debian-www at lists.debian.org
Mon Dec 27 09:40:19 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=21&rev2=22

  }}}
  
  ==== Installation according to the books - without the Debian server package ====
+ 
+ The installation is expected to happen from within the BOINC source tree.
+ 
  {{{
  [ -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"
@@ -87, +90 @@

  
  ==== 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) :
+ If you use boinc-server package you need to use this command instead.
+ 
-  {{{
+ {{{
- [ -d "$installroot" ] sudo mkdir "$installroot"
+ [ -d "$installroot" ] || sudo mkdir "$installroot"
+ sudo PYTHONPATH=$PYTHONPATH:/usr/share/boinc-server/py/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 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"
- exit
  }}}
  
  === Continue - with or without the Debian BOINC server package ===
   1. Change files and directories permission: {{{
  cd "$installroot"/"$fileprojectname"
- sudo chown root:boincadm  -R 
+ sudo chown root:boincadm  -R .
- sudo chmod g+w  -R .
+ sudo chmod g+w -R .
  sudo chmod 02770 -R upload html/cache html/inc html/languages html/languages/compiled html/user_profile
  }}}
   1. Add project cronjob: {{{
  sudo crontab -e
  }}}
   Then add this line to editor appear after run command above {{{
-   0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/boinc/testproj/bin/start --cron
+ 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/boinc/testproj/bin/start --cron
+ }}}
+  Verify that the cron entry was indeed accepted {{{
+ sudo crontab -l
  }}}
   1. Config password for BOINC server administrative page: {{{
  sudo htpasswd -c html/ops/.htpasswd USERNAME
@@ -115, +121 @@

  sudo a2ensite  ${fileprojectname}.httpd.conf 
  sudo /etc/init.d/apache2 reload
  }}}
-  1. Start BOINC server {{{
+  1. Start BOINC server 
+  Please stay in that project directory and bluntly perform {{{
  sudo bin/xadd
  sudo bin/start
  }}}
+ 
+ This should show something like {{{
+ Entering ENABLED mode
+ Starting daemons
+   Starting daemon: feeder -d 3
+   Starting daemon: transitioner -d 3
+   Starting daemon: file_deleter -d 3
+ }}}
+ and after some academic minute the shell prompt should return. "top" should just show your regular BOINC work units (assuming that your server remains a good client until it is busy). A "ps aux | tail -20" should list something like
+ {{{
+ root      4551  0.4  2.1  46864 21776 ?        S    10:33   0:00 feeder -d 3
+ root      4553  0.0  0.2  35312  3004 ?        S    10:33   0:00 transitioner -d 3
+ root      4555  0.0  0.2  27336  2240 ?        S    10:33   0:00 file_deleter -d 3
+ }}}
+ Something lets me think that those processes should better run as "boincadm", but, well, let's be happy for now.
+ 
  
  == Add sample application ==
   1. Compile sample application : {{{



More information about the pkg-boinc-commits mailing list