How to Update from v22-redux (Linux) » History » Version 7
Anchi Cheng, 12/16/2013 07:21 PM
| 1 | 1 | Anchi Cheng | h1. How to Update from v22-redux (Linux) |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | 2.2-redux version is installed on CentOS6 and uses redux. Its upgrade to Leginon/Appion 3.0 release does not require os upgrade. |
||
| 5 | |||
| 6 | h1. Upgrade processing server |
||
| 7 | |||
| 8 | h2. Download myami 3.0 source code |
||
| 9 | |||
| 10 | <pre> |
||
| 11 | svn co http://emg.nysbc.org/svn/myami/branches/myami-3.0/ |
||
| 12 | </pre> |
||
| 13 | |||
| 14 | h2. Install Appion/Leginon Packages |
||
| 15 | |||
| 16 | h3. Install all the myami python packages _except appion_ using the following script: |
||
| 17 | |||
| 18 | <pre> |
||
| 19 | cd /your_download_area |
||
| 20 | cd myami |
||
| 21 | sudo ./pysetup.sh install |
||
| 22 | </pre> |
||
| 23 | |||
| 24 | That will install each package, and report any failures. To determine the cause of failure, see the generated log file "pysetup.log". If necessary, you can enter a specific package directory and run the python setup command manually. For example, if sinedon failed to install, you can try again like this: |
||
| 25 | |||
| 26 | <pre> |
||
| 27 | cd sinedon |
||
| 28 | sudo python setup.py install |
||
| 29 | </pre> |
||
| 30 | |||
| 31 | h3. Move leginon.cfg/instruments.cfg/sinedon.cfg if it was saved with the old installation. |
||
| 32 | |||
| 33 | Run this script to find out where it was: |
||
| 34 | <pre> |
||
| 35 | cd /your_download_area/myami/leginion/ |
||
| 36 | ./configcheck.py |
||
| 37 | </pre> |
||
| 38 | If the script can not find leginon.cfg, and you found a copy of leginon.cfg in $PYTHONSITEPKG/leginon/config from the last installation, move that leginon.cfg to $PYTHONSITEPKG/leginon. |
||
| 39 | |||
| 40 | {{include(Appion:Run Database Update Script)}} |
||
| 41 | |||
| 42 | 5 | Anchi Cheng | h1. Upgrade web server |
| 43 | 1 | Anchi Cheng | |
| 44 | 5 | Anchi Cheng | Rename your current myamiweb at the document root of the web server to something else as a backup. |
| 45 | 1 | Anchi Cheng | |
| 46 | 5 | Anchi Cheng | h2. install the 3.0 version of redux and pyami. |
| 47 | 1 | Anchi Cheng | |
| 48 | 5 | Anchi Cheng | h3. Follow [[Install_Redux_image_server]] instruction but note the following |
| 49 | 1 | Anchi Cheng | |
| 50 | 5 | Anchi Cheng | * The old version in python's site-packages directory will be overwritten. |
| 51 | * The old redux.cfg, if in the installation, is still applicable. |
||
| 52 | * Make sure you run fftwsetup.py if you have odd-dimension camera such as Gatan K2. |
||
| 53 | 1 | Anchi Cheng | |
| 54 | 5 | Anchi Cheng | h2. Install updated Web viewers and tools |
| 55 | |||
| 56 | See [[Install the Web Interface]] section in Complete Installation Chapter to put the new myamiweb tools to document root for the web server. There is no need to run WebToolSetupWizard, however. See below. |
||
| 57 | |||
| 58 | h2. Copy config.php from your older myamiweb backup to the new myamiweb. |
||
| 59 | |||
| 60 | 6 | Anchi Cheng | h2. Import new versions of Leginon Applications |
| 61 | |||
| 62 | 7 | Anchi Cheng | All MSI Leginon applications need to be upgraded or it will not run. Use the Web administrator tool to do this as shown in [[Steps_involved_in_the_installation]] Step for "Import Applications". |
| 63 | 5 | Anchi Cheng | |
| 64 | 1 | Anchi Cheng | ______ |
| 65 | 5 | Anchi Cheng | |
| 66 | [[How_to_Update_from_v22_(Instrument_Windows_Computer)| How to Update from v2.2-redux (Instrument Computer) >]] |