Project

General

Profile

Configure leginoncfg Shared » History » Version 11

Amber Herold, 05/30/2012 11:56 AM

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 11 Amber Herold
# /etc/myami
19 6 Amber Herold
20 2 Anchi Cheng
h2. configuration file template
21
22 1 Anchi Cheng
A skeleton (default) configuration file is available:
23
<pre>
24
$PYTHONSITEPKG/leginon/config/default.cfg
25
</pre>
26
where $PYTHONSITEPKG is your python site-packages directory
27
28 2 Anchi Cheng
h2. Create a global leginon.cfg
29 1 Anchi Cheng
30
Copy default.cfg to leginon.cfg.
31
<pre>
32
sudo cp -v $PYTHONSITEPKG/leginon/config/default.cfg $PYTHONSITEPKG/leginon/config/leginon.cfg
33
</pre>
34
35 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
36 4 Anchi Cheng
37 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,
38 1 Anchi Cheng
<pre>
39
[Images]
40
path: your_storage_disk_path/leginon
41
</pre>