Project

General

Profile

Install Appion and Leginon using the auto-installation tool share » History » Version 55

Anchi Cheng, 04/11/2017 12:37 PM

1 24 Bridget Carragher
h1. Quick Install of Appion and Leginon using the auto-installation tool
2 1 Amber Herold
3 43 Amber Herold
This quick installation script installs both Appion and Leginon on a single computer running the CentOS 6 Linux operating system. This is not really intended for production systems but is instead perhaps a useful way to evaluate the software prior to undertaking a more complex installation across multiple CPU's. Please note that the auto-installation is intended for use with a clean installation of CentOS 6 and might fail if you already have several other packages installed.  
4 1 Amber Herold
5 24 Bridget Carragher
Follow the instructions below to install Appion and Leginon using the auto-installation script.
6 1 Amber Herold
7
# "Install CentOS":http://emg.nysbc.org/projects/appion/wiki/Instructions_for_installing_CentOS_on_your_computer. 
8 22 Amber Herold
 *Disable SELinux during the installation.* You can check to see if it is enabled after the centOS installation with:
9
<pre>
10
/usr/sbin/selinuxenabled
11
echo $?
12
</pre>
13 28 Sargis Dallakyan
 If SELinux is enabled, the return value is 0. If it is disabled, the return value is 1.  If you need to disable SELinux, follow the instructions for disabling SELinux found in the troubleshooting section of this document.
14 18 Amber Herold
 The Auto-Installer currently assumes that you have a fresh centOS installation and that you have not set up a mysql database.
15 20 Amber Herold
&nbsp;
16 48 Amber Herold
# Login to CentOS as the root user. Note that there seems to be an "issue":http://stackoverflow.com/questions/1421498/linux-gedit-i-always-get-gconf-error-failed-to-contact-configuration-server with using su to become root user which prevents the autoinstaller from running to completion.  
17 20 Amber Herold
&nbsp;
18 37 Anchi Cheng
# [[Appion:Regkey_request|Request a registration key]] which will be needed during installation. We ask that you register so that we can inform the owners of processing packages such as EMAN, XMIPP and SPIDER how many people are recieving their software from us. These numbers help them gain funding to maintain the software.
19 30 Amber Herold
&nbsp;  
20 54 Sargis Dallakyan
# Download "centosAutoInstallation.py":http://emg.nysbc.org/projects/appion/repository/revisions/myami-3.2/raw/install/centosAutoInstallation.py
21 55 Anchi Cheng
http://emg.nysbc.org/projects/leginon/repository/revisions/myami-3.2/raw/install/centosAutoInstallation.py
22
23 11 Amber Herold
# Open a Terminal, go to the download directory and run:
24 1 Amber Herold
<pre>
25
python centosAutoInstallation.py
26
</pre>
27 32 Amber Herold
# Enter an administrator's email address, and root password when prompted. 
28
&nbsp;
29
# You may choose to install several of the third party software packages that Appion uses for image processing. If you do not allow the installer to install them at this time, you can follow the manual installation instructions found toward the end of this page.
30 1 Amber Herold
&nbsp;
31 24 Bridget Carragher
# Wait. Depending on how many packages are updated during _yum update_, installation could take anywhere between 6 minutes and 2 hours. 
32 1 Amber Herold
&nbsp;
33 21 Amber Herold
# When the installation completes:
34 33 Amber Herold
## A log file will be created called installation.log. You may want to view it and look for any errors.
35 53 Anchi Cheng
## The Leginon start page will be displayed. This indicates that Leginon python components are installed correctly.
36
## A web browser will be launched with the Appion and Leginon tools loaded.  A few initialization happens in there and then the home page appears if everything works out.
37 49 Amber Herold
&nbsp;
38 47 Amber Herold
# There are some additional changes that need to be made at this point. 
39
## Please follow the directions for [[appion:Additional Database Server Setup After Web Server Installation]]
40 39 Anchi Cheng
41 40 Anchi Cheng
{{include(testing auto-installation)}}
42 1 Amber Herold
43 3 Amber Herold
h1. Troubleshooting
44 1 Amber Herold
45 51 Anchi Cheng
h2. Having trouble with autoinstaller in general when CentOS is not fresh.
46
47
The autoinstaller assumes a fresh CentOS installation.  If some of the previously installed packages had dependency that conflict with what Appion/Leginon uses, problems may occur.
48
49
In this case, we suggest run the steps individually to see if you can identify the real problem.  We have a user reported that just by performing them step-by-step, ti worked out for unknown reason.
50
51 5 Amber Herold
h2. SELinux is Enabled
52
53 18 Amber Herold
If your installation completes and you see a Welcome to Leginon window, a second Leginon window that appears blank and a web page with the Web Tools Setup wizard in a System updating state as shown below, you have installed CentOs with Security Enhanced Linux enabled. You need to disable SE Linux:
54
55 19 Amber Herold
# Edit file "/etc/selinux/config"
56
# Change "SELINUX=enforcing" to "SELINUX=disabled"
57
# Save the file
58
# Restart your computer
59 5 Amber Herold
60
Once SELinux is disabled, the configuration will complete on its own. 
61 1 Amber Herold
62 41 Anchi Cheng
You may need to [[Appion:reconfigure the database]] if the Tools web page is not displayed.
63 16 Amber Herold
64 1 Amber Herold
!SELinuxInstall.png! 
65 2 Amber Herold
66 4 Amber Herold
&nbsp;
67
68 3 Amber Herold
h2. A database was previously configured
69 4 Amber Herold
70
If you see the errors shown in the screen below, you may have previously configured a database with mysql. You will need to re-install CentOS and run the installation script again.
71 2 Amber Herold
72
73
74
!Screenshot.png!
75 42 Amber Herold
76
h2. The Redux image server is not running
77
78
If you don't see micrograph images in the online image viewer, and instead see the word "empty" as shown in the screen below, you may need to start the Redux image server. The command is:
79
<pre>
80
/sbin/service reduxd start
81
</pre>
82
83
!reduxNotRunning.jpg!