Project

General

Profile

Actions

Autoinstaller for CentOS

Automatic Installation Script:
The Automatic Installation Script installs a fully functional Legion and Appion. This script is intended to be used with a single computer running a fresh installation of the CentOS operating system.
The process does not include installation for the microscope and camera.

Read through this instruction first If you only want Leginon. Many steps performed by autoinstaller are not relevant to you. If it bothers you very much, you should either edit the autoinstaller script or use manual installation instruction.

Quick Install of Appion and Leginon using the auto-installation tool

This quick installation script installs both Appion and Leginon on a single computer running the CentOS 6 or 7 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 or 7 and might fail if you already have several other packages installed.

Follow the instructions below to install Appion and Leginon using the auto-installation script.

  1. Install CentOS.
    Disable SELinux during the installation. You can check to see if it is enabled after the centOS installation with:
    /usr/sbin/selinuxenabled
    echo $?
    

    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.
    The Auto-Installer currently assumes that you have a fresh centOS installation and that you have not set up a mysql database.
     
  2. Login to CentOS as the root user. Note that there seems to be an issue with using su to become root user which prevents the autoinstaller from running to completion.
     
  3. 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.
     
  4. Download centosAutoInstallation.py for CentOS 6 or centos7AutoInstallation.py for CentOS 7.
  1. Open a Terminal, go to the download directory and run:
    On CentOS 6:
    python centosAutoInstallation.py
    
    On CentOS 7:
    python centos7AutoInstallation.py
    
  2. Enter an administrator's email address, and root password when prompted.
     
  3. 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. Most old packages do not install on CentOS7. This option is disabled in centos7autoinstallation.py
     
  4. Wait. Depending on how many packages are updated during yum update, installation could take anywhere between 6 minutes and 2 hours.
     
  5. When the installation completes:
    1. A log file will be created called installation.log. You may want to view it and look for any errors.
    2. The Leginon start page will be displayed. This indicates that Leginon python components are installed correctly.
    3. 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.
       
  6. There are some additional changes that need to be made at this point.

Where did things go ?

  1. myami git clone: /tmp/myami
  2. myami python package installation: /usr/lib/python2.7/site-packages
  3. myami appion scripts: /usr/bin/appion
  4. myamiweb copy for web service: /var/www/html/myamiweb
  5. myami configurations: /etc/myami
  6. mysql root password is default to the host root password you gave at the beginning of the script.
  7. for myamiweb, administrator has a default password of the host root password you gave at the beginning of the script.

Go to Complete_Installation section to complete the rest of installation not covered by autoinstaller.

Troubleshooting

Having trouble with autoinstaller in general when CentOS is not fresh.

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.

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.

SELinux is Enabled

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:

  1. Edit file "/etc/selinux/config"
  2. Change "SELINUX=enforcing" to "SELINUX=disabled"
  3. Save the file
  4. Restart your computer

Once SELinux is disabled, the configuration will complete on its own.

You may need to reconfigure the database if the Tools web page is not displayed.

SELinux Enabled

 

A database was previously configured

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.

Database already configured.

The Redux image server is not running

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:

CentOS 7

systemctl start reduxd

CentOS 6

/sbin/service reduxd start

What it looks like when redux is not running


< Network Configuration | Database Server Setup to allow remote connection >


Updated by Anchi Cheng over 10 years ago · 4 revisions