Project

General

Profile

Windows Installation » History » Version 2

Amber Herold, 04/16/2010 10:19 AM

1 1 Amber Herold
h1. Windows Installation
2
3
4
5
6
h2.  Processing-side Leginon Windows Installation
7
8
9
10
11
h2.  Install Python and Support Packages (Note that python 2.5 must be used):
12
13
14
15
This list does not include pyton XML module because it is included in the python
16
package for window.
17
18
19
20
|_.Name:|_.Download site:|
21
|Python 2.5*| "http://www.python.org":http://www.python.org|
22
|Python for Windows extension (pywin32)| "http://sourceforge.net/projects/pywin32/":http://sourceforge.net/projects/pywin32/|
23
|wxPython 2.5.2.8 or newer| "http://www.wxpython.org":http://www.wxpython.org|
24
|MySQL Python client 1.2 or newer| "http://sourceforge.net/projects/mysql-python":http://sourceforge.net/projects/mysql-python|
25
|Python Imaging Library (PIL) 1.1.4 or newer| "http://www.pythonware.com/products/pil/":http://www.pythonware.com/products/pil/|
26
|NumPy 1.0b5 (tested, others may work)| "http://www.scipy.org":http://www.scipy.org|
27
|SciPy 0.5.1 or newer| "http://www.scipy.org":http://www.scipy.org|
28
|Tortoise SVN client| "http://tortoisesvn.tigris.org":http://tortoisesvn.tigris.org|
29
30
31
32
33
*Python 2.5 is the only python version that we have compiled numExtension. libCV and
34
comarray in. Therefore no other python version works for now.
35
36
37
Execute the installer file and follow the directions.
38
39
40
41
42
43
h2. Packages required from NRAMM
44
45
46
47
Here are the packages you need to install with python installer
48
49
50
51
|_.Name:|_.Purpose:|
52
| Leginon|modular TEM image acquisition|
53
| pyami|general functions|
54
| sinedon|Leginon/database interaction|
55
| pyScope|microscope control and monitoring|
56
| ImageViewer|image viewing for tomography|
57
58
59
60
61
Because numextension and libCV requires extra compilers, we have created window
62
installer for them for python 2.5 and made them available through  "http://www.leginon.org/":http://www.leginon.org/
63
64
65
66
|_.Downloadfile Name|_.Installed Python Package File|_.Purpose:|
67
|NumExtension-1.2.0.win32-py2.5.exe|numextension.pyd|c extension for numerical processing|
68
|libCV-0.2.win32-py2.5.exe|libCV.pyd|small c library of algorithm from computer vision field|
69
70
71
72
73
74
75
76
h2. Check out SVN Source Files from the depository
77
78
79
80
Use your mouse to do the following
81
* Create Leginon-1.6-ALL directory somewhere at your convenience
82
83
84
* Change directory into Leginon-1.6-ALL
85
86
87
* Right-click the mouse botton in this directory window and select Tortoise svn
88
Checkout in the menu:!http://emg.nysbc.org/software/leginon/images/images/svnmenu.png!
89
90
91
* Set up svn checkout window like this for <link linkend="windows_packages">EACH
92
of the leginon packages</link>.!http://emg.nysbc.org/software/leginon/images/images/svnco.png!
93
94
95
96
97
98
99
100
101
h2. Install the packages you downloaded from NRAMM svn depository
102
103
104
105
106
107
* Start a command line Window from Start Menu
108
109
110
* Install the package in each folder with commands such as
111
<pre>cd Your_Download_Place\Leginon-1.6-ALL\leginon
112
c:\\python25\python.exe setup.py install</pre>
113
114
115
116
117
118
119
120
121
122
h2. Download the two Window Installer Files from Leginon website
123
124
125
"http://www.leginon.org/":http://www.leginon.org/
126
127
128
129
130
131
h2. Install individual packages
132
133
134
135
Excute the installer files and follow the instruction.
136
137
138
139
140
141
h2.  Mapping Drives:
142
143
144
145
If you plan to run Leginon directly on the Windows machine, such as in <link
146
linkend="config_C">configuration C</link>, and your data files are served through a
147
Samba server on a Linux machine, you will need to map the network drive. For example, if
148
your Samba server has a hostname your_smbserver, and you have set up a share called
149
[your_share_point] which points to /your_data_path/ and leginon data will be saved under a
150
folder in /your_data_path/leginon/
151
152
153
154
155
*  Start, My Computer
156
157
158
*  Tools menu, Map network drive
159
160
161
*  Use an unmapped drive such as Z:
162
163
Enter shared path in Windows format
164
as<pre>\\your_smbserver\your_share_point</pre>
165
166
167
*  Add the drive and the Linux path to leginon.cfg on the Windows machine
168
as<pre>[Drive Mapping]
169
Z:/your_data_path</pre>
170
171
172
*  Add image path to leginon.cfg on the Windows machine in Linux format
173
as<pre>[Images]
174
path:/your_data_path/leginon</pre>
175
176
177
178
179
180
181
182
183
184
h2.  Configure leginon.cfg:
185
186
187
Follow instruction in "<link linkend="leginon_cfg">Configure leginon.cfg</link>" in
188
the section for Linux installation but note the location of the configuration files
189
follows. In addition, if the storage disk is mapped onto the Windows PC as drive Z, this
190
mapping should be included in leginon.cfg. See above.
191
192
193
194
195
*  Configurations for all users
196
197
198
199
<pre> <Python directory>\Lib\site-packages\Leginon\config\leginon.cfg</pre>
200
201
202
Example:
203
<pre> C:\Python25\Lib\site-packages\Leginon\config\leginon.cfg</pre>
204
205
206
*  Configurations for individual users
207
208
209
210
<pre> <Home directory>\leginon.cfg</pre>
211
212
213
Example:
214
<pre> C:\Documents and Settings\Leginon User\leginon.cfg </pre>
215
216
217
*  A skeleton (default) configuration file is available:
218
219
220
221
<pre> C:\Python25\Lib\site-packages\Leginon\config\default.cfg</pre>
222
223
224
225
226
227
228
229
230
231
232
h2.  Configure sinedon.cfg:
233
234
235
Sinedon is designed to be able to interact with multiple databases.
236
237
Follow instruction in "<link linkend="sinedon_cfg">Configure sinedon.cfg</link>" in
238
the section for Linux installation but note the location of the configuration files
239
follows.
240
241
242
243
244
* For all users, put sinedon.cfg with the installed package
245
as<pre>C:\Python25\Lib\site-packages\sinedon\sinedon.cfg</pre>
246
247
248
*  Your home directory on
249
Windows:<pre>C:\Documents and Settings\your_name></pre>
250
251
252
* the skeleton sinedon configuration file
253
is<pre>C:\Python25\Lib\site-packages\sinedon\examples\sinedon.cfg</pre>
254
255
256
257
258
259
260
261
262
263
h2.  Create Leginon and Leginon Client shortcut in Start menu menu under Leginon
264
265
266
267
This instruction refers to Windows XP
268
269
270
271
272
* Go to C:\Documents and Settings\All Users\Start Menu\Programs\ and create a new
273
folder named Leginon.
274
275
276
* In another window, go
277
to<pre>C:\Python25\Lib\site-packages\Leginon</pre>
278
279
280
* Create a shortcut from start-leginon.py as Leginon and a shortcut from
281
launcher.py as Leginon Client.
282
283
284
* Move the two shortcuts into
285
<pre>C:\Documents and Settings\All Users\Start Menu\Programs\Leginon</pre>
286
287
288
289
290
291
292
293
294
295
h2.  Additional Software (Optional):
296
297
298
TightVNC (http://www.tightvnc.com)
299
300
301
302
303
304
305
306
307
308
h2. Database server Windows Installation
309
310
311
312
313
h2. We do not do this at NRAMM. Please follow the instruction in Linux installation and
314
modify it for Windows at your own risk.
315
316
317
318
For a good Windows specific instruction for general PHP configuration with MySQL for
319
Apache 2 in Windows, try http://www.artfulsoftware.com/php_mysql_win.html.
320 2 Amber Herold
321
______
322
323
[[Web Server Installation|< Web Server Installation]] | [[Additional installation on the microscope computer|Additional installation on the microscope computer >]]