Changes between Version 65 and Version 66 of ServerIntro
- Timestamp:
- Jul 1, 2012, 10:19:06 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ServerIntro
v65 v66 86 86 87 87 Both `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] 89 that 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 97 91 When you create a BOINC project using [wiki:MakeProject make_project], 98 92 the critical directories are owned by `boincadm` and have the set-GID bit set; … … 218 212 which is a very flexible mail-sending mechanism. To do this: 219 213 * 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). 222 215 * Set the following variables in your PROJECT/html/project/project.inc file 223 216 (substitute your own values): … … 271 264 }}} 272 265 In 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 all266 You can use this: 274 267 275 268 {{{ 276 269 {username} ALL=(ALL) ALL 277 270 }}} 278 == Cookbook for Debian 4.0 == #cookbook-debian40 279 271 == Cookbook for Debian 6.0 == 280 272 Please follow these recipes only for your basic orientation. 281 273 The Debian landscape has changed a lot over since Debian 4.0. … … 292 284 m4 293 285 make 294 autoconf 295 automake1.9 296 gcc-4.1 297 gcc 298 g++-4.1 286 dh-autoreconf 299 287 pkg-config 300 libtool301 288 subversion 302 289 vim … … 305 292 306 293 {{{ 307 apache2-mpm-prefork308 294 libapache2-mod-php5 309 mysql-client-5.0 310 mysql-server-5.0 295 mysql-server-5.1 311 296 php5-mysql 312 297 php5-cli 313 298 php5-gd 314 299 phpmyadmin 300 python 315 301 python-mysqldb 316 libmysql++-dev317 302 libssl-dev 318 303 }}} 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 304 packages needed for BOINC libraries (including graphics): 305 306 {{{ 330 307 freeglut3-dev 331 libsm-dev332 libice-dev333 308 libxmu-dev 334 309 libxi-dev 335 libx11-dev336 310 libjpeg62-dev 337 libgtk2.0-0 338 libgtk2.0-0-dev 339 }}} 311 }}} 312 packages needed for BOINC client and manager (in addition to libraries): [not finished yet!] 313 314 {{{ 315 libssl-dev 316 libcurl4-openssl-dev 317 libxss-dev 318 libnotify-dev 319 libxcb-atom1-dev 320 libsqlite3-dev 321 }}} 322 340 323 optional packages for a graphical desktop manager 341 324 … … 359 342 360 343 === 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. 344 The 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 346 When 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 348 Next 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 }}} 380 352 381 353 === Configuration of the MySQL server === #cookbook-mysql 382 If you're using KDE: open a new console window383 (’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 }}}390 354 Create a new MySQL database user account. 391 355 … … 398 362 Defining an empty password simplifies the installation, can be changed later. 399 363 364 You can also set this using the phpmyadmin interface available through !http://{server-IP}/phpmyadmin 365 400 366 === Download the BOINC source code === #cookbook-download-code 401 367 The latest development version can be obtained with: … … 429 395 $ cd ~/boinc 430 396 $ ./_autosetup 431 $ ./configure --disable-client 397 $ ./configure --disable-client --disable-manager 432 398 $ make 433 399 }}}