Project

General

Profile

Installation on the microscope computer » History » Version 55

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

1 11 Anchi Cheng
h1. Installation on the microscope computer
2 1 Amber Herold
3 54 Anchi Cheng
[[Installation on the microscope compute 2.1]]
4
5 11 Anchi Cheng
Only processing-side of Leginon system is needed
6 1 Amber Herold
7 21 Anchi Cheng
h1. Package requirement
8 1 Amber Herold
9 21 Anchi Cheng
h2.  Python and Support Packages (Note that python 2.5 must be used):
10 1 Amber Herold
11 24 Jim Pulokas
This list does not include the python XML module because it is included in the python package for Windows.  You should generally be able to use the most recent versions of these packages that are available from their respective web sites.  Just be sure to always get the version that is compatible with Python 2.5.  If you are having trouble with the most recent version, try to use the specific versions listed here:
12 11 Anchi Cheng
13 38 Anchi Cheng
|Python 2.5*| "http://www.python.org":http://www.python.org||
14
|Python for Windows extension (pywin32)| "http://sourceforge.net/projects/pywin32/":http://sourceforge.net/projects/pywin32/||
15
|wxPython 2.5.2.8 or newer| "http://www.wxpython.org":http://www.wxpython.org||
16 39 Anchi Cheng
|MySQL Python client 1.2 or newer| "http://sourceforge.net/projects/mysql-python":http://sourceforge.net/projects/mysql-python|1.2.3 doesn't have window installer, yet, use 1.2.2|
17 38 Anchi Cheng
|Python Imaging Library (PIL) 1.1.4 or newer| "http://www.pythonware.com/products/pil/":http://www.pythonware.com/products/pil/||
18
|NumPy 1.0b5 (tested, others may work)| "http://www.scipy.org":http://www.scipy.org||
19
|SciPy 0.5.1 or newer| "http://www.scipy.org":http://www.scipy.org||
20 1 Amber Herold
21 12 Anchi Cheng
*Python 2.5 is the only python version that we have compiled numExtension. libCV and comarray in. Therefore no other python version works for now.
22
23 21 Anchi Cheng
h2. SVN client used for check out from our repository
24 12 Anchi Cheng
25
This required for following this instruction. We have used Tortois SVN client.  Alternatively, you may copy the required NRAMM source files from another computer.
26
27
|_.Name:|_.Download site:|
28 11 Anchi Cheng
|Tortoise SVN client| "http://tortoisesvn.tigris.org":http://tortoisesvn.tigris.org|
29
30 1 Amber Herold
31 21 Anchi Cheng
h2.  Required supporting programs for the CCD camera from camera makers
32 1 Amber Herold
33 25 Jim Pulokas
Install and register the following programs for CCD cameras from the two makes.  Most likely, you already have these installed when the camera and TEM software was installed:
34 1 Amber Herold
35
|_.Camera Make:|_.File:|
36
| Gatan|TecnaiCCD.dll|
37 11 Anchi Cheng
| Tietz|CAMC4.exe*|
38 1 Amber Herold
39 11 Anchi Cheng
*Note:* We have experienced slowness of the CAMC4.exe comes with later version Tecnai TUI/TIA. Replacing it with an earlier version of CAMC4.exe resolved the problem
40 1 Amber Herold
41 21 Anchi Cheng
h2.  Supporting programs for film exposure
42 11 Anchi Cheng
43 12 Anchi Cheng
Install the following if you need film exposure on FEI Tecnai TEM through Leginon, available through FEI. Please contact Max Otten: mto@feico.com and request for adaexp.exe that works with your version of Tecnai user interface program.
44 11 Anchi Cheng
45
|_.Name:|_.File:|
46 1 Amber Herold
| exposure adaptor|adaexp.exe|
47
48 21 Anchi Cheng
h2. Packages required from NRAMM
49 11 Anchi Cheng
50 25 Jim Pulokas
h3. These are the sub-packages of myami that you will install with the python installer.
51 11 Anchi Cheng
52 1 Amber Herold
|_.Name:|_.Purpose:|
53 11 Anchi Cheng
| leginon|modular TEM image acquisition|
54
| pyami|general functions|
55
| sinedon|Leginon/database interaction|
56
| pyscope|microscope control and monitoring|
57
| imageviewer|image viewing for tomography|
58
59 47 Anchi Cheng
*For FEI Eagle Camera or Gatan Camera that uses TIA, comarray package needs to be install with python
60 46 Jim Pulokas
*[[Special Instructions for FEI Eagle Camera]]
61 1 Amber Herold
62 25 Jim Pulokas
Because numextension, comarray and libcv would require extra compilers if you build them yourself, we have created Windows installers for them for python 2.5 and made them available at http://emg.nysbc.org/projects/leginon/files.
63 11 Anchi Cheng
64 43 Anchi Cheng
h3. These are the Leginon v2.0 python 2.5 compiled packages installed through python installer on Windows. Leginon v2.1 uses the same files.
65 1 Amber Herold
66 17 Anchi Cheng
|_.Downloadfile Name|_.Purpose:|
67
|numextension-2.0.0.win32-py2.5.exe|c extension for numerical processing|
68 45 Jim Pulokas
|comarray-2.0.0.win32-py2.5.exe|com module output conversion to array|
69 17 Anchi Cheng
|libCV-0.2.win32-py2.5.exe|small c library of algorithm from computer vision field|
70 11 Anchi Cheng
71 21 Anchi Cheng
h1. Installation
72 11 Anchi Cheng
73 49 Anchi Cheng
h2. 1. Register TecnaiCCD.dll, CAMC4.exe (For Tietz camera), and adaexep.exe (For film exposure)
74 19 Anchi Cheng
75 20 Anchi Cheng
*  For example, from the command prompt:
76
<pre>adaexp.exe /regserver</pre>
77 18 Anchi Cheng
78 26 Jim Pulokas
h2. Install Python and supporting packages with their installers
79 11 Anchi Cheng
80 26 Jim Pulokas
Excute the installer files and follow the instructions.
81 11 Anchi Cheng
82 12 Anchi Cheng
83 26 Jim Pulokas
h2. 2. Install the Windows Installer Files from Leginon website http://emg.nysbc.org/projects/leginon/files
84 1 Amber Herold
85 49 Anchi Cheng
Execute the installer files and follow the instructions. *Do not execute comarray-2.0.0.win32-py2.5.3x3 if your camera uses TIA*.  See earlier section above.
86 1 Amber Herold
87 26 Jim Pulokas
h2. 3. Check out SVN Source Files from the repository
88 1 Amber Herold
89 11 Anchi Cheng
Use your mouse to do the following
90 48 Anchi Cheng
* Create Leginon2.1 directory somewhere at your convenience
91 1 Amber Herold
92 48 Anchi Cheng
* Change directory into Leginon2.1
93 1 Amber Herold
94
* Right-click the mouse botton in this directory window and select Tortoise svn
95
Checkout in the menu:
96
 !http://emg.nysbc.org/software/leginon/images/images/svnmenu.png!
