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