Project

General

Profile

Configure leginoncfg Shared » History » Version 18

Anchi Cheng, 06/06/2012 05:35 PM

1 1 Anchi Cheng
h1. Configure leginon.cfg
2
3 10 Amber Herold
For older versions of Appion and Leginon (pre-2.2), please use the following instructions:
4 9 Amber Herold
[[configure_leginoncfg_2_1|Instructions for Appion and Leginon versions prior to 2.2]]
5
6 2 Anchi Cheng
h2. The order in which Leginon/Appion looks for leginon.cfg
7
8
# individual user home directory
9 11 Amber Herold
# $PYTHONSITEPKG/leginon
10 8 Amber Herold
 
11 6 Amber Herold
Note: You can discover the $PYTHONSITEPKG path by starting python:
12
<pre>
13
python
14
import sys
15
sys.path
16
</pre>
17 1 Anchi Cheng
The first path to site-packages should hold the config file.
18 12 Amber Herold
&nbsp;
19 17 Anchi Cheng
# /etc/myami on Linux or a global configuration directory on C drive following standard on Windows
20 15 Anchi Cheng
21 18 Anchi Cheng
h2. Locate the search directories and the currently loaded cfg files by running the following python script in $PYTHONSITEPKG/leginon
22 14 Anchi Cheng
<pre>
23
configcheck.py
24
</pre>
25
26 6 Amber Herold
27 13 Amber Herold
h2. Configuration file template
28 2 Anchi Cheng
29 1 Anchi Cheng
A skeleton (default) configuration file is available:
30
<pre>
31 13 Amber Herold
/path/to/myami/leginon/leginin.cfg.template
32 1 Anchi Cheng
</pre>
33
34
h2. Create a global leginon.cfg
35
36 13 Amber Herold
Copy leginon.cfg.template to leginon.cfg.
37 1 Anchi Cheng
<pre>
38 13 Amber Herold
sudo cp -v /path/to/myami/leginon/leginin.cfg.template /etc/myami/leginon.cfg
39 1 Anchi Cheng
</pre>
40
41 5 Anchi Cheng
Edit the newly created file and add a directory for images. Make sure you have permission to save files at this location. See [[File Server Setup Considerations|File Server Setup Considerations]] for more details
42 4 Anchi Cheng
43 3 Anchi Cheng
You may put in a fake path on the microscope PC installation and ignore the error message at the start of Leginon if you follow our general rule of not saving any image directly from  the microscope pc,
44 1 Anchi Cheng
<pre>
45
[Images]
46
path: your_storage_disk_path/leginon
47
</pre>