Configure sinedoncfg » History » Version 3
Amber Herold, 04/22/2010 01:48 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 | /your_download_area/Leginon-1.6-ALL/sinedon/examples/sinedon.cfg |
||
9 | |||
10 | * Configurations for all users should be placed at the following path: |
||
11 | [python-site-package-path]/sinedon/sinedon.cfg |
||
12 | |||
13 | * 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 | <pre> |
||
15 | [global] |
||
16 | host: your_database_host |
||
17 | user: usr_object |
||
18 | passwd: |
||
19 | |||
20 | [projectdata] |
||
21 | db: projectdb |
||
22 | |||
23 | [leginondata] |
||
24 | db: leginondb |
||
25 | </pre> |
||
26 | |||
27 | * If you would like to name your Project Proccessing databases something other than the default "ap[Id_Num]", |
||
28 | you will need to do the following: |
||
29 | ** Go to your Leginon installation directory (typically /usr/lib/python2.4/site-packages/Leginon/) |
||
30 | ** Edit project.py. Change line 5 to: |
||
31 | <pre> |
||
32 | use_processingdb_table = True |
||
33 | </pre> |
||
34 | ** Add the appionData module to sinedon.cfg, which you have already modified during the Leginon installation. |
||
35 | <pre> |
||
36 | [appionData] |
||
37 | user: usr_object |
||
38 | </pre> |
||
39 | ** [Note] The module names in brackets are case sensitive and need to be exact. |
||
40 | The user name needs to match the name for which privileges have been granted on the `ap%` databases. |
||
41 | |||
42 | * 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. |
||
43 | <pre> |
||
44 | [robot2] |
||
45 | db: leginondb |
||
46 | </pre> |
||
47 | 2 | Amber Herold | |
48 | ______ |
||
49 | |||
50 | |||
51 | [[Explanation of Sample Names|< Explanation of Sample Names]] | [[Install External Packages|Install External Packages >]] |
||
52 | 3 | Amber Herold | |
53 | ______ |