Project

General

Profile

Configure sinedoncfg » History » Version 5

Neil Voss, 05/12/2010 10:29 AM

1 2 Amber Herold
h1. Configure sinedon.cfg
2 1 Amber Herold
3
*TODO: Consider moving this after we setup Mysql username.*
4
5
Sinedon is designed to be able to interact with multiple databases. It can be configured at global or user level.
6
7
    * An example configuration file is available at:
8 4 Neil Voss
      myami/sinedon/examples/sinedon.cfg
9 1 Amber Herold
10
    * Configurations for all users should be placed at the following path:
11 4 Neil Voss
      $PYTHONSITEPKG/sinedon/sinedon.cfg
12 1 Amber Herold
13 4 Neil Voss
    * Modify host, db, user, passwd to what is used. Note that the user here is the MySQL user Leginon uses to communicate with the database for all Leginon users. For Leginon that uses Project database, set the following:
14 1 Amber Herold
<pre>
15 5 Neil Voss
[global]
16
host: your_database_host
17
user: usr_object
18
passwd:
19 1 Amber Herold
20 5 Neil Voss
[projectdata]
21
db: projectdb
22 1 Amber Herold
23 5 Neil Voss
[leginondata]
24
db: leginondb
25 4 Neil Voss
26 5 Neil Voss
[appiondata]
27
db:
28 1 Amber Herold
</pre>
29
30
    * If you would like to name your Project Proccessing databases something other than the default "ap[Id_Num]",
31
      you will need to do the following:
32 4 Neil Voss
    ** Go to your Leginon installation directory (typically /usr/lib/python2.4/site-packages/leginon/)
33 1 Amber Herold
    ** Edit project.py. Change line 5 to:
34
<pre>
35
use_processingdb_table = True
36
</pre>
37
    ** [Note] The module names in brackets are case sensitive and need to be exact.
38
The user name needs to match the name for which privileges have been granted on the `ap%` databases.
39
40
    * Add database configuration if you intend to use grid-inserting robot. The Robot2 module uses the database to communicate to the robot. Applications that carries the name "Robot" requires this to be set. In general, using the same database as the general leginon database is fine.
41
<pre>
42
      [robot2]
43
      db: leginondb
44
</pre>
45 2 Amber Herold
46
______
47
48
49
[[Explanation of Sample Names|< Explanation of Sample Names]] | [[Install External Packages|Install External Packages >]]
50 3 Amber Herold
51
______