Windows Installation » History » Version 14
Anchi Cheng, 05/18/2010 10:28 PM
1 | 1 | Amber Herold | h1. Windows Installation |
---|---|---|---|
2 | |||
3 | |||
4 | |||
5 | |||
6 | h2. Processing-side Leginon Windows Installation |
||
7 | |||
8 | |||
9 | |||
10 | |||
11 | 13 | Amber Herold | h3. Install Python and Support Packages (Note that python 2.5 must be used): |
12 | 1 | Amber Herold | |
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 | 13 | Amber Herold | h3. Packages required from NRAMM |
44 | 1 | Amber Herold | |
45 | |||
46 | |||
47 | 4 | Amber Herold | These are the packages you will install with the python installer. |
48 | 1 | Amber Herold | |
49 | |||
50 | |||
51 | |_.Name:|_.Purpose:| |
||
52 | 14 | Anchi Cheng | | leginon|modular TEM image acquisition| |
53 | 1 | Amber Herold | | pyami|general functions| |
54 | | sinedon|Leginon/database interaction| |
||
55 | 14 | Anchi Cheng | | pyscope|microscope control and monitoring| |
56 | | imageviewer|image viewing for tomography| |
||
57 | 1 | Amber Herold | |
58 | |||
59 | |||
60 | |||
61 | 14 | Anchi Cheng | Because numextension and libcv requires extra compilers, we have created window |
62 | 5 | Amber Herold | installer for them for python 2.5 and made them available through "http://www.leginon.org/":http://www.leginon.org/. |
63 | 1 | Amber Herold | |
64 | 14 | Anchi Cheng | These are the Leginon v2.0 python 2.5 compiled packages installed through python installer on Windows. |
65 | 1 | Amber Herold | |
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 | 13 | Amber Herold | h3. Check out SVN Source Files from the depository |
77 | 1 | Amber Herold | |
78 | |||
79 | |||
80 | Use your mouse to do the following |
||
81 | 14 | Anchi Cheng | * Create Leginon2.0 directory somewhere at your convenience |
82 | 1 | Amber Herold | |
83 | |||
84 | 14 | Anchi Cheng | * Change directory into Leginon2.0 |
85 | 1 | Amber Herold | |
86 | |||
87 | 6 | Amber Herold | * Right-click the mouse botton in this directory window and select Tortoise svn |
88 | Checkout in the menu: |
||
89 | 1 | Amber Herold | !http://emg.nysbc.org/software/leginon/images/images/svnmenu.png! |
90 | |||
91 | 6 | Amber Herold | |
92 | 14 | Anchi Cheng | * Set up svn checkout window like this to check out from http://emg.nysbc.org/svn/myami/trunk to Leginon2.0 |
93 | 6 | Amber Herold | !http://emg.nysbc.org/software/leginon/images/images/svnco.png! |
94 | 1 | Amber Herold | |
95 | |||
96 | |||
97 | |||
98 | 13 | Amber Herold | h3. Install the packages you downloaded from NRAMM svn depository |
99 | 1 | Amber Herold | |
100 | |||
101 | |||
102 | * Start a command line Window from Start Menu |
||
103 | |||
104 | |||
105 | * Install the package in each folder with commands such as |
||
106 | 14 | Anchi Cheng | <pre>cd Your_Download_Place\Leginon2.0\leginon |
107 | 1 | Amber Herold | c:\\python25\python.exe setup.py install</pre> |
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | 13 | Amber Herold | h3. Download the two Window Installer Files from Leginon website |
114 | 1 | Amber Herold | |
115 | |||
116 | "http://www.leginon.org/":http://www.leginon.org/ |
||
117 | |||
118 | |||
119 | |||
120 | |||
121 | |||
122 | 13 | Amber Herold | h3. Install individual packages |
123 | 1 | Amber Herold | |
124 | |||
125 | |||
126 | Excute the installer files and follow the instruction. |
||
127 | |||
128 | |||
129 | |||
130 | |||
131 | |||
132 | 13 | Amber Herold | h3. Mapping Drives: |
133 | 1 | Amber Herold | |
134 | |||
135 | |||
136 | 10 | Amber Herold | If you plan to run Leginon directly on the Windows machine, such as in [[Possible Computer Set-up Configurations#Configuration-C|Configuration C]], and your data files are served through a Samba server on a Linux machine, 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/. |
137 | 1 | Amber Herold | |
138 | |||
139 | |||
140 | |||
141 | * Start, My Computer |
||
142 | |||
143 | |||
144 | * Tools menu, Map network drive |
||
145 | |||
146 | |||
147 | * Use an unmapped drive such as Z: |
||
148 | |||
149 | 11 | Amber Herold | Enter shared path in Windows format |
150 | 1 | Amber Herold | as |
151 | 11 | Amber Herold | <pre>\\your_smbserver\your_share_point</pre> |
152 | |||
153 | 1 | Amber Herold | |
154 | * Add the drive and the Linux path to leginon.cfg on the Windows machine |
||
155 | as |
||
156 | 11 | Amber Herold | <pre>[Drive Mapping] |
157 | Z:/your_data_path</pre> |
||
158 | 1 | Amber Herold | |
159 | |||
160 | * Add image path to leginon.cfg on the Windows machine in Linux format |
||
161 | as |
||
162 | <pre>[Images] |
||
163 | 11 | Amber Herold | path:/your_data_path/leginon</pre> |
164 | 1 | Amber Herold | |
165 | |||
166 | 11 | Amber Herold | |
167 | 13 | Amber Herold | h3. Configure leginon.cfg: |
168 | 1 | Amber Herold | |
169 | |||
170 | Follow the instructions in [[Configure leginon.cfg|Configure leginon.cfg]] located in |
||
171 | the section for Linux installation but note the location of the configuration files |
||
172 | follows. In addition, if the storage disk is mapped onto the Windows PC as drive Z, this |
||
173 | mapping should be included in leginon.cfg. See above. |
||
174 | |||
175 | |||
176 | 12 | Amber Herold | |
177 | 1 | Amber Herold | |
178 | 13 | Amber Herold | * Configurations for all users |
179 | 1 | Amber Herold | |
180 | 13 | Amber Herold | <pre> <Python directory>\Lib\site-packages\Leginon\config\leginon.cfg</pre> |
181 | 1 | Amber Herold | |
182 | 13 | Amber Herold | Example: |
183 | <pre> C:\Python25\Lib\site-packages\Leginon\config\leginon.cfg</pre> |
||
184 | 1 | Amber Herold | |
185 | |||
186 | 13 | Amber Herold | * Configurations for individual users |
187 | 1 | Amber Herold | |
188 | 13 | Amber Herold | <pre> <Home directory>\leginon.cfg</pre> |
189 | 1 | Amber Herold | |
190 | 13 | Amber Herold | Example: |
191 | <pre> C:\Documents and Settings\Leginon User\leginon.cfg </pre> |
||
192 | 1 | Amber Herold | |
193 | |||
194 | 13 | Amber Herold | * A skeleton (default) configuration file is available: |
195 | 1 | Amber Herold | |
196 | 13 | Amber Herold | <pre> C:\Python25\Lib\site-packages\Leginon\config\default.cfg</pre> |
197 | 1 | Amber Herold | |
198 | |||
199 | |||
200 | |||
201 | 13 | Amber Herold | h3. Configure sinedon.cfg: |
202 | 1 | Amber Herold | |
203 | |||
204 | Sinedon is designed to be able to interact with multiple databases. |
||
205 | |||
206 | 13 | Amber Herold | Follow instruction in [[Configure sinedon.cfg]] in |
207 | 1 | Amber Herold | the section for Linux installation but note the location of the configuration files |
208 | follows. |
||
209 | |||
210 | |||
211 | |||
212 | |||
213 | 13 | Amber Herold | * For all users, put sinedon.cfg with the installed package as |
214 | <pre>C:\Python25\Lib\site-packages\sinedon\sinedon.cfg</pre> |
||
215 | 1 | Amber Herold | |
216 | |||
217 | 13 | Amber Herold | * Your home directory on Windows: |
218 | <pre>C:\Documents and Settings\your_name></pre> |
||
219 | 1 | Amber Herold | |
220 | |||
221 | 13 | Amber Herold | * the skeleton sinedon configuration file is |
222 | <pre>C:\Python25\Lib\site-packages\sinedon\examples\sinedon.cfg</pre> |
||
223 | 1 | Amber Herold | |
224 | |||
225 | |||
226 | |||
227 | 13 | Amber Herold | h3. Create Leginon and Leginon Client shortcut in Start menu menu under Leginon |
228 | 1 | Amber Herold | |
229 | |||
230 | 13 | Amber Herold | This instruction applies to Windows XP. |
231 | 1 | Amber Herold | |
232 | |||
233 | 13 | Amber Herold | * Go to C:\Documents and Settings\All Users\Start Menu\Programs\ and create a new |
234 | 1 | Amber Herold | folder named Leginon. |
235 | |||
236 | |||
237 | 13 | Amber Herold | * In another window, go to |
238 | 14 | Anchi Cheng | <pre>C:\Python25\Lib\site-packages\leginon</pre> |
239 | 1 | Amber Herold | |
240 | |||
241 | 13 | Amber Herold | * Create a shortcut from start-leginon.py as Leginon and a shortcut from launcher.py as Leginon Client. |
242 | 1 | Amber Herold | |
243 | |||
244 | 13 | Amber Herold | * Move the two shortcuts into |
245 | <pre>C:\Documents and Settings\All Users\Start Menu\Programs\Leginon</pre> |
||
246 | 1 | Amber Herold | |
247 | |||
248 | |||
249 | |||
250 | |||
251 | 13 | Amber Herold | h3. Additional Software (Optional): |
252 | 1 | Amber Herold | |
253 | |||
254 | TightVNC (http://www.tightvnc.com) |
||
255 | |||
256 | |||
257 | |||
258 | |||
259 | |||
260 | |||
261 | h2. Database server Windows Installation |
||
262 | |||
263 | |||
264 | |||
265 | |||
266 | 13 | Amber Herold | h3. We do not do this at NRAMM. Please follow the instruction in Linux installation and |
267 | 1 | Amber Herold | modify it for Windows at your own risk. |
268 | |||
269 | |||
270 | |||
271 | For a good Windows specific instruction for general PHP configuration with MySQL for |
||
272 | Apache 2 in Windows, try http://www.artfulsoftware.com/php_mysql_win.html. |
||
273 | 2 | Amber Herold | |
274 | ______ |
||
275 | |||
276 | [[Web Server Installation|< Web Server Installation]] | [[Additional installation on the microscope computer|Additional installation on the microscope computer >]] |
||
277 | 3 | Amber Herold | |
278 | |||
279 | |||
280 | ______ |