Project

General

Profile

How to Update from v21 (Linux) » History » Version 15

Anchi Cheng, 06/07/2012 03:09 PM

1 1 Anchi Cheng
h1. How to Update from v21 (Linux)
2
3 9 Anchi Cheng
h2. Download myami 2.2.x source code
4 1 Anchi Cheng
5 8 Anchi Cheng
{{include(appion:Download_Appion_Files_Shared)}}
6 1 Anchi Cheng
7 8 Anchi Cheng
h2. Install Appion/Leginon Packages
8
9
h3. Install all the myami python packages _except appion_ using the following script:
10
11
<pre>
12
cd /your_download_area
13
cd myami
14
sudo ./pysetup.sh install
15
</pre>
16
17
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: 
18
19
<pre>
20
cd sinedon
21
sudo python setup.py install
22
</pre>
23
24 11 Anchi Cheng
h3. Move leginon.cfg if it was saved with the installation.
25
26
Run this script to find out where it was:
27 14 Anchi Cheng
<pre> 
28
cd /your_download_area/myami/leginion/
29 15 Anchi Cheng
./configcheck.py
30 14 Anchi Cheng
</pre>
31 12 Anchi Cheng
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.
32 11 Anchi Cheng
33 8 Anchi Cheng
h2. Rename your current myamiweb at the document root of the web server to something else as a backup.
34
35
h2. Install updated Web viewers and tools
36
37
*You will not need to upgrade php mrc tools*.
38
39
See [[Install the Web Interface]] section in Complete Installation Chapter to put the new myamiweb tools to document root for the web server.  
40
41
h2. Copy config.php from your older myamiweb backup to the new myamiweb folder.
42
43
h2. Step through setup wizard in the myamiweb on your server
44
45
The Setup Wizard will take you through the steps to update config.php  If the wizard does not have the privilege to modify the file at the last step, copy the displayed result to an text editor and save as config.php to replace the olde one.
46
47
{{include(Appion:Run Database Update Script)}}
48
49 1 Anchi Cheng
h2. Assigning Cs value for each TEM used by Leginon
50
51 8 Anchi Cheng
schema-r15653.py that shows up in the list of required update when schema-update.py is run is used to assign individual spherical aberration constant (Cs) values to different microscope.  Please find out what these values are in advance before running the script to save time.
52 1 Anchi Cheng
53
Running the python script will prompt you at each TEM you have used so far so that you can enter the value in unit of *millimeter*
54
55 4 Anchi Cheng
The Cs value also need to match what is set in pyscope/instrument.cfg before you will be able to acquire more images.  See [[How to Update from v2.1 (Microscope Windows Computer)]]
56 2 Anchi Cheng
57
58
______
59
60 13 Anchi Cheng
[[How_to_Update_from_v21_(Microscope_Windows_Computer)| How to Update from v2.1 (Microscope Windows Computer) >]]
61 2 Anchi Cheng
62
63
______