Windows Installation » History » Version 13
Amber Herold, 04/28/2010 03:22 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 | | 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 | 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 | 5 | Amber Herold | These are the Leginon v1.6 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 | * 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 | 6 | Amber Herold | Checkout in the menu: |
| 89 | !http://emg.nysbc.org/software/leginon/images/images/svnmenu.png! |
||
| 90 | 1 | Amber Herold | |
| 91 | |||
| 92 | 6 | Amber Herold | * Set up svn checkout window like this for EACH |
| 93 | of the leginon packages listed above. |
||
| 94 | !http://emg.nysbc.org/software/leginon/images/images/svnco.png! |
||
| 95 | 1 | Amber Herold | |
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | 13 | Amber Herold | h3. Install the packages you downloaded from NRAMM svn depository |
| 100 | 1 | Amber Herold | |
| 101 | |||
| 102 | |||
| 103 | * Start a command line Window from Start Menu |
||
| 104 | |||
| 105 | |||
| 106 | * Install the package in each folder with commands such as |
||
| 107 | <pre>cd Your_Download_Place\Leginon-1.6-ALL\leginon |
||
| 108 | c:\\python25\python.exe setup.py install</pre> |
||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | 13 | Amber Herold | h3. Download the two Window Installer Files from Leginon website |
| 115 | 1 | Amber Herold | |
| 116 | |||
| 117 | "http://www.leginon.org/":http://www.leginon.org/ |
||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | 13 | Amber Herold | h3. Install individual packages |
| 124 | 1 | Amber Herold | |
| 125 | |||
| 126 | |||
| 127 | Excute the installer files and follow the instruction. |
||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | 13 | Amber Herold | h3. Mapping Drives: |
| 134 | 1 | Amber Herold | |
| 135 | |||
| 136 | |||
| 137 | 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/. |
| 138 | 1 | Amber Herold | |
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | * Start, My Computer |
||
| 143 | |||
| 144 | |||
| 145 | * Tools menu, Map network drive |
||
| 146 | |||
| 147 | |||
| 148 | * Use an unmapped drive such as Z: |
||
| 149 | |||
| 150 | 11 | Amber Herold | Enter shared path in Windows format |
| 151 | 1 | Amber Herold | as |
| 152 | 11 | Amber Herold | <pre>\\your_smbserver\your_share_point</pre> |
| 153 | |||
| 154 | 1 | Amber Herold | |
| 155 | * Add the drive and the Linux path to leginon.cfg on the Windows machine |
||
| 156 | as |
||
| 157 | 11 | Amber Herold | <pre>[Drive Mapping] |
| 158 | Z:/your_data_path</pre> |
||
| 159 | 1 | Amber Herold | |
| 160 | |||
| 161 | * Add image path to leginon.cfg on the Windows machine in Linux format |
||
| 162 | as |
||
| 163 | <pre>[Images] |
||
| 164 | 11 | Amber Herold | path:/your_data_path/leginon</pre> |
| 165 | 1 | Amber Herold | |
| 166 | |||
| 167 | 11 | Amber Herold | |
| 168 | 13 | Amber Herold | h3. Configure leginon.cfg: |
| 169 | 1 | Amber Herold | |
| 170 | |||
| 171 | Follow the instructions in [[Configure leginon.cfg|Configure leginon.cfg]] located in |
||
| 172 | the section for Linux installation but note the location of the configuration files |
||
| 173 | follows. In addition, if the storage disk is mapped onto the Windows PC as drive Z, this |
||
| 174 | mapping should be included in leginon.cfg. See above. |
||
| 175 | |||
| 176 | |||
| 177 | 12 | Amber Herold | |
| 178 | 1 | Amber Herold | |
| 179 | 13 | Amber Herold | * Configurations for all users |
| 180 | 1 | Amber Herold | |
| 181 | 13 | Amber Herold | <pre> <Python directory>\Lib\site-packages\Leginon\config\leginon.cfg</pre> |
| 182 | 1 | Amber Herold | |
| 183 | 13 | Amber Herold | Example: |
| 184 | <pre> C:\Python25\Lib\site-packages\Leginon\config\leginon.cfg</pre> |
||
| 185 | 1 | Amber Herold | |
| 186 | |||
| 187 | 13 | Amber Herold | * Configurations for individual users |
| 188 | 1 | Amber Herold | |
| 189 | 13 | Amber Herold | <pre> <Home directory>\leginon.cfg</pre> |
| 190 | 1 | Amber Herold | |
| 191 | 13 | Amber Herold | Example: |
| 192 | <pre> C:\Documents and Settings\Leginon User\leginon.cfg </pre> |
||
| 193 | 1 | Amber Herold | |
| 194 | |||
| 195 | 13 | Amber Herold | * A skeleton (default) configuration file is available: |
| 196 | 1 | Amber Herold | |
| 197 | 13 | Amber Herold | <pre> C:\Python25\Lib\site-packages\Leginon\config\default.cfg</pre> |
| 198 | 1 | Amber Herold | |
| 199 | |||
| 200 | |||
| 201 | |||
| 202 | 13 | Amber Herold | h3. Configure sinedon.cfg: |
| 203 | 1 | Amber Herold | |
| 204 | |||
| 205 | Sinedon is designed to be able to interact with multiple databases. |
||
| 206 | |||
| 207 | 13 | Amber Herold | Follow instruction in [[Configure sinedon.cfg]] in |
| 208 | 1 | Amber Herold | the section for Linux installation but note the location of the configuration files |
| 209 | follows. |
||
| 210 | |||
| 211 | |||
| 212 | |||
| 213 | |||
| 214 | 13 | Amber Herold | * For all users, put sinedon.cfg with the installed package as |
| 215 | <pre>C:\Python25\Lib\site-packages\sinedon\sinedon.cfg</pre> |
||
| 216 | 1 | Amber Herold | |
| 217 | |||
| 218 | 13 | Amber Herold | * Your home directory on Windows: |
| 219 | <pre>C:\Documents and Settings\your_name></pre> |
||
| 220 | 1 | Amber Herold | |
| 221 | |||
| 222 | 13 | Amber Herold | * the skeleton sinedon configuration file is |
| 223 | <pre>C:\Python25\Lib\site-packages\sinedon\examples\sinedon.cfg</pre> |
||
| 224 | 1 | Amber Herold | |
| 225 | |||
| 226 | |||
| 227 | |||
| 228 | 13 | Amber Herold | h3. Create Leginon and Leginon Client shortcut in Start menu menu under Leginon |
| 229 | 1 | Amber Herold | |
| 230 | |||
| 231 | 13 | Amber Herold | This instruction applies to Windows XP. |
| 232 | 1 | Amber Herold | |
| 233 | |||
| 234 | 13 | Amber Herold | * Go to C:\Documents and Settings\All Users\Start Menu\Programs\ and create a new |
| 235 | 1 | Amber Herold | folder named Leginon. |
| 236 | |||
| 237 | |||
| 238 | 13 | Amber Herold | * In another window, go to |
| 239 | <pre>C:\Python25\Lib\site-packages\Leginon</pre> |
||
| 240 | 1 | Amber Herold | |
| 241 | |||
| 242 | 13 | Amber Herold | * Create a shortcut from start-leginon.py as Leginon and a shortcut from launcher.py as Leginon Client. |
| 243 | 1 | Amber Herold | |
| 244 | |||
| 245 | 13 | Amber Herold | * Move the two shortcuts into |
| 246 | <pre>C:\Documents and Settings\All Users\Start Menu\Programs\Leginon</pre> |
||
| 247 | 1 | Amber Herold | |
| 248 | |||
| 249 | |||
| 250 | |||
| 251 | |||
| 252 | 13 | Amber Herold | h3. Additional Software (Optional): |
| 253 | 1 | Amber Herold | |
| 254 | |||
| 255 | TightVNC (http://www.tightvnc.com) |
||
| 256 | |||
| 257 | |||
| 258 | |||
| 259 | |||
| 260 | |||
| 261 | |||
| 262 | h2. Database server Windows Installation |
||
| 263 | |||
| 264 | |||
| 265 | |||
| 266 | |||
| 267 | 13 | Amber Herold | h3. We do not do this at NRAMM. Please follow the instruction in Linux installation and |
| 268 | 1 | Amber Herold | modify it for Windows at your own risk. |
| 269 | |||
| 270 | |||
| 271 | |||
| 272 | For a good Windows specific instruction for general PHP configuration with MySQL for |
||
| 273 | Apache 2 in Windows, try http://www.artfulsoftware.com/php_mysql_win.html. |
||
| 274 | 2 | Amber Herold | |
| 275 | ______ |
||
| 276 | |||
| 277 | [[Web Server Installation|< Web Server Installation]] | [[Additional installation on the microscope computer|Additional installation on the microscope computer >]] |
||
| 278 | 3 | Amber Herold | |
| 279 | |||
| 280 | |||
| 281 | ______ |