Configure sinedoncfg » History » Version 10
Amber Herold, 05/18/2010 10:34 AM
1 | 2 | Amber Herold | h1. Configure sinedon.cfg |
---|---|---|---|
2 | 1 | Amber Herold | |
3 | 8 | Amber Herold | |
4 | 1 | Amber Herold | |
5 | 9 | Amber Herold | Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases. It can be configured at global or user level. |
6 | 1 | Amber Herold | |
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 | 10 | Amber Herold | * Modify sinedon.cfg to look like the following example. Set the host, db, user, and passwd to match the databases created during your Database Server setup. Note that the user here is the MySQL user Leginon uses to communicate with the database for all Leginon users. For an Appion or Leginon installation that uses Project database, set the following: |
14 | 1 | Amber Herold | <pre> |
15 | 5 | Neil Voss | [global] |
16 | 7 | Neil Voss | #host: your_database_host |
17 | host: localhost |
||
18 | 5 | Neil Voss | user: usr_object |
19 | passwd: |
||
20 | 1 | Amber Herold | |
21 | 5 | Neil Voss | [projectdata] |
22 | db: projectdb |
||
23 | 1 | Amber Herold | |
24 | 5 | Neil Voss | [leginondata] |
25 | db: leginondb |
||
26 | 4 | Neil Voss | |
27 | 5 | Neil Voss | [appiondata] |
28 | 6 | Neil Voss | db: dynamic |
29 | 1 | Amber Herold | </pre> |
30 | |||
31 | * If you would like to name your Project Proccessing databases something other than the default "ap[Id_Num]", |
||
32 | you will need to do the following: |
||
33 | 4 | Neil Voss | ** Go to your Leginon installation directory (typically /usr/lib/python2.4/site-packages/leginon/) |
34 | 1 | Amber Herold | ** Edit project.py. Change line 5 to: |
35 | <pre> |
||
36 | use_processingdb_table = True |
||
37 | </pre> |
||
38 | ** [Note] The module names in brackets are case sensitive and need to be exact. |
||
39 | The user name needs to match the name for which privileges have been granted on the `ap%` databases. |
||
40 | |||
41 | * 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. |
||
42 | <pre> |
||
43 | [robot2] |
||
44 | db: leginondb |
||
45 | </pre> |
||
46 | 2 | Amber Herold | |
47 | ______ |
||
48 | |||
49 | |||
50 | [[Explanation of Sample Names|< Explanation of Sample Names]] | [[Install External Packages|Install External Packages >]] |
||
51 | 3 | Amber Herold | |
52 | ______ |