Changes between Version 65 and Version 66 of ServerIntro


Ignore:
Timestamp:
Jul 1, 2012, 10:19:06 AM (10 years ago)
Author:
Christian Beer
Comment:

updated cookbook for debian6

Legend:

Unmodified
Added
Removed
Modified
  • ServerIntro

    v65 v66  
    8686
    8787Both `boincadm` and `apache` should have
    88 [http://www.slackwiki.org/Permissions_and_Umasks umasks]
    89 that allow group read and write.
    90 
    91 {{{
    92 #!comment That umask thing needs to be clarified;
    93 I had to go see an old version of GroupPermissions to see how umasks were set.
    94 Umasks are "inverted", that makes them hard to understand
    95 (they mark permissions to UNset).
    96 }}}
     88[http://en.wikipedia.org/wiki/Umask umasks]
     89that allow group read and write. The place to set this depends on what distribution is used. Normaly you can use a umask of 0002 or 0007.
     90
    9791When you create a BOINC project using [wiki:MakeProject make_project],
    9892the critical directories are owned by `boincadm` and have the set-GID bit set;
     
    218212  which is a very flexible mail-sending mechanism. To do this:
    219213   * Download PHPMailer and put it under PROJECT/html/inc/phpmailer
    220      (i.e. the files class.smtp.php and class.phpmailer.php should be
    221          in that directory).
     214     (i.e. the files class.smtp.php and class.phpmailer.php should be in that directory).
    222215   * Set the following variables in your PROJECT/html/project/project.inc file
    223216     (substitute your own values):
     
    271264}}}
    272265In this file you have to add another line after the line for notroot.
    273 You can use this:When running Wheezy or later, you find all
     266You can use this:
    274267
    275268{{{
    276269{username} ALL=(ALL) ALL
    277270}}}
    278 == Cookbook for Debian 4.0 == #cookbook-debian40
    279 
     271== Cookbook for Debian 6.0 ==
    280272Please follow these recipes only for your basic orientation.
    281273The Debian landscape has changed a lot over since Debian 4.0.
     
    292284m4
    293285make
    294 autoconf
    295 automake1.9
    296 gcc-4.1
    297 gcc
    298 g++-4.1
     286dh-autoreconf
    299287pkg-config
    300 libtool
    301288subversion
    302289vim
     
    305292
    306293{{{
    307 apache2-mpm-prefork
    308294libapache2-mod-php5
    309 mysql-client-5.0
    310 mysql-server-5.0
     295mysql-server-5.1
    311296php5-mysql
    312297php5-cli
    313298php5-gd
    314299phpmyadmin
     300python
    315301python-mysqldb
    316 libmysql++-dev
    317302libssl-dev
    318303}}}
    319 packages needed for BOINC client:
    320 
    321 {{{
    322 libssl-dev
    323 libglut3-dev
    324 glutg3-dev
    325 libglui-dev
    326 libglitz-glx1-dev
    327 libsdl1.2-dev
    328 libcurl3-dev
    329 freeglut3
     304packages needed for BOINC libraries (including graphics):
     305
     306{{{
    330307freeglut3-dev
    331 libsm-dev
    332 libice-dev
    333308libxmu-dev
    334309libxi-dev
    335 libx11-dev
    336310libjpeg62-dev
    337 libgtk2.0-0
    338 libgtk2.0-0-dev
    339 }}}
     311}}}
     312packages needed for BOINC client and manager (in addition to libraries): [not finished yet!]
     313
     314{{{
     315libssl-dev
     316libcurl4-openssl-dev
     317libxss-dev
     318libnotify-dev
     319libxcb-atom1-dev
     320libsqlite3-dev
     321}}}
     322
    340323optional packages for a graphical desktop manager
    341324
     
    359342
    360343=== Create a new BOINC user account === #cookbook-useraccount
    361 Login as user ‘notroot’.
    362 
    363 '''With KDE:'''
    364 
    365  *  Go to ‘K-Menu’ -> ‘Settings’ -> ‘System Administration’ -> ‘User Management’,
    366    claim administrative privileges
    367 
    368  *  Create a new user, for example: boincadm
    369 
    370  *  After that go to the ‘Groups’ tab and add the user ‘www-data’
    371   to the group ‘boincadm’.
    372 
    373 '''Without a Graphical Desktop Manager:'''
    374 
    375 {{{
    376 $ useradd -m -s /bin/bash boincadm
    377 $ usermod -G boincadm www-data
    378 }}}
    379 Logout and login again as user boincadm if this is done.
     344The best way to create the boinc user is during installation when you are asked for name and password of the main user. Enter 'boincadm', or a name of your choice, as login name. In this cookbook I will refer to this useraccount as 'boincadm'.
     345
     346When installation is finished please login as the user created during installation. If you have installed a graphical desktop manager please open a text console (Konsole or xterm).
     347
     348Next step is to add the 'www-data' user (apache webserver) to the group of the newly created user:
     349{{{
     350$ usermod -G -a boincadm www-data
     351}}}
    380352
    381353=== Configuration of the MySQL server === #cookbook-mysql
    382 If you're using KDE: open a new console window
    383 (’K-menu’ -> ‘Debian’ -> ‘XShells’ -> ‘Konsole’).
    384 
    385 Define a new MySQL root password.
    386 
    387 {{{
    388 $ mysqladmin -h localhost -u root password mysqlrootpw {or own}
    389 }}}
    390354Create a new MySQL database user account.
    391355
     
    398362Defining an empty password simplifies the installation, can be changed later.
    399363
     364You can also set this using the phpmyadmin interface available through !http://{server-IP}/phpmyadmin
     365
    400366=== Download the BOINC source code === #cookbook-download-code
    401367The latest development version can be obtained with:
     
    429395$ cd ~/boinc
    430396$ ./_autosetup
    431 $ ./configure --disable-client
     397$ ./configure --disable-client --disable-manager
    432398$ make
    433399}}}