97 11 Anchi Cheng
98 1 Amber Herold
99 48 Anchi Cheng
* Set up svn checkout window like this to check out from http://emg.nysbc.org/svn/myami/branches/myami-2.1 to Leginon2.1
100 11 Anchi Cheng
 !http://emg.nysbc.org/software/leginon/images/images/svnco.png!
101
102
103 27 Jim Pulokas
h2. 4. Install the packages you downloaded from NRAMM svn repository
104 1 Amber Herold
105 11 Anchi Cheng
* Start a command line Window from Start Menu
106 1 Amber Herold
107 12 Anchi Cheng
* Install the package in each folder with commands such as
108 48 Anchi Cheng
<pre>cd Your_Download_Place\Leginon2.1\leginon
109 12 Anchi Cheng
c:\\python25\python.exe setup.py install</pre>
110 50 Neil Voss
Then continue with the other packages, replacing leginon with the package name. See "These are the sub-packages of myami that you will install with the python installer." section above for complete list.
111 12 Anchi Cheng
112 33 Jim Pulokas
h2. 5. Run updatecom.py
113 1 Amber Herold
114 33 Jim Pulokas
From a command line window:
115
116
<pre>cd C:\python25\Lib\Site-Packages\pyScope
117
C:\python25\python.exe updatecom.py</pre>
118
119
The python window appears should say show the required type libraries it found:
120
<pre>
121
Generating .py files from type libraries...
122
initializing TEM Scripting Error, cannot find typelib for "TEM Scripting"
123
initializing Tecnai Scripting done.
124
initializing TOM Moniker done.
125
initializing Tecnai Low Dose Kit done.
126
initializing Tecnai Exposure Adaptor done.
127
128
initializing Tietz CCD Camera done.
129
</pre>
130
The output is of course depending on what is available on your microscope computer.  You should have either "Tecnai Scripting" or the pairing of  "TEM Scripting" and "TOM Moniker".
131
132 37 Anchi Cheng
You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it.
133
134 33 Jim Pulokas
The script should generate a few files in C:\\python25\Lib\win32com\gen_py with seemly scrambled names such as BC0A2B03-19FF-11D3-AE00-00A024CBA50Cx0x1x9.py
135
136
h2. 6. Configure leginon.cfg:
137
138 40 Anchi Cheng
Follow the instructions in [[Configure leginon.cfg|Configure leginon.cfg]] located in the section for Linux installation but note the location of the configuration files follows. In addition, if the storage disk is mapped onto the Windows PC as drive Z, this mapping should be included in leginon.cfg. See below.
139 1 Amber Herold
140 40 Anchi Cheng
* Configurations for all users (Recommended on the microscope computer since users are not expected to start the main processing here)
141 1 Amber Herold
142 55 Anchi Cheng
 <pre> <Python directory>\Lib\site-packages\leginon\leginon.cfg</pre>
