Project

General

Profile

Configure sinedoncfg shared » History » Version 10

Amber Herold, 05/30/2012 12:12 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
&nbsp;
19
# /etc/myami
20 1 Anchi Cheng
21
22 7 Amber Herold
Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases.
23
24 1 Anchi Cheng
    * An example configuration file is available at:
25
      myami/sinedon/examples/sinedon.cfg
26
27
    * Configurations for all users should be placed at the following path:
28
      $PYTHONSITEPKG/sinedon/sinedon.cfg
29 9 Amber Herold
&nbsp;
30 8 Amber Herold
Note: You can discover the $PYTHONSITEPKG path by starting python:
31
<pre>
32
python
33
import sys
34
sys.path
35
</pre>
36
The first path to site-packages should hold the config file.
37 1 Anchi Cheng
38 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:
39 1 Anchi Cheng
<pre>
40
[global]
41
#host: your_database_host
42
host: localhost
43
user: usr_object
44
passwd:
45
46
[projectdata]
47
db: projectdb
48
49
[leginondata]
50
db: leginondb
51
</pre>
52 6 Amber Herold
53
*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.