Diff for /doc/build/Attic/install.html between versions 1.7 and 1.14

version 1.7, 2000/11/21 15:35:09 version 1.14, 2002/04/23 12:41:23
Line 1 Line 1
 <HTML>  <!-- The LearningOnline Network with CAPA -->
 <HEAD>  <!-- $Id$ -->
 <TITLE>LON-CAPA Installation</TITLE>  <html>
 </HEAD>  <head>
 <BODY>  <title>LON-CAPA Installation</title>
 <H1>LON-CAPA Installation</H1>  <!-- pdfahref install.pdf -->
 <H3>Current Installation Procedure</H3>  <!-- button INSTALL -->
 <P>  </head>
 Scott Harrison  <body bgcolor='#ffffff'>
 </P>  <!-- preamble start -->
 <P>  <br />&nbsp;
 Last updated: 11/21/2000  <p>
 </P>  You will need to check all the following things to ensure proper
 <P>  installation of your LON-CAPA system.
 This is the current list of steps to support LON-CAPA installation.  These steps have  <ul>
 been tested.  <li><a href="#wwwuser">
 <OL>  Creating a user 'www'</a></li>
 <LI>Get Redhat 6.2 on a CD by  <li><a href="#shadow">
 <UL>  Make a LON-CAPA system work with shadow passwords</a></li>
 <LI>Using a RedHat 6.2 CD  <li><a href="#install">
 <LI>Downloading a RedHat 6.2 <A HREF="http://install.lon-capa.org/3.1/currentcdimage">CD image</A> and burning a CD  Installing LON-CAPA files</a></li>
 <LI>Or, alternatively do a network install from a <A HREF="http://install.lon-capa.org/3.1/currentcdsource">  <li><a href="#checkrpms">
 RedHat 6.2 CD source tree</A>.  You need to burn a boot floppy disk with a network boot image;  Checking your Linux RPMs</a></li>
 <A HREF="http://install.lon-capa.org/3.1/currentcdsource/images/bootnet-20000407.img">  <li><a href="#mysql">
 bootnet-20000407.img</A>.  (Download the image file; insert a blank floppy disk; and type a  Configuring the MySQL database</a></li>
 command similar to: <TT>dd if=bootnet-20000407.img of=/dev/fd0</TT>).  For installation, you  </ul>
 need to specify <TT>hobbes.lite.msu.edu/~loninst</TT> as your download URL, and <TT>/3.1/currentcdsource</TT>  <br />&nbsp;
 as the source location.  <!-- preamble end -->
 </UL>  <!-- maintext start -->
 <LI>Install RedHat 6.2  <a name="wwwuser" />
 <UL>  <h3>Creating a user 'www'</h3>
 <LI><B>Important: Do a "GNOME Workstation Install" and go with their default list of packages</B>  <p>
 <LI><B>Important: Make sure you add a user "www"</B>  Execute the following command to create a user named 'www' on your
 </UL>  LON-CAPA server:
 </P>  </p>
 <P>  <table bgcolor="#aaaaaa" border="1"><tr><td>
 After installation, restart the computer.  Login as root.  Enter these two commands:  <tt>/usr/sbin/useradd www</tt>
 <OL>  </td></tr></table>
 <LI><TT>lynx -source http://install.lon-capa.org/3.1/scripts/postinstall.pl&gt;postinstall.pl</TT>  <a name="shadow" />
 <LI><TT>perl postinstall.pl</TT>  <h3>Make a LON-CAPA system work with shadow passwords</h3>
 </OL>  <p>
 </P>  <table border="1">
 <P>  <tr><th>Step #</th><th>Description</th></tr>
 As postinstall.pl runs, you will be asked various questions.  Follow the instructions to correctly  <tr><td>
 enter in the appropriate parameter values.  <font size="+1">1</font>
 </P>  </td><td>
 <HR>  <p>Is your system using shadow passwords? (Note: LON-CAPA will
 <H1>Old steps; do not use these...</H1>  work with either MD5/non-MD5 configured systems).  If your
 Last updated: 11/01/2000  system is not using shadow passwords, then do not perform
 </P>  any of the additional steps.  If your system is using shadow
 <P>  passwords, then you will need to perform the additional steps below.
 This is the current list of steps to support LON-CAPA installation.  These steps have  </p>
 been tested.  <p>
 <OL>  <strong>How to detect:</strong>
 <LI>Get Redhat 6.2 on a CD by  <br />command: <tt>cat /etc/passwd | grep ':x:'</tt>
 <UL>  </p>
 <LI>Using a RedHat 6.2 CD  <p>If there is output such as "<tt>root:x:0:0:root:/root:/bin/bash</tt>",
 <LI>Downloading a RedHat 6.2 <A HREF="http://install.lon-capa.org/3.1/currentcdimage">CD image</A> and burning a CD  then your system is using shadow passwords and you will need to continue with
 <LI>Or, alternatively do a network install from a <A HREF="http://install.lon-capa.org/3.1/currentcdsource">  the steps below.
 RedHat 6.2 CD source tree</A>.  You need to burn a boot floppy disk with a network boot image;  </p>
 <A HREF="http://install.lon-capa.org/3.1/currentcdsource/images/bootnet-20000407.img">  </td></tr>
 bootnet-20000407.img</A>.  (Download the image file; insert a blank floppy disk; and type a  <tr><td>
 command similar to: <TT>dd if=bootnet-20000407.img of=/dev/fd0</TT>).  For installation, you  <font size='+1'>2</font>
 need to specify <TT>hobbes.lite.msu.edu/~loninst</TT> as your download URL, and <TT>/3.1/currentcdsource</TT>  </td><td>
 as the source location.  <p><strong>Retrieve the mod_auth_external source</strong> by
 </UL>  running the following command
 <LI>Install RedHat 6.2  </p>
 <UL>  <p><tt>
 <LI><B>Important: Do a "GNOME Workstation Install" and go with their default list of packages</B>  wget http://www.wwnet.net/~janc/software/mod_auth_external-2.1.13.tar.gz
 <LI><B>Important: Make sure you add a user "www"</B>  </tt>
 </UL>  </p>
 <LI>After installation, install extra RPMs/upgrades by downloading all files from  </td></tr>
 <A HREF="http://install.lon-capa.org/3.1/SupplementalRPMS/">  <tr><td>
 http://install.lon-capa.org/3.1/SupplementalRPMS</A>.  <font size='+1'>3</font>
 <UL>  </td><td>
 <LI>Use this command to install the RPMs you download: <TT>rpm -Uvh --force *.rpm</TT>.  <p><strong>More steps...</strong>
 </UL>  </p>
 <LI>Remove extra RPMs by downloading and running the script   <p><tt>
 <A HREF="http://install.lon-capa.org/3.1/scripts/remove_extra.sh">  There are more steps to include here.
 http://install.lon-capa.org/3.1/scripts/remove_extra.sh</A> as root.  </tt>
 <LI>After installing the supplemental RPMS, install a final RPM set by downloading all files from  </p>
 <A HREF="http://install.lon-capa.org/3.1/FinalRPMS/">  </td></tr>
 http://install.lon-capa.org/3.1/FinalRPMS</A>.  </table>
 <UL>  </p>
 <LI>Use this command to install the RPMs you download: <TT>rpm -Uvh --force *.rpm</TT>.  <a name="install" />
 </UL>  <h3>Installing LON-CAPA files</h3>
 <LI>Configure needed files.  <p>
 <UL>  Download the most current
 <LI>Currently, reconfiguration must be handled manually and involves an administrator  <a href="http://install.lon-capa.org/versions/current/loncapa.tar.gz">
 altering configuration files present throughout the system.  For a list of these  loncapa.tar.gz</a>.
 files and their descriptions, visit <A HREF="http://install.lon-capa.org/3.1/loncapafiles/loncapafiles.html">  </p>
 http://install.lon-capa.org/3.1/loncapafiles/loncapafiles.html</A>.  <p>
 </UL>  The <strong>UPDATE</strong> command will refresh your filesystem with all
 <LI>Important files are /etc/httpd/conf/access.conf, /etc/ntp.conf, /etc/krb.conf,    the latest LON-CAPA software.
 /home/httpd/lonTabs/spare.tab, /home/httpd/lonTabs/hosts.tab (if setting up a cluster different  </p>
 than MSU's).  <table bgcolor="#aaaaaa" border="1">
 <LI>Unshadow passwords  <tr><td><tt>./UPDATE</tt></td></tr>
 <UL>  </table>
 <PRE>You can do this by these 5 steps:  <a name="checkrpms" />
 1. enter the system command, as "root", pwunconv  <h3>Checking your Linux RPMs</h3>
 2. enter the system command, as "root", grpunconv  <p>
 3. Set the following to be the /etc/pam.d/login file on your system  The <strong>CHECKRPMS</strong> command will check the RPMs on your machine
 #%PAM-1.0  against an FTP repository.
 auth       required     /lib/security/pam_securetty.so  </p>
 auth       required     /lib/security/pam_pwdb.so shadow nullok  <table bgcolor="#aaaaaa" border="1">
 auth       required     /lib/security/pam_nologin.so  <tr><td><tt>./CHECKRPMS</tt></td></tr>
 account    required     /lib/security/pam_pwdb.so  </table>
 password   required     /lib/security/pam_cracklib.so  <a name="mysql" />
 password   required     /lib/security/pam_pwdb.so nullok use_authtok  <h3>Configuring the MySQL database</h3>
 session    required     /lib/security/pam_pwdb.so  <p>
 session    optional     /lib/security/pam_console.so  The following commands describe how to configure the MySQL database
 4. Set the following to be the /etc/pam.d/passwd file on your system  on your LON-CAPA server.
 #%PAM-1.0  </p>
 auth       required     /lib/security/pam_pwdb.so shadow nullok  <table bgcolor="#aaaaaa" border="1"><tr><td>
 account    required     /lib/security/pam_pwdb.so  <pre>
 password   required     /lib/security/pam_cracklib.so retry=3  Enter the mysql shell---
 password   required     /lib/security/pam_pwdb.so use_authtok nullok  mysql -u root -p mysql
 5. Set/reset passwords.  As "root" use 'passwd', and 'passwd www'  
 to change the important passwords.  This creates crypt-processible  Run these commands---
 passwords in /etc/passwd.  CREATE DATABASE loncapa;
 </PRE>  
 </UL>  INSERT INTO user (Host, User, Password)
 <LI>Run, as root, <TT>ln -s /etc/mime.types /etc/httpd/conf/mime.types</TT>  VALUES ('localhost','www',password('SOMEPASSWORD'));
 <LI>Run, as root, <TT>/etc/rc.d/init.d/httpd start</TT>.  
 <LI>Run, as root, <TT>/etc/rc.d/init.d/loncontrol start</TT>.  GRANT ALL PRIVILEGES ON *.* TO www@localhost;
 <LI>After 10 minutes, you should be able to check the file <TT>/home/httpd/html/lon-status/index.html</TT>  
 to see if your machine has been successfully set up.  FLUSH PRIVILEGES;
 </UL>  
 </OL>  shell> mysql -u root mysql
 </P>  mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password');
 <H3>Future Installation Procedure (not yet implemented)</H3>  </pre>
 <P>  </td></tr></table>
 In the future, LON-CAPA Installation will be distributed on a CD complete with a  <!-- maintext end -->
 customized interface.  Many elements for doing this have been coded, and are in place, but  </body>
 it awaits completion.  </html>
 </P>  
 </BODY>  
 </HTML>  

Removed from v.1.7  
changed lines
  Added in v.1.14


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>