143 1 Amber Herold
144 11 Anchi Cheng
 Example:
145 55 Anchi Cheng
 <pre> C:\Python25\Lib\site-packages\leginon\leginon.cfg</pre>
146 11 Anchi Cheng
147 1 Amber Herold
148 40 Anchi Cheng
* The skeleton (default) configuration file is available at:
149 1 Amber Herold
150 55 Anchi Cheng
 <pre> C:\Python25\Lib\site-packages\leginon\leginon.cfg.template</pre>
151 1 Amber Herold
152
153 33 Jim Pulokas
h2. 7. Configure sinedon.cfg:
154 11 Anchi Cheng
155
Follow instruction in [[Configure sinedon.cfg]] in the section for Linux installation but note the location of the configuration files follows.
156 1 Amber Herold
157 10 Anchi Cheng
158
 * (Recommanded on microscope computer) For all users, put sinedon.cfg with the installed package as
159
 <pre>C:\Python25\Lib\site-packages\sinedon\sinedon.cfg</pre>
160
161 1 Amber Herold
 * the skeleton sinedon configuration file is
162 10 Anchi Cheng
 <pre>C:\Python25\Lib\site-packages\sinedon\examples\sinedon.cfg</pre>
163 1 Amber Herold
164
h2. 8. Configure instruments.cfg:
165 33 Jim Pulokas
166 1 Amber Herold
* A template for instruments.cfg is in the installed pyscope directory as "instruments.cfg.template".  Copy it to "instruments.cfg".
167
168
* Remove the Sim Tem and Sim Cam modules in the configuration.
169 33 Jim Pulokas
170 1 Amber Herold
* Add the modules for your microscope and camera. If you have a Tietz camera, there are several choices for the "class" field.  Run the tietztest.py script that comes in pyscope to tell you your available options.  For example, if your microscope uses Tecnai Scripting Interface and you have a Gatan camera that you interface through DigitalMicrograph:
171 53 Anchi Cheng
172 55 Anchi Cheng
{{include(instruments.cfg for 2.2)}}
173 1 Amber Herold
174
The file contains other examples of microscope and camera drivers that we distribute from NRAMM.
175
176
h2. 9. Additional setup on Tietz cameras
177
178 29 Jim Pulokas
Register the Tietz ping callback function.  From a command line window:
179 1 Amber Herold
180 42 Anchi Cheng
<pre>cd C:\python25\Lib\Site-Packages\pyscope
181 29 Jim Pulokas
C:\python25\python.exe tietzping.py</pre>
182 1 Amber Herold
183 30 Jim Pulokas
h2. 10. For strange dimension cameras
184 1 Amber Herold
185 36 Anchi Cheng
{{include(strange dimension cameras)}}
186 1 Amber Herold
187 51 Neil Voss
h2. 11. Create Leginon Admin and Leginon Client shortcut in Start menu menu under Leginon
188 1 Amber Herold
189
190
This instruction applies to Windows XP.
191 11 Anchi Cheng
192 1 Amber Herold
193
 * Go to C:\Documents and Settings\All Users\Start Menu\Programs\ and create a new
