--- doc/build/centos5_install.frag 2008/12/10 19:13:41 1.1 +++ doc/build/centos5_install.frag 2011/11/26 20:54:07 1.8 @@ -23,27 +23,28 @@ perl, and MySQL are not required to inst The installation process takes the following steps:
-CentOS isos can be obtained from links included on the CentOS download page
+CentOS isos can be obtained from links included on the CentOS download page
For the minimal install on 32-bit architecture you will need only the first CD.
For the minimal install on 64-bit architecture you will need CDs 1, 2, and 4.
-
-You will need to know the following network settings for your installation. +You will need to know the following network settings for your installation. Note:You must have a static IP address to use LON-CAPA. DHCP is not supported. @@ -55,12 +56,12 @@ DHCP is not supported.
Installing CentOS Linux is quite easy, particularly if you've installed any of the Red Hat, Fedora or CentOS Linux distributions before. Documentation is available from http://wiki.centos.org/ -Most of the installation screens are self explanatory. +Most of the installation screens are self explanatory. There are a few steps that require comment and are dealt with below.
-Finish installing your server, reboot it, and log in as root. The -first time you log-in, the Setup Agent will be displayed. (If you exit it early you can enter it again buy running the command -
-setup -- This should tool be used to configure the Firewall and SELinux. +
+Finish installing your server, reboot it, and log in as root. +
-+The first time you log-in, the Setup Agent will be displayed. +If you exit it early you can enter it again buy running the command +
+setup+
+This tool should be used to configure the Firewall and SELinux. +
-reboot+ +
Update your system to the latest versions of the system software using yum.
@@ -119,7 +125,7 @@ yum update Reboot your system before continuing with the installation.-Retrieve the rhel5_loncapa_yum file from the LON-CAPA install site: +Retrieve the centos5_loncapa_yum file from the LON-CAPA install site:
wget http://install.loncapa.org/versions/centos/5/centos5_loncapa_yum.conf @@ -127,33 +133,35 @@ wget http://install.loncapa.org/versionsInstall the centos5_loncapa_yum.conf
-
mv /etc/yum.conf /etc/yum.conf.backup cp centos5_loncapa_yum.conf /etc/yum.conf yum update- -Installing LON-CAPA
+ + +5. Installing LON-CAPA
+Import the LON-CAPA encryption key
+rpm --import http://install.loncapa.org/versions/centos/RPM-GPG-KEY-loncapaInstall prerequisites
Execute:
yum install LONCAPA-prerequisites-This may take a moment due to LON-CAPA's large number of dependencies. +This may take some minutes due to LON-CAPA's large number of dependencies.
Retrieve and execute LON-CAPA setup program
Retrieve the LON-CAPA setup with the following command:
-wget http://install.loncapa.org/versions/centos/5/centos5_install.tar +wget http://install.loncapa.org/linux/install.tarExtract the archive with the following command:
-tar xf centos5_install.tar +tar xf install.tarThis creates a directory named installation. Change to it and @@ -164,20 +172,26 @@ cd installation ./install.pl
-This script will prompt you for the MySQL root password and will download the latest LON-CAPA release.
-You can safely ignore the following warnings from gcc 4 when compiling pwauth:
-
-pwauth.c: In function ‘lastlog’:
-
-
-pwauth.c: In function ‘main’:
+The script is used to prepare a Linux system to run LON-CAPA, and can also be
+used to check the configuration of a system on which LON-CAPA has already been installed. Typically, though, you will run this script only once, when you first install LON-CAPA.
+
+The script will analyze your system to determine which actions are recommended. The script will then prompt you to choose the actions you would like taken. +Once a choice has been entered for all nine possible actions, required changes will be made. +
+The possible actions are:
-cd /root/loncapa-N.N (N.N should correspond to a version number like '1.3') +cd /root/loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.10.0') ./UPDATE
You will need to enter the LON-CAPA configuration information you determined -in the previous section. +in the previous section.
-You will need at least one user at your site who has the role of 'domain coordinator'. This user creates accounts for other users and grants them additional privileges. The make_domain_coordinator.pl script -invoked below requires that you enter the users password. The password will -show in plaintext as you type it. Feel free to use the "passwd username" -command to change it later. Replace USERNAME and DOMAIN with an -appropriate user name and your domain. +invoked below requires that you enter the user's password. +Feel free to use the "passwd username" command to change it later. +Replace USERNAME and DOMAIN with an appropriate user name and your domain.
-cd /root/loncapa-N.N/loncom/build +cd /root/loncapa-X.Y.Z/loncom/build perl make_domain_coordinator.pl USERNAME DOMAIN -(WILL PROMPT FOR PASSWORD HERE)-
The LON-CAPA network services take a moment to start. Most misconfigurations will be apparent at this step. @@ -267,12 +279,14 @@ please make sure you followed the instru Installing LON-CAPA Dependencies. If you still have errors, please contact the MSU LON-CAPA group.
-Point a web browser at your new machine and log in as the domain coordinator. Congratulations!
+If you've followed the steps above and the server doesn't start or you think