Configure sinedoncfg shared » History » Version 11
Amber Herold, 05/30/2012 12:16 PM
1 | 1 | Anchi Cheng | h1. Configure sinedon.cfg |
---|---|---|---|
2 | |||
3 | 10 | Amber Herold | For older versions of Appion and Leginon (pre-2.2), please use the following instructions: |
4 | [[configure_sinedoncfg_2_1|Instructions for Appion and Leginon versions prior to 2.2]] |
||
5 | |||
6 | h2. The order in which Leginon/Appion looks for sinedon.cfg |
||
7 | |||
8 | # individual user home directory |
||
9 | # $PYTHONSITEPKG/sinedon |
||
10 | |
||
11 | Note: You can discover the $PYTHONSITEPKG path by starting python: |
||
12 | <pre> |
||
13 | python |
||
14 | import sys |
||
15 | sys.path |
||
16 | </pre> |
||
17 | The first path to site-packages should hold the config file. |
||
18 | |
||
19 | # /etc/myami |
||
20 | 1 | Anchi Cheng | |
21 | 11 | Amber Herold | h2. Create a sinedon.cfg for all users |
22 | 1 | Anchi Cheng | |
23 | 11 | Amber Herold | |
24 | 7 | Amber Herold | Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases. |
25 | |||
26 | 1 | Anchi Cheng | * An example configuration file is available at: |
27 | myami/sinedon/examples/sinedon.cfg |
||
28 | 8 | Amber Herold | |
29 | * Configurations for all users should be placed at the following path: |
||
30 | 11 | Amber Herold | /etc/myami/sinedon.cfg |
31 | 1 | Anchi Cheng | |
32 | 5 | Anchi Cheng | * Modify sinedon.cfg to look like the following example. Set the host, [[Explanation of Sample Names|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: |
33 | 1 | Anchi Cheng | <pre> |
34 | [global] |
||
35 | #host: your_database_host |
||
36 | host: localhost |
||
37 | user: usr_object |
||
38 | passwd: |
||
39 | |||
40 | [projectdata] |
||
41 | db: projectdb |
||
42 | |||
43 | [leginondata] |
||
44 | db: leginondb |
||
45 | </pre> |
||
46 | 6 | Amber Herold | |
47 | *Note:* If you are a developer, and you need to use sinedon.cfg settings that are different from the global settings, you may create your own sinedon.cfg file and place it in your home directory. This version will override the global version located in the site packages directory. |