194
folder named Leginon.
195 11 Anchi Cheng
196
197 1 Amber Herold
 * In another window, go to
198
 <pre>C:\Python25\Lib\site-packages\leginon</pre>
199 11 Anchi Cheng
200
201 51 Neil Voss
 * Create a shortcut from start-leginon.py as "Leginon Admin" and a shortcut from launcher.py as "Leginon Client".
202 11 Anchi Cheng
203 1 Amber Herold
204 11 Anchi Cheng
 * Move the two shortcuts into
205
 <pre>C:\Documents and Settings\All Users\Start Menu\Programs\Leginon</pre>
206
207
208
209 30 Jim Pulokas
h2. 12. Mapping Drives (Optional):
210 11 Anchi Cheng
211 40 Anchi Cheng
Although we don't recommend it, it is possible to run minimal Leginon directly on the Windows machine,  Since the database and web servers are not there, you probably will be saving the images through a Samba server on a network drive also available to the Linux machine.  If you do so, you will need to map the network drive. For example, if your Samba server has a hostname your_smbserver, and you have set up a share called [your_share_point] which points to /your_data_path/ and leginon data will be saved under a folder in /your_data_path/leginon/.
212 11 Anchi Cheng
213
*  Start, My Computer
214
215
216
*  Tools menu, Map network drive
217
218
219
*  Use an unmapped drive such as Z:
220
221 12 Anchi Cheng
 Enter shared path in Windows format as
222 11 Anchi Cheng
 <pre>\\your_smbserver\your_share_point</pre>
223
224
225 12 Anchi Cheng
*  Add the drive and the Linux path to leginon.cfg on the Windows machine as
226 11 Anchi Cheng
 <pre>[Drive Mapping]
227
Z:/your_data_path</pre>
228
229
230 12 Anchi Cheng
*  Add image path to leginon.cfg on the Windows machine in Linux format as
231 11 Anchi Cheng
 <pre>[Images]
232
path:/your_data_path/leginon</pre>
233
234
235
h2.  Additional Software (Optional):
236 3 Amber Herold
237 12 Anchi Cheng
TightVNC (http://www.tightvnc.com) if you get tired of going into the microscope room just to open the column valves.
238 1 Amber Herold
239 3 Amber Herold
240 1 Amber Herold
______
241
242 41 Anchi Cheng
[[Additional Database Server Setup after Web Server Installation|< Additional Database Server Setup]] | [[Steps involved in the installation| Steps needed for Installation Using Database Administration Tools >]]
243 1 Amber Herold
244
245
______