Configure sinedoncfg » History » Version 7
Neil Voss, 05/12/2010 05:01 PM
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 | 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 | ______ |