2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2004-02-15 19:22:01 +00:00
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Projection creation cookbook");
|
|
|
|
echo "
|
|
|
|
<h2>Make skeletal project</h2>
|
|
|
|
<ul>
|
|
|
|
<li> Compile the BOINC software, say into HOME/boinc.
|
2004-06-11 00:04:51 +00:00
|
|
|
Make sure MySQL is configured and running.
|
2004-02-23 23:40:33 +00:00
|
|
|
<li> run HOME/boinc/tools/make_project
|
2004-02-15 19:22:01 +00:00
|
|
|
<li> paste text into httpd.conf
|
|
|
|
<li> insert cron job
|
|
|
|
<li> xadd project.xml
|
2004-06-11 00:04:51 +00:00
|
|
|
<li> Edit html/project/project.inc, changing the
|
2004-02-19 16:43:28 +00:00
|
|
|
master URL and copyright holder.
|
|
|
|
<li> Add .htaccess and .htpasswd files to html/ops.
|
2004-02-15 19:22:01 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
Visible result: the project web site is up.
|
2004-06-11 00:04:51 +00:00
|
|
|
The database 'platforms' table has several rows.
|
|
|
|
<p>
|
|
|
|
Troubleshooting:
|
|
|
|
check the Apache access and error logs.
|
2004-02-15 19:22:01 +00:00
|
|
|
|
|
|
|
<h2>Create an application version</h2>
|
|
|
|
<ul>
|
|
|
|
<li> Create a BOINC application executable
|
|
|
|
(if you're in a hurry, use the test application).
|
2004-03-15 20:40:59 +00:00
|
|
|
<li> Copy the executable to HOME/projects/PROJECTNAME/apps/APPNAME
|
2004-02-15 19:22:01 +00:00
|
|
|
<li> cd to HOME/projects/PROJECTNAME/bin
|
2004-02-23 23:40:33 +00:00
|
|
|
<li> run ./update_versions, type y or return.
|
|
|
|
<li> run ./stop && ./start
|
2004-02-15 19:22:01 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
Visible result: the web site's Applications page has an entry.
|
|
|
|
|
|
|
|
<h2>Create a work unit</h2>
|
|
|
|
<ul>
|
|
|
|
<li> Using a text editor, create a work unit template file
|
|
|
|
and a result template file.
|
2004-03-15 20:40:59 +00:00
|
|
|
<li> Run create_work
|
2004-06-11 00:04:51 +00:00
|
|
|
<li> Edit the configuration file to add
|
|
|
|
".htmlspecialchars("<daemon>")." records for
|
|
|
|
make_work,
|
|
|
|
feeder,
|
|
|
|
transitioner,
|
|
|
|
file_deleter,
|
2004-02-15 19:22:01 +00:00
|
|
|
the trivial validator,
|
|
|
|
and the trivial assimilator.
|
|
|
|
</ul>
|
|
|
|
|
2004-06-11 00:04:51 +00:00
|
|
|
Visible result: 'status' shows the above daemon processes running.
|
|
|
|
<p>
|
|
|
|
Troubleshooting: check the log files of all daemon processes.
|
2004-02-15 19:22:01 +00:00
|
|
|
|
|
|
|
<h2>Test the system</h2>
|
|
|
|
<ul>
|
2004-02-23 23:40:33 +00:00
|
|
|
<li> Create a client directory (on the same computer or different computer), say HOME/boinc_client.
|
2004-02-15 19:22:01 +00:00
|
|
|
Copy the core client there.
|
|
|
|
<li> Using the web interface, create an account on the project.
|
|
|
|
<li> Run the core client;
|
|
|
|
enter the project URL and the account ID.
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
Visible result: the client does a stream of work;
|
|
|
|
the web site shows credit accumulating.
|
|
|
|
|
2004-06-11 00:04:51 +00:00
|
|
|
Troubleshooting: check the log files of all daemon processes.
|
|
|
|
|
2004-02-15 19:22:01 +00:00
|
|
|
<h2>Develop back end components</h2>
|
|
|
|
<ul>
|
|
|
|
<li> Write a work generator.
|
|
|
|
<li> Write a validator.
|
|
|
|
<li> Write an assimilator.
|
|
|
|
<li> Edit the configuration file to use these programs
|
|
|
|
instead of the place-holder programs.
|
|
|
|
<li> Make sure everything works correctly.
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2004-02-19 16:43:28 +00:00
|
|
|
<h2>Extras</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li> Make the core client available from your site
|
|
|
|
<li> Add message board categories: see html/ops/create_forums.php
|
|
|
|
</ul>
|
2004-02-15 19:22:01 +00:00
|
|
|
|
|
|
|
";
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
?>
|