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