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

version 1.5, 2000/11/01 16:08:55 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/01/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>http://www.lon-capa.org</TT> as your download URL, and <TT>/install/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:
 <LI>After installation, install extra RPMs/upgrades by downloading all files from  </p>
 <A HREF="http://install.lon-capa.org/3.1/SupplementalRPMS/">  <table bgcolor="#aaaaaa" border="1"><tr><td>
 http://install.lon-capa.org/3.1/SupplementalRPMS</A>.  <tt>/usr/sbin/useradd www</tt>
 <UL>  </td></tr></table>
 <LI>Use this command to install the RPMs you download: <TT>rpm -Uvh --force *.rpm</TT>.  <a name="shadow" />
 </UL>  <h3>Make a LON-CAPA system work with shadow passwords</h3>
 <LI>Remove extra RPMs by downloading and running the script   <p>
 <A HREF="http://install.lon-capa.org/3.1/scripts/remove_extra.sh">  <table border="1">
 http://install.lon-capa.org/3.1/scripts/remove_extra.sh</A> as root.  <tr><th>Step #</th><th>Description</th></tr>
 <LI>After installing the supplemental RPMS, install a final RPM set by downloading all files from  <tr><td>
 <A HREF="http://install.lon-capa.org/3.1/FinalRPMS/">  <font size="+1">1</font>
 http://install.lon-capa.org/3.1/FinalRPMS</A>.  </td><td>
 <UL>  <p>Is your system using shadow passwords? (Note: LON-CAPA will
 <LI>Use this command to install the RPMs you download: <TT>rpm -Uvh --force *.rpm</TT>.  work with either MD5/non-MD5 configured systems).  If your
 </UL>  system is not using shadow passwords, then do not perform
 <LI>Configure needed files.  any of the additional steps.  If your system is using shadow
 <UL>  passwords, then you will need to perform the additional steps below.
 <LI>Currently, reconfiguration must be handled manually and involves an administrator  </p>
 altering configuration files present throughout the system.  For a list of these  <p>
 files and their descriptions, visit <A HREF="http://install.lon-capa.org/3.1/loncapafiles/loncapafiles.html">  <strong>How to detect:</strong>
 http://install.lon-capa.org/3.1/loncapafiles/loncapafiles.html</A>.  <br />command: <tt>cat /etc/passwd | grep ':x:'</tt>
 </UL>  </p>
 <LI>Important files are /etc/httpd/conf/access.conf, /etc/ntp.conf, /etc/krb.conf,    <p>If there is output such as "<tt>root:x:0:0:root:/root:/bin/bash</tt>",
 /home/httpd/lonTabs/spare.tab, /home/httpd/lonTabs/hosts.tab (if setting up a cluster different  then your system is using shadow passwords and you will need to continue with
 than MSU's).  the steps below.
 <LI>Unshadow passwords  </p>
 <UL>  </td></tr>
 <PRE>You can do this by these 5 steps:  <tr><td>
 1. enter the system command, as "root", pwunconv  <font size='+1'>2</font>
 2. enter the system command, as "root", grpunconv  </td><td>
 3. Set the following to be the /etc/pam.d/login file on your system  <p><strong>Retrieve the mod_auth_external source</strong> by
 #%PAM-1.0  running the following command
 auth       required     /lib/security/pam_securetty.so  </p>
 auth       required     /lib/security/pam_pwdb.so shadow nullok  <p><tt>
 auth       required     /lib/security/pam_nologin.so  wget http://www.wwnet.net/~janc/software/mod_auth_external-2.1.13.tar.gz
 account    required     /lib/security/pam_pwdb.so  </tt>
 password   required     /lib/security/pam_cracklib.so  </p>
 password   required     /lib/security/pam_pwdb.so nullok use_authtok  </td></tr>
 session    required     /lib/security/pam_pwdb.so  <tr><td>
 session    optional     /lib/security/pam_console.so  <font size='+1'>3</font>
 4. Set the following to be the /etc/pam.d/passwd file on your system  </td><td>
 #%PAM-1.0  <p><strong>More steps...</strong>
 auth       required     /lib/security/pam_pwdb.so shadow nullok  </p>
 account    required     /lib/security/pam_pwdb.so  <p><tt>
 password   required     /lib/security/pam_cracklib.so retry=3  There are more steps to include here.
 password   required     /lib/security/pam_pwdb.so use_authtok nullok  </tt>
 5. Set/reset passwords.  As "root" use 'passwd', and 'passwd www'  </p>
 to change the important passwords.  This creates crypt-processible  </td></tr>
 passwords in /etc/passwd.  </table>
 </PRE>  </p>
 </UL>  <a name="install" />
 <LI>Run, as root, <TT>ln -s /etc/mime.types /etc/httpd/conf/mime.types</TT>  <h3>Installing LON-CAPA files</h3>
 <LI>Run, as root, <TT>/etc/rc.d/init.d/httpd start</TT>.  <p>
 <LI>Run, as root, <TT>/etc/rc.d/init.d/loncontrol start</TT>.  Download the most current
 <LI>After 10 minutes, you should be able to check the file <TT>/home/httpd/html/lon-status/index.html</TT>  <a href="http://install.lon-capa.org/versions/current/loncapa.tar.gz">
 to see if your machine has been successfully set up.  loncapa.tar.gz</a>.
 </UL>  </p>
 </OL>  <p>
 </P>  The <strong>UPDATE</strong> command will refresh your filesystem with all
 <H3>Future Installation Procedure (not yet implemented)</H3>  the latest LON-CAPA software.
 <P>  </p>
 In the future, LON-CAPA Installation will be distributed on a CD complete with a  <table bgcolor="#aaaaaa" border="1">
 customized interface.  Many elements for doing this have been coded, and are in place, but  <tr><td><tt>./UPDATE</tt></td></tr>
 it awaits completion.  </table>
 </P>  <a name="checkrpms" />
 </BODY>  <h3>Checking your Linux RPMs</h3>
 </HTML>  <p>
   The <strong>CHECKRPMS</strong> command will check the RPMs on your machine
   against an FTP repository.
   </p>
   <table bgcolor="#aaaaaa" border="1">
   <tr><td><tt>./CHECKRPMS</tt></td></tr>
   </table>
   <a name="mysql" />
   <h3>Configuring the MySQL database</h3>
   <p>
   The following commands describe how to configure the MySQL database
   on your LON-CAPA server.
   </p>
   <table bgcolor="#aaaaaa" border="1"><tr><td>
   <pre>
   Enter the mysql shell---
   mysql -u root -p mysql
   
   Run these commands---
   CREATE DATABASE loncapa;
   
   INSERT INTO user (Host, User, Password)
   VALUES ('localhost','www',password('SOMEPASSWORD'));
   
   GRANT ALL PRIVILEGES ON *.* TO www@localhost;
   
   FLUSH PRIVILEGES;
   
   shell> mysql -u root mysql
   mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password');
   </pre>
   </td></tr></table>
   <!-- maintext end -->
   </body>
   </html>

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


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