Index: docs/user/metacatinstall.html
===================================================================
--- docs/user/metacatinstall.html	(revision 4636)
+++ docs/user/metacatinstall.html	(nonexistent)
@@ -1,516 +0,0 @@
-<!-- 
-  *   '$RCSfile$'
-  *     Purpose: web page describing the installation of Metacat
-  *   Copyright: 2000 Regents of the University of California and the
-  *               National Center for Ecological Analysis and Synthesis
-  *     Authors: Chad Berkley
-  *
-  *    '$Author$'
-  *    '$Date$'
-  *    '$Revision$'
-  *
-  *
-  -->
-  
-<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
-<html>
-
-<head>
-  <title>Metacat Installation Instructions</title>
-  <link rel="stylesheet" type="text/css" href="./common.css">
-  <link rel="stylesheet" type="text/css" href="./default.css">
-</head>
-
-<body>
-
-<table class="tabledefault" width="100%">
-<tr><td rowspan="2"><img src="./images/KNBLogo.gif"></td>
-<td colspan="7">
-<div class="title">Metacat UNIX Installation Instructions</div>
-</td>
-</tr>
-<tr>
-  <td><a href="/" class="toollink"> KNB Home </a></td>
-  <td><a href="/data.html" class="toollink"> Data </a></td>
-  <td><a href="/people.html" class="toollink"> People </a></td>
-  <td><a href="/informatics" class="toollink"> Informatics </a></td>
-  <td><a href="/biodiversity" class="toollink"> Biocomplexity </a></td>
-  <td><a href="/education" class="toollink"> Education </a></td>
-  <td><a href="/software" class="toollink"> Software </a></td>
-</tr>
-</table>
-<hr>
-
-<div class="header1">Table of Contents</div>
-  <div class="toc">
-    <div class="toc1"><a href="#QuickInstructions">Quick Instructions</a></div>
-      <div class="toc2"><a href="#QuickInstall">Quick Installation</a></div> 
-      <div class="toc2"><a href="#QuickUpdate">Quick Update</a></div>
-    <div class="toc1"><a href="#SourceInstall">Installing From Source Code</a></div>
-      <div class="toc2"><a href="#WindowsXP">Windows XP</a></div>
-      <div class="toc2"><a href="#Ubuntu8.04">Ubuntu 8.04</a></div>
-      <div class="toc2"><a href="#MacOSX">Mac OS X</a></div>
-    <div class="toc1"><a href="#PreInstallation">Pre-Installation</a></div>
-      <div class="toc2"><a href="#MinRequirements">Minimum Requirements</a></div> 
-      <div class="toc2"><a href="#AdditionalRequiredSoftware">Additional Required Software</a></div>
-    <div class="toc1"><a href="#AdditionalSoftwareSetup">Additional Software Setup</a></div>
-      <div class="toc2"><a href="#AdditionalSoftwareJava">Java</a></div> 
-      <div class="toc2"><a href="#AdditionalSoftwareOracle">Oracle</a></div>
-      <div class="toc2"><a href="#AdditionalSoftwarePostgres">PostgreSQL</a></div>
-      <div class="toc2"><a href="#AdditionalSoftwareAnt">Ant</a></div>
-      <div class="toc2"><a href="#AdditionalSoftwareTomcat">Tomcat</a></div>
-    <div class="toc1"><a href="#InstallingMetacat">Installing Metacat</a></div>
-      <div class="toc2"><a href="#InstallDownloadMetacat">Download Metacat Application</a></div>
-      <div class="toc2"><a href="#InstallMetacatWar">Install Metacat War</a></div>
-      <div class="toc2"><a href="#InstallRestartTomcat">Restart Tomcat</a></div>
-      <div class="toc2"><a href="#InstallTroubleshooting">Troubleshooting</a></div>
-      <div class="toc2"><a href="#InstallConfigureMetacat">Configure Metacat</a></div>
-    <div class="toc1"><a href="#UpgradingMetacat">Upgrading Existing Metacat</a></div>
-      <div class="toc2"><a href="#UpgradeStopMetacat">Stop the Running Metacat</a></div>
-      <div class="toc2"><a href="#UpgradeDownloadMetacat">Download Latest Metacat Application</a></div>
-      <div class="toc2"><a href="#UpgradeMetacatWar">Upgrade Metacat War</a></div>
-      <div class="toc2"><a href="#UpgradeRestartTomcat">Restart Tomcat</a></div>
-      <div class="toc2"><a href="#UpgradeTroubleshooting">Troubleshooting</a></div>
-      <div class="toc2"><a href="#UpgradeConfigureMetacat">Configure Metacat</a></div>       
-    <div class="toc1"><a href="#Registry">Web Based Registry</a></div>
-    <div class="toc1"><a href="#VersionNotes">Version Installation Notes</a></div>
-      <div class="toc2"><a href="#1_9InstallNotes">1.9 Installation Notes</a></div> 
-  </div> 
-
-<a name="QuickInstructions"></a><div class="header1">Quick Instructions</div>
-
-  <a name="QuickInstall"></a><div class="header2">Quick Installation</div>  
-  <p>These are the installation instructions for a system that has Ubuntu 8.04 installed
-  and has never had Metacat installed on it:</p>
- 
-  <div class=indent>
-    <a name="DownloadMetacatInstall"></a><div class="header3">Download Metacat Package</div>
-    <p>Browse to the 
-      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
-      In the Metacat section, select the link that looks like:</p>
-	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
-    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
-    <p>Extract the Metacat package files by typing:</p>
-      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
-    <p>You should see a war file and several supporting files.  The location where these files
-    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
-    of this documentation.
-  </div>
-  
-  <div class=indent>
-    <a name="CreateMetacatDirs"></a><div class="header3">Create Metacat Directories</div>
-    <p>Create the metacat utility base directory by typing:</p>
-      <div class="code">sudo mkdir /var/metacat</div>
-	  <div class="code">sudo chown -R &lt;tomcat_user&gt; /var/metacat</div>
-    <p>where &lt;tomcat_user&gt; is the user that will start Tomcat.  If you are 
-	starting Tomcat as the root user, you do not need to run the chown command.</p>
-  </div>
-
-  <div class=indent>
-    <a name="InstallJava"></a><div class="header3">Install Java</div>
-    <p>Install Java by typing:</p>
-      <div class="code">sudo apt-get install sun-java5-jdk</div>
-	<p>hit "ok" then "yes" for license agreement<p>
-  </div>
-
-  <div class=indent>
-   <a name="InstallApache"></a><div class="header3">Install Apache</div>
-	<p>Install Apache and and Mod JK packages by typing:</p>	
-      <div class="code">sudo apt-get install apache2 libapache2-mod-jk</div>
-    <p>Set up Mod JK apache configuration by typing:</p>
-      <div class="code">sudo cp &lt;metacat_package_dir&gt;/jk.conf /etc/apache2/mods-available</div>
-      <div class="code">sudo cp &lt;metacat_package_dir&gt;/workers.properties /etc/apache2</div>
-    <p>Enable Apache Mod JK by typing:</p>
-      <div class="code">sudo a2dismod jk</div>
-      <div class="code">sudo a2enmod jk</div>
-    <p>Set up and enable knb (Metacat) site configurations by typing:</p>
-      <div class="code">sudo cp &lt;metacat_package_dir&gt;/knb /etc/apache2/sites-available</div>
-      <div class="code">sudo a2ensite knb</div>
-    <p>If you want to run an LSID server along with the Metacat server, set up and enable the authority service site 
-      configurations by typing:</p>
-      <div class="code">sudo cp &lt;metacat_package_dir&gt;/authority /etc/apache2/sites-available</div>
-      <div class="code">sudo a2ensite authority</div>
-    <p>Restart apache to bring in changes by typing:</p>
-      <div class="code">sudo /etc/init.d/apache2 force-reload</div>
-  </div>
-     
-  <div class=indent> 
-    <a name="InstallTomcat"></a><div class="header3">Install Tomcat</div>
-    <p>Install Tomcat 5.5 by typing:</p>
-      <div class="code">sudo sudo apt-get install tomcat5.5</div> 
-    <p>Install Metacat friendly Tomcat startup script by typing:</p>     
-      <div class="code">sudo /etc/init.d/tomcat5.5 stop</div>    
-      <div class="code">sudo mv /etc/init.d/tomcat5.5 /etc/init.d/tomcat5.5.bak</div>
-      <div class="code">sudo cp &lt;metacat_package_dir&gt;/tomcat5.5 /etc/init.d/tomcat5.5</div>
-      <div class="code">sudo chmod +x /etc/init.d/tomcat5.5</div>
-    </p>
-  </div>
-
-  <div class=indent>    
-    <a name="InstallPostgres"></a><div class="header3">Install PostgreSQL Database</div> 
-    <p>Install PostgreSQL by typing:</p>
-      <div class="code">sudo apt-get install postgresql</div>
-    <p>Change to postgres user:</p>
-      <div class="code">sudo su - postgres</div>
-    <p>Setup empty Metacat database instance editing the postgreSQL configuration file:</p>  
-      <div class="code">gedit /etc/postgresql/8.3/main/pg_hba.conf</div>
-    <p>and adding the following line:</p>
-      <div class="code">host metacat metacat 127.0.0.1 255.255.255.255 password</div>
-    <p>Save the file, then create the metacat instance:</p>
-      <div class="code">createdb metacat</div>
-    <p>Log into postgreSQL by typing:</p>
-	  <div class="code">psql metacat</div>
-	<p>and create the metacat user by typing at the psql prompt:</p>
-	  <div class="code">CREATE USER metacat WITH UNENCRYPTED PASSWORD 'your_password';</div>
-	<p>where your_password is whatever password you would like for the metacat user.</p>
-	<p>Exit PostgreSQL by typing</p>
-	  <div class="code">\q</div>
-	<p>Restart the PostgreSQL database to bring in changes:</p>
-	  <div class="code">/etc/init.d/postgresql-8.3 restart</div>
-	<p>Log out of the postgres user account by typing:</p>
-	  <div class="code">logout</div>
-	<p>Test the installation and metacat account by typing:</p>
-	  <div class="code">psql -U metacat -W -h localhost metacat</div>
-	<p>Log back out of postgreSQL:</p>
-	  <div class="code">\q</div>
-  </div>
-
-  <div class=indent>	
-    <a name="QuickInstallMetacatWar"></a><div class="header3">Install Metacat War</div> 
-    <p>Copy the war file to Tomcat:</p>
-	  <div class="code">sudo cp &lt;metacat_package_dir&gt;/knb.war /usr/share/tomcat5.5/webapps</div>
-	<p>Restart Tomcat:</p>  
-	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
-  </div>
-  
-  <div class=indent>	
-    <a name="QuickInstallLsidWar"></a><div class="header3">Install LSID War</div> 
-    <p>If you want to run an LSID server along with the Metacat server, copy the 
-    authority.war file to Tomcat:</p>
-	  <div class="code">sudo cp &lt;metacat_package_dir&gt;/authority.war /usr/share/tomcat5.5/webapps</div>
-	<p>Restart Tomcat:</p>  
-	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
-  </div>
-	
-  <div class=indent>	
-    <a name="ConfigureMetacatInstall"></a><div class="header3">Configure Metacat</div> 
-    <p>Refer to the documentation on <a href="./metacatconfigure.html">Metacat Confguration</a>
-    to complete your installation of Metacat.</p>
-  </div>
-    
-  <a name="QuickUpdate"></a><div class="header2">Quick Update</div>
-  <p>These are the instructions for a system that already has Metacat installed on it, 
-  but needs a Metacat upgrade:</p>
-  
-  <div class=indent>
-    <a name="DownloadMetacatUpdate"></a><div class="header3">Download Metacat Package</div>
-    <p>Browse to the 
-      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
-      In the Metacat section, select the link that looks like:</p>
-	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
-    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
-    <p>Extract the Metacat package files by typing:</p>
-      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
-    <p>You should see a war file and several supporting files.  The location where these files
-    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
-    of this documentation.
-  </div>
-  
-  <div class=indent>
-    <a name="BackupApplication"></a><div class="header3">Backup Existing Metacat Installation</div>
-    <p>To be safe, it is best to backup the existing Metacat installation.  Do so by typing: </p>
-	  <div class="code">cp <web_app_dir>/knb <web_app_dir>/knb.bak</div>
-	  <div class="code">cp <web_app_dir>/knb.war <web_app_dir>/knb.war.bak</div>
-	<p>Of course, you can use any backup strategy you like (or none at all).</p>
-  </div>
-  
-    <div class=indent>	
-    <a name="QuickUpdateMetacatWar"></a><div class="header3">Install Metacat War</div> 
-    <p>Copy the war file to Tomcat:</p>
-	  <div class="code">sudo cp knb.war /usr/share/tomcat5.5/webapps</div>
-	<p>Restart Tomcat:</p>  
-	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
-  </div>
-  
-  <div class=indent>	
-    <a name="QuickUpdateLsidWar"></a><div class="header3">Update LSID War</div> 
-    <p>If you want to run an LSID server along with the Metacat server, copy the 
-    authority.war file to Tomcat:</p>
-	  <div class="code">sudo cp &lt;metacat_package_dir&gt;/authority.war /usr/share/tomcat5.5/webapps</div>
-	<p>Restart Tomcat:</p>  
-	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
-  </div>
-	
-  <div class=indent>	
-    <a name="ConfigureMetacatInstall"></a><div class="header3">Configure Metacat</div> 
-    <p>Refer to the documentation on <a href="./metacatconfigure.html">Metacat Confguration</a>
-    to complete your installation of Metacat.</p>
-  </div>
-
-<a name="SourceInstall"></a><div class="header1">Installing From Source Code</div>
-<p>These documents are meant to outline the metacat installation process on specific platforms. They are 
-<strong><em>not</em></strong> a substitute for the below instructions and only meant as a supplemental guideline. </p>  
-  <a name="WindowsXP"></a><div class="header2">Windows XP</div> 
-    <p> See the <a href="os_specific/install_metacat_windows.html">Windows XP installation instructions</a>.</p>
-  <a name="Ubuntu8.04"></a><div class="header2">Ubuntu 8.04</div>
-    <p> See the <a href="os_specific/install_metacat_ubuntu.html">Ubuntu 8.04 installation instructions</a>.</p>
-  <a name="MacOSX"></a><div class="header2">Mac OS X</div>
-    <p> See the <a href="os_specific/install_metacat_mac.html">Mac OS X installation instructions</a>.</p>
-
-<a name="PreInstallation"></a><div class="header1">Pre-Installation</div>
-  <a name="MinRequirements"></a><div class="header2">Minimum Requirements</div> 
-  <p>
-   Installing Metacat requires a server running an SQL92 compliant database
-   (Oracle 8i or Postgresql recommended) with at least 128MB RAM, and a Pentium III class
-   processor or higher.  The amount of disk space required depends on the
-   size of your RDBMS tablespace (which should be at least 10 MB, 
-   however Metacat itself requires only about 1 MB of free space after 
-   installation).  These instructions assume a Linux environment but may
-   work on other UNIX type environments, however this has not been tested.
-  </p>
-  
-  <a name="AdditionalRequiredSoftware"></a><div class="header2">Additional Required Software</div>
-  <p>
-   The server on which you wish to install Metacat must have the following
-   software installed and running correctly before attempting to install
-   Metacat.
-   <ul>
-     <li><a href="http://www.oracle.com">Oracle 8i</a> (or another SQL92
-         compliant RDBMS like Postgres)</li>
-     <li><a href="http://jakarta.apache.org/ant/index.html">Apache Jakarta-Ant</a>
-     </li>
-     <li><a href="http://jakarta.apache.org/tomcat/index.html">Apache Jakarta-Tomcat</a>
-       <p class="emphasis">Note: For a more robust web serving environment, 
-       Apache web server should
-       be installed along with Tomcat and the two should be integrated
-       as described on the Apache web site.</p>
-     </li>
-   </ul>
-  </p>
-
-<a name="AdditionalSoftwareSetup"></a><div class="header1">Additional Software Setup</div>
-  <a name="AdditionalSoftwareJava"></a><div class="header2">Java</div>
-  <p>You'll need a recent Java SDK; J2SE 1.4.2 or later is required.  The latest metacat release
-  has been tested most extensively with <a href="http://java.sun.com/j2se/1.5.0/">J2SE 5.0</a>
-  and this is the recommended version.
-  Make sure that JAVA_HOME environment variable is properly set and that both
-  java and javac are on your PATH.
-  </p>
-  <a name="AdditionalSoftwareOracle"></a><div class="header2">Oracle 8i</div>
-  <p>The Oracle RDBMS must be installed and running as a daemon on the system.
-   In addition the JDBC listener must be enabled.  You can enable it by
-   logging in as your Oracle user and typing the following:</p>
-   
-     <div class="code">lsnrctl start</div>
-     
-   <p>Your instance should have a table space of at least 5 MB (10 MB or higher 
-   recommended).  You should also have a username specific to Metacat
-   created and enabled.  This user must have most normal permissions 
-   including CREATE SESSION, CREATE TABLE, CREATE INDEX, CREATE TRIGGER, 
-   EXECUTE PROCEDURE, EXECUTE TYPE, etc.  If an action is unexplainably 
-   rejected by Metacat it is probably because the user permissions are not
-   correctly set.</p>
-   
-  <a name="AdditionalSoftwarePostgreSQL"></a><div class="header2">PostgreSQL</div>
-  <p>PostgreSQL can be easily installed on most linux distributions and on
-  Windows (using cygwin) and Mac OS X.  Using Fedora Core or RedHat Linux,
-  you can install the rpms for postgres and then run </p>
-  
-    <div class="code">/etc/init.d/postgresql start</div> 
-    
-  <p>in order to start the database. 
-  On Ubuntu and other Debian-based Linux distributions, you can use the apt-get command
-  to install postgres: <code>sudo apt-get install postgresql-8.0</code> and 
-  then run <code>/etc/init.d/postgresql-8.0 start</code> to start.
-  
-  This initializes the data files.  You need to do a bit of configuration
-  to create a database and set up a user account and allow internet access
-  via jdbc.  See the postgres documentation for this, but here is a quick 
-  start:
-  <ul>
-     <li>Switch to the "postgres" user account and edit "data/pg_hba.conf", adding the following line to the file:<br>
-     <code>host   metacat  metacat      127.0.0.1         255.255.255.255   password</code><br>
-     If your host uses IPv6 addresses, you may need this line instead:
-     <code>host   metacat  metacat      ::1               ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff password</code></li>
-     <li>If you are using Postgresql pre-8.0, you must edit the "data/postgres.conf" file and uncomment and edit the line
-     starting with "tcpip_socket" so that it reads 
-     <code>tcpip_socket = true</code></li>
-     <li>Run <code>createdb metacat</code> to create a new database</li>
-     <li>Run <code>psql metacat</code> to log in using the postgres account and create a new "metacat" user account
-     <ul>
-        <li>In postgres, run <code>CREATE USER metacat WITH UNENCRYPTED PASSWORD 'apasswordyoulike';</code></li>
-        <li>This creates a new account called metacat on the database named metacat</li>
-        <li>Note: there are many ways to do this, so others such as using 
-        ENCRYPTED passwords will work fine.</li>
-     </ul>
-     </li>
-     <li>Exit the postgres account back to root and restart the postgres 
-     database with <code>/etc/init.d/postgresql restart</code></li>
-     <li>Test logging into the postgres db using the metacat account with 
-     the following command: 
-     <code>psql -U metacat -W -h localhost metacat</code></li>
-  </ul>
-  </p>
-  
-  <a name="AdditionalSoftwareAnt"></a><div class="header2">Ant</div>
-  <p>
-   Ant is a Java based build application similar to Make on UNIX systems.  
-   It takes in installation parameters from a file in the root installation
-   directory named "build.xml".  The Metacat CVS module contains a default
-   build.xml file that may require some modification upon installation.  Ant
-   should be installed on the system and the "ant" executable shell script 
-   should be available in the users path. The latest metacat release was tested with 
-   Ant 1.6.5. <!-- We note that the current build is 
-   not working with Ant 1.6.x, so you'll need to use an earler version.  We have 
-   successfully used Ant 1.5.1, 1.5.2, and some earlier versions. -->
-  </p>
-  
-  <a name="AdditionalSoftwareTomcat"></a><div class="header2">Tomcat</div>
-  <p>
-    Install Tomcat into the directory of your choice. The directory in which 
-    you install Tomcat itself will be referred to as the "$CATALINA_HOME".
-    We recommend that you install Tomcat version 5.5.  More details about 
-    Tomcat installation are available <a href=" http://jakarta.apache.org/tomcat/index.html">here</a>.
-  </p>
-
-<a name="InstallingMetacat"></a><div class="header1">Installing Metacat</div>
-  <a name="protocol"></a>
-  <p>This section is only for a fresh installation. If you are upgrading an existing Metacat, please skip
-  this section and go to the next one - <a href="metacatinstall.html#Upgrade">Upgrading Existing Metacat</a>
-  
-  <a name="InstallDownloadMetacat"></a><div class="header2">Download Metacat Application</div>
-    <p>Browse to the 
-      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
-      In the Metacat section, select the link that looks like:</p>
-	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
-    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
-    <p>Extract the Metacat package files by typing:</p>
-      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
-    <p>You should see a war file and several supporting files.  The location where these files
-    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
-    of this documentation.
-	
-  <a name="InstallMetacatWar"></a><div class="header2">Install Metacat War</div> 
-    <p>Copy the war file to Tomcat:</p>
-	  <div class="code">sudo cp knb.war /usr/share/tomcat5.5/webapps</div>
-	<p>Restart Tomcat:</p>  
-	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
-
-  <a name="InstallRestartTomcat"></a><div class="header2">Restart Tomcat</div>
-  <p>Once you have successfully installed Metacat, there is one more step.  Tomcat
-   (and Apache if you have Tomcat integrated with it) must be restarted.  To do
-   this, login as the user that runs your tomcat server (often "tomcat"),
-   go to $CATALINA_HOME/bin and type: </p>
-   
-     <div class="code">./shutdown.sh</div>
-     <div class="code">./startup.sh</div>
-   
-   <p>In the Tomcat startup messages you should see something in the log file like:</p>
-   
-     <div class="code">Metacat: [WARN]: Metacat (1.9.0) initialized. [edu.ucsb.nceas.metacat.MetaCatServlet]</div>
-
-   <p>If you see that message Tomcat has successfully loaded the Metacat servlet.
-   Next, try to run your new servlet.  Go to a web browser and type:</p>
-   
-     <div class="code">http://yourserver.yourdomain.com/yourcontext/</div>
-     
-   <p>You should substitute your context name for "yourcontext" in the url above.
-   If everything is working correctly, you should see a Metacat configuration screen.  Note that if you do not have Tomcat integrated with
-   Apache you will probably have to type:</p>
-   
-     <div class="code">http://yourserver.yourdomain.com:8080/yourcontext/</div>
-
-  <a name="InstallTroubleshooting"></a><div class="header2">Troubleshooting</div>
-  <p>If you see something like:</p>
-  
-    <div class="code">java.lang.InternalError: Can't connect to X11 window server using 'yourservanme:0.0' as the value of the DISPLAY variable.</div>
-  
-  <p>You should add this line: </p>
-  
-    <div class="code">JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS"</div> 
-  
-  <p>at the first line of the catalina.sh file in tomcat bin directory. The reason is that 
-  GeoServer uses X11 windows to draw graphics.</p>
-  
-  <a name="InstallConfigureMetacat"></a><div class="header2">Configure Metacat</div>
-  <p>Once you see the Metacat configuration screen, you can follow the instructions in the 
-  <a href="./metacatconfigure.html"> Configuring Metacat Section</a> 
-  to complete the internal configuration of Metacat.</p>
-
-<a name="UpgradingMetacat"></a><div class="header1">Upgrading Existing Metacat</div>
-  <a name="protocol"></a>
-  <p>The following instructions are for upgrading an existing Metacat.
-  
-  <a name="UpgradeStopMetacat"></a><div class="header2">Stop the Running Metacat</div>
-   <p>To do this, login as the user that runs your tomcat server (often "tomcat"),
-   go to $CATALINA_HOME/bin and type:</p>
-   
-   <div class="code">./shutdown.sh</div>  
-  
-  <a name="UpgradeDownloadMetacat"></a><div class="header2">Download Latest Metacat Application</div>
-    <p>Browse to the 
-      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
-      In the Metacat section, select the link that looks like:</p>
-	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
-    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
-    <p>Extract the Metacat package files by typing:</p>
-      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
-    <p>You should see a war file and several supporting files.  The location where these files
-    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
-    of this documentation.</p>
- 
-   <a name="UpgradeMetacatWar"></a><div class="header2">Upgrade Metacat War</div> 
-    <p>Copy the war file to Tomcat:</p>
-	  <div class="code">sudo cp knb.war /usr/share/tomcat5.5/webapps</div>
-	<p>Remove (or rename) the existing application directory:</p>
-	  <div class="code">sudo rm -rf /usr/share/tomcat5.5/webapps/knb</div>
-	  <p> or </p>
-	  <div class="code">sudo mv /usr/share/tomcat5.5/webapps/knb /usr/share/tomcat5.5/webapps/knb.bak</div>
-	<p>Restart Tomcat:</p>  
-	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
- 
-  <a name="UpgradeRestartTomcat"></a><div class="header2">Restart Tomcat</div>
-    <p>Once you have successfully installed Metacat, there is one more step.  Tomcat
-    (and Apache if you have Tomcat integrated with it) must be restarted.  To do
-    this, login as the user that runs your tomcat server (often "tomcat"),
-    go to $CATALINA_HOME/bin and type: </p>
-   
-      <div class="code">./startup.sh</div>
-   
-    <p>In the Tomcat startup messages you should see something in the log file like:</p>
-   
-      <div class="code">Metacat: [WARN]: Metacat (1.8.0) initialized. [edu.ucsb.nceas.metacat.MetaCatServlet]</div>
-     
-    If you see that message Tomcat has successfully loaded the Metacat servlet.
-    Next, try to run your new servlet.  Go to a web browser and type:</p>
-   
-      <div class="code">http://yourserver.yourdomain.com/yourcontext/</div>
-     
-    <p>You should substitute your context name for "yourcontext" in the url above.
-    If everything is working correctly, you should see a query page followed
-    by an empty result set.  Note that if you do not have Tomcat integrated with
-    Apache you will probably have to type</p>
-   
-    <div class="code">http://yourserver.yourdomain.com:8080/yourcontext/</div>
-
-  <a name="UpgradeTroubleshooting"></a><div class="header2">Troubleshooting</div>
-  <p>If you see something like: 
-  
-    <div class="code">java.lang.InternalError: Can't connect to X11 window server using 'yourservanme:0.0' as the value of the DISPLAY variable.</div>
-  
-  <p>You should add this line: </p>
-  
-    <div class="code">JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS"</div> 
-  <p>at the first line of the catalina.sh file in the tomcat bin directory. The reason is that 
-  GeoServer uses X11 windows to draw graphics.</p>
-  
-  <a name="UpgradeConfigureMetacat"></a><div class="header2">Configure Metacat</div>
-  <p>Once you see the Metacat configuration screen, you can follow the instructions in the 
-  <a href="./metacatconfigure.html"> Configuring Metacat Section</a> 
-  to complete the internal configuration of Metacat.</p>
-
-<a name="Registry"></a><div class="header1">Web Based Registry</div>
-  <p>The registry allows users to upload simple metadata documents directly from the web.  See the separate 
-  <a href="registry_installation.html">Registry Installation Guide</a>.</p><br/><br/>
-</body>
-</html>

Property changes on: docs/user/metacatinstall.html
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Author Date Id Revision
\ No newline at end of property
Index: docs/dev/building-metacat.html
===================================================================
--- docs/dev/building-metacat.html	(revision 4636)
+++ docs/dev/building-metacat.html	(revision 4637)
@@ -48,7 +48,7 @@
   but a few convenience options have been added to help the developer. </p>  
   
   <p>These instructions are meant to augment the Install Metacat War section of the
-  <a href="../user/metacatinstall.html">Metacat Installation Guide</a>.</p>
+  <a href="../user/metacat-install.html">Metacat Installation Guide</a>.</p>
   
   <p>Metacat is built using the Ant build utility.  You will need to have Ant
   installed on your development system to build Metacat</p>
@@ -114,7 +114,7 @@
   <a name="ManualBuild"></a><div class="header1">Manual Build</div>  
   <p>You can also build the Metacat war file and deploy manually.  To build and create the 
   war, run:</p>
-  <div class="code">ant install-ecogrid</div> 
+  <div class="code">ant build-metacat</div> 
   <p>The war file will appear in your &gt;metacat_workspace&lt;/dist directory.  Copy the war
   file into your tomcat webapps directory.  Delete the existing code that was expanded
   from the old jar.</p>
Index: docs/user/properties.html
===================================================================
--- docs/user/properties.html	(revision 4636)
+++ docs/user/properties.html	(revision 4637)
@@ -1589,7 +1589,7 @@
     </tr>
     <tr>
       <td>indexPaths</td>
-      <td>See <a href="./metacatinstall.html#buildProperties">description of build properties</a></td>
+      <td>See <a href="./metacat-install.html#buildProperties">description of build properties</a></td>
       <td>Default:&nbsp;&nbsp;<code>organizationName,originator/individualName/surName,...</code></td>
     </tr>
     <tr>
Index: docs/user/metacat-install.html
===================================================================
--- docs/user/metacat-install.html	(nonexistent)
+++ docs/user/metacat-install.html	(revision 4637)
@@ -0,0 +1,540 @@
+<!-- 
+  *   '$RCSfile$'
+  *     Purpose: web page describing the installation of Metacat
+  *   Copyright: 2000 Regents of the University of California and the
+  *               National Center for Ecological Analysis and Synthesis
+  *     Authors: Chad Berkley
+  *
+  *    '$Author$'
+  *    '$Date$'
+  *    '$Revision$'
+  *
+  *
+  -->
+  
+<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
+<html>
+
+<head>
+  <title>Metacat Installation Instructions</title>
+  <link rel="stylesheet" type="text/css" href="./common.css">
+  <link rel="stylesheet" type="text/css" href="./default.css">
+</head>
+
+<body>
+
+<table class="tabledefault" width="100%">
+<tr><td rowspan="2"><img src="./images/KNBLogo.gif"></td>
+<td colspan="7">
+<div class="title">Metacat UNIX Installation Instructions</div>
+</td>
+</tr>
+<tr>
+  <td><a href="/" class="toollink"> KNB Home </a></td>
+  <td><a href="/data.html" class="toollink"> Data </a></td>
+  <td><a href="/people.html" class="toollink"> People </a></td>
+  <td><a href="/informatics" class="toollink"> Informatics </a></td>
+  <td><a href="/biodiversity" class="toollink"> Biocomplexity </a></td>
+  <td><a href="/education" class="toollink"> Education </a></td>
+  <td><a href="/software" class="toollink"> Software </a></td>
+</tr>
+</table>
+<hr>
+
+<div class="header1">Table of Contents</div>
+  <div class="toc">
+    <div class="toc1"><a href="#QuickInstructions">Quick Instructions</a></div>
+      <div class="toc2"><a href="#QuickInstall">Quick Installation</a></div> 
+      <div class="toc2"><a href="#QuickUpdate">Quick Update</a></div>
+    <div class="toc1"><a href="#PreInstallation">Pre-Installation</a></div>
+      <div class="toc2"><a href="#MinRequirements">Minimum Requirements</a></div> 
+      <div class="toc2"><a href="#AdditionalRequiredSoftware">Additional Required Software</a></div>
+    <div class="toc1"><a href="#AdditionalSoftwareSetup">Additional Software Setup</a></div>
+      <div class="toc2"><a href="#AdditionalSoftwareJava">Java</a></div> 
+      <div class="toc2"><a href="#AdditionalSoftwareOracle">Oracle</a></div>
+      <div class="toc2"><a href="#AdditionalSoftwarePostgres">PostgreSQL</a></div>
+      <div class="toc2"><a href="#AdditionalSoftwareAnt">Ant</a></div>
+      <div class="toc2"><a href="#AdditionalSoftwareTomcat">Tomcat</a></div>
+    <div class="toc1"><a href="#DownloadingMetacat">Download Metacat and Get War File</a></div>
+      <div class="toc2"><a href="#DownloadMetacatBinary">Download Metacat Binary and Create War File</a></div>
+      <div class="toc2"><a href="#DownloadMetacatSource">Download Metacat Source and Create War File</a></div>
+    <div class="toc1"><a href="#InstallingMetacat">Installing Metacat</a></div>
+      <div class="toc2"><a href="#CreateMetacatDirs">Create Metacat Directories</a></div>
+      <div class="toc2"><a href="#InstallMetacatWar">Install Metacat War</a></div>
+    <div class="toc1"><a href="#UpgradingMetacat">Upgrading Existing Metacat</a></div>
+      <div class="toc2"><a href="#UpgradeStopMetacat">Stop the Running Metacat</a></div>
+      <div class="toc2"><a href="#UpgradeDownloadMetacat">Download Latest Metacat Application</a></div>
+      <div class="toc2"><a href="#UpgradeMetacatWar">Upgrade Metacat War</a></div>
+   <div class="toc1"><a href="#RestartTomcat">Restart Tomcat</a></div>
+      <div class="toc2"><a href="#UpgradeTroubleshooting">Troubleshooting</a></div>
+      <div class="toc2"><a href="#UpgradeConfigureMetacat">Configure Metacat</a></div>       
+    <div class="toc1"><a href="#Registry">Web Based Registry</a></div>
+<!--
+    <div class="toc1"><a href="#VersionNotes">Version Installation Notes</a></div>
+      <div class="toc2"><a href="#1_9InstallNotes">1.9 Installation Notes</a></div> 
+-->
+  </div> 
+
+<a name="QuickInstructions"></a><div class="header1">Quick Instructions</div>
+
+  <a name="QuickInstall"></a><div class="header2">Quick Installation</div>  
+  <p>These are the installation instructions for a system that has Ubuntu 8.04 installed
+  and has never had Metacat installed on it:</p>
+ 
+  <div class=indent>
+    <a name="DownloadMetacatInstall"></a><div class="header3">Download Metacat Package</div>
+    <p>Browse to the 
+      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
+      In the Metacat section, select the link that looks like:</p>
+	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
+    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
+    <p>Extract the Metacat package files by typing:</p>
+      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
+    <p>You should see a war file and several supporting files.  The location where these files
+    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
+    of this documentation.
+  </div>
+  
+  <div class=indent>
+    <a name="CreateDirs"></a><div class="header3">Create Metacat Directories</div>
+    <p>Create the metacat utility base directory by typing:</p>
+      <div class="code">sudo mkdir /var/metacat</div>
+	  <div class="code">sudo chown -R &lt;tomcat_user&gt; /var/metacat</div>
+    <p>where &lt;tomcat_user&gt; is the user that will start Tomcat.  If you are 
+	starting Tomcat as the root user, you do not need to run the chown command.</p>
+  </div>
+
+  <div class=indent>
+    <a name="InstallJava"></a><div class="header3">Install Java</div>
+    <p>Install Java by typing:</p>
+      <div class="code">sudo apt-get install sun-java5-jdk</div>
+	<p>hit "ok" then "yes" for license agreement<p>
+  </div>
+
+  <div class=indent>
+   <a name="InstallApache"></a><div class="header3">Install Apache</div>
+	<p>Install Apache and and Mod JK packages by typing:</p>	
+      <div class="code">sudo apt-get install apache2 libapache2-mod-jk</div>
+    <p>Set up Mod JK apache configuration by typing:</p>
+      <div class="code">sudo cp &lt;metacat_package_dir&gt;/jk.conf /etc/apache2/mods-available</div>
+      <div class="code">sudo cp &lt;metacat_package_dir&gt;/workers.properties /etc/apache2</div>
+    <p>Enable Apache Mod JK by typing:</p>
+      <div class="code">sudo a2dismod jk</div>
+      <div class="code">sudo a2enmod jk</div>
+    <p>Set up and enable knb (Metacat) site configurations by typing:</p>
+      <div class="code">sudo cp &lt;metacat_package_dir&gt;/knb /etc/apache2/sites-available</div>
+      <div class="code">sudo a2ensite knb</div>
+    <p>If you want to run an LSID server along with the Metacat server, set up and enable the authority service site 
+      configurations by typing:</p>
+      <div class="code">sudo cp &lt;metacat_package_dir&gt;/authority /etc/apache2/sites-available</div>
+      <div class="code">sudo a2ensite authority</div>
+    <p>Restart apache to bring in changes by typing:</p>
+      <div class="code">sudo /etc/init.d/apache2 force-reload</div>
+  </div>
+     
+  <div class=indent> 
+    <a name="InstallTomcat"></a><div class="header3">Install Tomcat</div>
+    <p>Install Tomcat 5.5 by typing:</p>
+      <div class="code">sudo sudo apt-get install tomcat5.5</div> 
+    <p>Install Metacat friendly Tomcat startup script by typing:</p>     
+      <div class="code">sudo /etc/init.d/tomcat5.5 stop</div>    
+      <div class="code">sudo mv /etc/init.d/tomcat5.5 /etc/init.d/tomcat5.5.bak</div>
+      <div class="code">sudo cp &lt;metacat_package_dir&gt;/tomcat5.5 /etc/init.d/tomcat5.5</div>
+      <div class="code">sudo chmod +x /etc/init.d/tomcat5.5</div>
+    </p>
+  </div>
+
+  <div class=indent>    
+    <a name="InstallPostgres"></a><div class="header3">Install PostgreSQL Database</div> 
+    <p>Install PostgreSQL by typing:</p>
+      <div class="code">sudo apt-get install postgresql</div>
+    <p>Change to postgres user:</p>
+      <div class="code">sudo su - postgres</div>
+    <p>Setup empty Metacat database instance editing the postgreSQL configuration file:</p>  
+      <div class="code">gedit /etc/postgresql/8.3/main/pg_hba.conf</div>
+    <p>and adding the following line:</p>
+      <div class="code">host metacat metacat 127.0.0.1 255.255.255.255 password</div>
+    <p>Save the file, then create the metacat instance:</p>
+      <div class="code">createdb metacat</div>
+    <p>Log into postgreSQL by typing:</p>
+	  <div class="code">psql metacat</div>
+	<p>and create the metacat user by typing at the psql prompt:</p>
+	  <div class="code">CREATE USER metacat WITH UNENCRYPTED PASSWORD 'your_password';</div>
+	<p>where your_password is whatever password you would like for the metacat user.</p>
+	<p>Exit PostgreSQL by typing</p>
+	  <div class="code">\q</div>
+	<p>Restart the PostgreSQL database to bring in changes:</p>
+	  <div class="code">/etc/init.d/postgresql-8.3 restart</div>
+	<p>Log out of the postgres user account by typing:</p>
+	  <div class="code">logout</div>
+	<p>Test the installation and metacat account by typing:</p>
+	  <div class="code">psql -U metacat -W -h localhost metacat</div>
+	<p>Log back out of postgreSQL:</p>
+	  <div class="code">\q</div>
+  </div>
+
+  <div class=indent>	
+    <a name="QuickInstallMetacatWar"></a><div class="header3">Install Metacat War</div> 
+    <p>Copy the war file to Tomcat:</p>
+	  <div class="code">sudo cp &lt;metacat_package_dir&gt;/knb.war /usr/share/tomcat5.5/webapps</div>
+	<p>Restart Tomcat:</p>  
+	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
+  </div>
+  
+  <div class=indent>	
+    <a name="QuickInstallLsidWar"></a><div class="header3">Install LSID War</div> 
+    <p>If you want to run an LSID server along with the Metacat server, copy the 
+    authority.war file to Tomcat:</p>
+	  <div class="code">sudo cp &lt;metacat_package_dir&gt;/authority.war /usr/share/tomcat5.5/webapps</div>
+	<p>Restart Tomcat:</p>  
+	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
+  </div>
+	
+  <div class=indent>	
+    <a name="ConfigureMetacatInstall"></a><div class="header3">Configure Metacat</div> 
+    <p>Refer to the documentation on <a href="./metacatconfigure.html">Metacat Confguration</a>
+    to complete your installation of Metacat.</p>
+  </div>
+    
+  <a name="QuickUpdate"></a><div class="header2">Quick Update</div>
+  <p>These are the instructions for a system that already has Metacat installed on it, 
+  but needs a Metacat upgrade:</p>
+  
+  <div class=indent>
+    <a name="DownloadMetacatUpdate"></a><div class="header3">Download Metacat Package</div>
+    <p>Browse to the 
+      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
+      In the Metacat section, select the link that looks like:</p>
+	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
+    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
+    <p>Extract the Metacat package files by typing:</p>
+      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
+    <p>You should see a war file and several supporting files.  The location where these files
+    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
+    of this documentation.
+  </div>
+  
+  <div class=indent>
+    <a name="BackupApplication"></a><div class="header3">Backup Existing Metacat Installation</div>
+    <p>To be safe, it is best to backup the existing Metacat installation.  Do so by typing: </p>
+	  <div class="code">cp <web_app_dir>/knb <web_app_dir>/knb.&lt;yyyymmdd&gt;</div>
+	  <div class="code">cp <web_app_dir>/knb.war <web_app_dir>/knb.war.&lt;yyyymmdd&gt;</div>
+	<p>Of course, you can use any backup strategy you like (or none at all).</p>
+  </div>
+  
+    <div class=indent>	
+    <a name="QuickUpdateMetacatWar"></a><div class="header3">Install Metacat War</div> 
+    <p>Copy the war file to Tomcat:</p>
+	  <div class="code">sudo cp knb.war /usr/share/tomcat5.5/webapps</div>
+	<p>Restart Tomcat:</p>  
+	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
+  </div>
+  
+  <div class=indent>	
+    <a name="QuickUpdateLsidWar"></a><div class="header3">Update LSID War</div> 
+    <p>If you want to run an LSID server along with the Metacat server, copy the 
+    authority.war file to Tomcat:</p>
+	  <div class="code">sudo cp &lt;metacat_package_dir&gt;/authority.war /usr/share/tomcat5.5/webapps</div>
+	<p>Restart Tomcat:</p>  
+	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
+  </div>
+	
+  <div class=indent>	
+    <a name="ConfigureMetacatInstall"></a><div class="header3">Configure Metacat</div> 
+    <p>Refer to the documentation on <a href="./metacatconfigure.html">Metacat Confguration</a>
+    to complete your installation of Metacat.</p>
+  </div>
+
+<!--
+<a name="SourceInstall"></a><div class="header1">Installing From Source Code</div>
+<p>These documents are meant to outline the metacat installation process on specific platforms. They are 
+<strong><em>not</em></strong> a substitute for the below instructions and only meant as a supplemental guideline. </p>  
+  <a name="WindowsXP"></a><div class="header2">Windows XP</div> 
+    <p> See the <a href="os_specific/install_metacat_windows.html">Windows XP installation instructions</a>.</p>
+  <a name="Ubuntu8.04"></a><div class="header2">Ubuntu 8.04</div>
+    <p> See the <a href="os_specific/install_metacat_ubuntu.html">Ubuntu 8.04 installation instructions</a>.</p>
+  <a name="MacOSX"></a><div class="header2">Mac OS X</div>
+    <p> See the <a href="os_specific/install_metacat_mac.html">Mac OS X installation instructions</a>.</p>
+-->
+
+<a name="PreInstallation"></a><div class="header1">Pre-Installation</div>
+  <a name="MinRequirements"></a><div class="header2">Minimum Requirements</div> 
+  <p>
+   Installing Metacat requires a server running an SQL92 compliant database
+   (Oracle 8i or Postgresql recommended) with at least 128MB RAM, and a Pentium III class
+   processor or higher.  The amount of disk space required depends on the
+   size of your RDBMS tablespace (which should be at least 10 MB, 
+   however Metacat itself requires only about 1 MB of free space after 
+   installation).  These instructions assume a Linux environment but may
+   work on other UNIX type environments, however this has not been tested.
+  </p>
+  
+  <a name="AdditionalRequiredSoftware"></a><div class="header2">Additional Required Software</div>
+  <p>
+   The server on which you wish to install Metacat must have the following
+   software installed and running correctly before attempting to install
+   Metacat.
+   <ul>
+     <li><a href="http://www.oracle.com">Oracle 8i</a> (or another SQL92
+         compliant RDBMS like Postgres)</li>
+     <li><a href="http://jakarta.apache.org/ant/index.html">Apache Jakarta-Ant</a>
+     </li>
+     <li><a href="http://jakarta.apache.org/tomcat/index.html">Apache Jakarta-Tomcat</a>
+       <p class="emphasis">Note: For a more robust web serving environment, 
+       Apache web server should
+       be installed along with Tomcat and the two should be integrated
+       as described on the Apache web site.</p>
+     </li>
+   </ul>
+  </p>
+
+<a name="AdditionalSoftwareSetup"></a><div class="header1">Additional Software Setup</div>
+  <a name="AdditionalSoftwareJava"></a><div class="header2">Java</div>
+  <p>You'll need a recent Java SDK; J2SE 1.4.2 or later is required.  The latest metacat release
+  has been tested most extensively with <a href="http://java.sun.com/j2se/1.5.0/">J2SE 5.0</a>
+  and this is the recommended version.
+  Make sure that JAVA_HOME environment variable is properly set and that both
+  java and javac are on your PATH. 
+  </p>
+  <a name="AdditionalSoftwareOracle"></a><div class="header2">Oracle 8i</div>
+  <p>The Oracle RDBMS must be installed and running as a daemon on the system.
+   In addition the JDBC listener must be enabled.  You can enable it by
+   logging in as your Oracle user and typing the following:</p>
+   
+     <div class="code">lsnrctl start</div>
+     
+   <p>Your instance should have a table space of at least 5 MB (10 MB or higher 
+   recommended).  You should also have a username specific to Metacat
+   created and enabled.  This user must have most normal permissions 
+   including CREATE SESSION, CREATE TABLE, CREATE INDEX, CREATE TRIGGER, 
+   EXECUTE PROCEDURE, EXECUTE TYPE, etc.  If an action is unexplainably 
+   rejected by Metacat it is probably because the user permissions are not
+   correctly set.</p>
+   
+  <a name="AdditionalSoftwarePostgreSQL"></a><div class="header2">PostgreSQL</div>
+  <p>PostgreSQL can be easily installed on most linux distributions and on
+  Windows (using cygwin) and Mac OS X.  Using Fedora Core or RedHat Linux,
+  you can install the rpms for postgres and then run </p>
+  
+    <div class="code">/etc/init.d/postgresql start</div> 
+    
+  <p>in order to start the database. 
+  On Ubuntu and other Debian-based Linux distributions, you can use the apt-get command
+  to install postgres: 
+    <div class="code">sudo apt-get install postgresql-8.0</div> and 
+  then run 
+    <div class="code">/etc/init.d/postgresql-8.0 start</div> to start.
+  
+  This initializes the data files.  You need to do a bit of configuration
+  to create a database and set up a user account and allow internet access
+  via jdbc.  See the postgres documentation for this, but here is a quick 
+  start:
+  <ul>
+     <li>Switch to the "postgres" user account 
+       <div class="code">sudo su - postgres</div></li>
+     <li>Edit "data/pg_hba.conf", adding the following line to the file:<br>
+       <div class="code">host   metacat  metacat      127.0.0.1         255.255.255.255   password</div>
+     If your host uses IPv6 addresses, you may need this line instead:
+       <div class="code">host   metacat  metacat      ::1               ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff password</div></li>
+     <li>If you are using Postgresql pre-8.0, you must edit the "data/postgres.conf" file and uncomment and edit the line
+     starting with "tcpip_socket" so that it reads 
+       <div class="code">tcpip_socket = true</div></li>
+     <li>Create metacat database by typing: 
+       <div class="code">createdb metacat</div></li>
+     <li>Log in using the postgres account and create a new "metacat" user account by typing:
+       <div class="code">psql metacat</div> 
+     <ul>
+        <li>In postgres, run <div class="code">CREATE USER metacat WITH UNENCRYPTED PASSWORD 'apasswordyoulike';</div></li>
+        <li>This creates a new account called metacat on the database named metacat</li>
+        <li>Note: there are many ways to do this, so others such as using 
+        ENCRYPTED passwords will work fine.</li>
+     </ul>
+     </li>
+     <li>Exit the postgres account back to root and restart the postgres 
+     database by typing:
+       <div class="code">/etc/init.d/postgresql restart</div></li>
+     <li>Test logging into the postgres db using the metacat account with 
+     the following command: 
+       <div class="code">psql -U metacat -W -h localhost metacat</div></li>
+  </ul>
+  </p>
+  
+  <a name="AdditionalSoftwareAnt"></a><div class="header2">Ant</div>
+  <p>
+   Ant is a Java based build application similar to Make on UNIX systems.  
+   It takes in installation parameters from a file in the root installation
+   directory named "build.xml".  The Metacat CVS module contains a default
+   build.xml file that may require some modification upon installation.  Ant
+   should be installed on the system and the "ant" executable shell script 
+   should be available in the users path. The latest metacat release was tested with 
+   Ant 1.6.5. <!-- We note that the current build is 
+   not working with Ant 1.6.x, so you'll need to use an earler version.  We have 
+   successfully used Ant 1.5.1, 1.5.2, and some earlier versions. -->
+  </p>
+  
+  <a name="AdditionalSoftwareTomcat"></a><div class="header2">Tomcat</div>
+  <p>
+    Install Tomcat into the directory of your choice. The directory in which 
+    you install Tomcat itself will be referred to as the &lt;tomcat_home&gt;.
+    We recommend that you install Tomcat version 5.5.  More details about 
+    Tomcat installation are available <a href=" http://jakarta.apache.org/tomcat/index.html">here</a>.
+  </p>
+
+<a name="DownloadingMetacat"></a><div class="header1">Download Metacat and Get War File</div>
+ <p>There are several ways to wind up with a Metacat war file, which is needed for 
+ installation.  These are: </p>
+    <ul>
+      <li>Download Metacat binary distribution - which will have a pre-built war file.</li>
+      <li>Download Metacat source distribution - which will then need to be built in order to create a war file.</li>
+      <li>Download Metacat source from SVN - which will then need to be built in order to create a war file.</li>
+    </ul>
+  <p>Since downloading the binary distribution is the easiest and most common install, it
+  will be discussed here in detail.  Links to source download/build instructions are also
+  included in case you would like to go that route.</p>
+  <a name="DownloadMetacatBinary"></a><div class="header2">Download Metacat Binary and Create War File</div>
+
+    <p>Browse to the 
+      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
+      In the Metacat section, for Linux based systems, select the link that looks like:</p>
+	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
+	  <p>for Windows systems, select the link that looks like:</p>
+	  <div class="code">metacat-bin-X.X.X.zip</div>
+    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
+    <p>Extract the Metacat package files on Linux systems by typing:
+      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
+    <p>or, on Windows, use your system unzip utility to extract the zip file.</p>
+    <p>You should see a war file and several supporting files.  The location where these files
+    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
+    of this documentation.
+    
+  <a name="DownloadMetacatSource"></a><div class="header2">Download Metacat Source and Create War File</div>
+
+    <p>If you would like to download the Metacat source distribution or checkout the source
+    code from SVN, go to the  
+      <a href="./metacat-source-build.html">Download and Build Metacat From Source</a> page.
+
+<a name="InstallingMetacat"></a><div class="header1">Installing Metacat</div>
+  <p>This section is only for a new installation. If you are upgrading an existing Metacat, please skip
+  this section and go to the next one - <a href="#UpgradingMetacat">Upgrading Existing Metacat</a></p>
+  
+  <p>Tomcat will look for it's application files (war files) in a configured directory.  
+  This is typically the &lt;tomcat_home&gt;/webapps directory, but your instance of Tomcat may 
+  be configured to look in a different directory.  We will refer to your Tomcat application directory 
+  as &lt;tomcat_app_dir&gt;.</p>
+     
+  <a name="CreateMetacatDirs"></a><div class="header2">Create Metacat Directories</div>
+    <p>Metacat uses a base directory to store such things as store data and metadata,
+    temporary files and configuration backups.  This directory should be outside of the 
+    Tomcat application directory since the application directory gets wiped out during an
+    upgrade. Create the metacat utility base directory 
+    by typing:</p>
+      <div class="code">sudo mkdir <metacat_base_dir></div>
+    <p>(Typically <metacat_base_dir> is '/var/metacat'.)  Remeber the directory you 
+    choose, since you will be asked to configure Metacat to point to it after startup.</p>
+    
+    <p>Change the ownership of the directory by typing:</p>   
+	  <div class="code">sudo chown -R &lt;tomcat_user&gt; /var/metacat</div>
+    <p>where &lt;tomcat_user&gt; is the user that will start Tomcat.  If you are 
+	starting Tomcat as the root user, you do not need to run the chown command.</p>
+	
+  <a name="InstallMetacatWar"></a><div class="header2">Install Metacat War</div> 
+    <p>Copy the war file to Tomcat:</p>
+	  <div class="code">sudo cp knb.war &lt;tomcat_app_dir&gt;</div>
+
+<a name="UpgradingMetacat"></a><div class="header1">Upgrading Existing Metacat</div>
+  <a name="protocol"></a>
+  <p>The following instructions are for upgrading an existing Metacat.
+  
+  <a name="UpgradeStopMetacat"></a><div class="header2">Stop the Running Metacat</div>
+   <p>To do this, login as the user that runs your tomcat server (often "tomcat"),
+   go to &lt;tomcat_home&gt;/bin and type:</p>
+   
+   <div class="code">./shutdown.sh</div>  
+  
+  <a name="UpgradeDownloadMetacat"></a><div class="header2">Download Latest Metacat Application</div>
+    <p>Browse to the 
+      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
+      In the Metacat section, select the link that looks like:</p>
+	  <div class="code">metacat-bin-X.X.X.tar.gz</div>
+    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally.</p>
+    <p>Extract the Metacat package files by typing:</p>
+      <div class="code">tar -xvzf metacat-bin-X.X.X.tar.gz</div>
+    <p>You should see several files:</p>
+    
+    <ul>
+    <li>knb.war - the Metacat application web archive file.</li>
+    <li>knb - the web definition file used by Apache on ubuntu/debian Linux systems.</li>
+    <li>jk.conf - the JkMount configuration file used by Apache on ubuntu/debian Linux systems.</li>
+    <li>workers.properties - the workers definition file used by Apache on ubuntu/debian Linux systems.</li>
+    <li>tomcat5.5 - the Tomcat startup script for Tomcat 5.5 installed with apt-get on ubuntu/debian Linux systems.</li>
+    <li>authority - the optional LSID Server application web archive file.</li>
+    </ul>
+    
+    <p>The location where these files
+    were extracted will be refered to as the the &lt;metacat_package_dir&gt; for the remainder 
+    of this documentation.</p>
+ 
+   <a name="UpgradeMetacatWar"></a><div class="header2">Upgrade Metacat War</div> 
+    <p>Tomcat will look for it's application files (war files) in a configured directory.  
+    This is typically the &lt;tomcat_home&gt;/webapps directory, but your instance of Tomcat may 
+    be configured to look in a different directory.  We will refer to your Tomcat application directory 
+    as &lt;tomcat_app_dir&gt;.</p>
+    
+    <p>If desired, back up your existing war file with a date:</p>
+      <div class="code">sudo mv &lt;tomcat_app_dir&gt;/knb.war &lt;tomcat_app_dir&gt;/knb.war.&lt;yyyymmdd&gt;</div>
+    
+    <p>Copy the war file to the Tomcat applications directory:</p>
+	  <div class="code">sudo cp knb.war &lt;tomcat_app_dir&gt;</div>
+	<p>Remove (or rename) the existing application directory:</p>
+	  <div class="code">sudo rm -rf &lt;tomcat_home&gt;/webapps/knb</div>
+	  <p> or </p>
+	  <div class="code">sudo mv &lt;tomcat_home&gt;/webapps/knb &lt;tomcat_home&gt;/webapps/knb.&lt;yyyymmdd&gt;</div>
+	<p>Restart Tomcat:</p>  
+	  <div class="code">sudo /etc/init.d/tomcat5.5 restart</div>
+	<p>Tomcat will expand your war file into a new application directory at startup time.</p>
+ 
+  <a name="RestartTomcat"></a><div class="header1">Restart Tomcat</div>
+    <p>Once you have successfully installed Metacat, there is one more step.  Tomcat
+    (and Apache if you have Tomcat integrated with it) must be restarted.  To do
+    this, login as the user that runs your tomcat server (often "tomcat"),
+    go to &lt;tomcat_home&gt;/bin and type: </p>
+   
+      <div class="code">./startup.sh</div>
+   
+    <p>In the Tomcat startup messages you should see something in the log file like:</p>
+   
+      <div class="code">Metacat: [WARN]: Metacat (1.8.0) initialized. [edu.ucsb.nceas.metacat.MetaCatServlet]</div>
+     
+    If you see that message Tomcat has successfully loaded the Metacat servlet.
+    Next, try to run your new servlet.  Go to a web browser and type:</p>
+   
+      <div class="code">http://yourserver.yourdomain.com/yourcontext/</div>
+     
+    <p>You should substitute your context name for "yourcontext" in the url above.
+    If everything is working correctly, you should see a query page followed
+    by an empty result set.  Note that if you do not have Tomcat integrated with
+    Apache you will probably have to type</p>
+   
+    <div class="code">http://yourserver.yourdomain.com:8080/yourcontext/</div>
+
+  <a name="UpgradeTroubleshooting"></a><div class="header2">Troubleshooting</div>
+  <p>If you see something like: 
+  
+    <div class="code">java.lang.InternalError: Can't connect to X11 window server using 'yourservanme:0.0' as the value of the DISPLAY variable.</div>
+  
+  <p>You should add this line: </p>
+  
+    <div class="code">JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS"</div> 
+  <p>at the first line of the catalina.sh file in the tomcat bin directory. The reason is that 
+  GeoServer uses X11 windows to draw graphics.</p>
+  
+  <a name="UpgradeConfigureMetacat"></a><div class="header2">Configure Metacat</div>
+  <p>Once you see the Metacat configuration screen, you can follow the instructions in the 
+  <a href="./metacatconfigure.html"> Configuring Metacat Section</a> 
+  to complete the internal configuration of Metacat.</p>
+
+<a name="Registry"></a><div class="header1">Web Based Registry</div>
+  <p>The registry allows users to upload simple metadata documents directly from the web.  See the separate 
+  <a href="registry_installation.html">Registry Installation Guide</a>.</p><br/><br/>
+</body>
+</html>

Property changes on: docs/user/metacat-install.html
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:mergeinfo
## -0,0 +0,0 ##
Index: docs/user/os_specific/install_metacat_mac.html
===================================================================
--- docs/user/os_specific/install_metacat_mac.html	(revision 4636)
+++ docs/user/os_specific/install_metacat_mac.html	(revision 4637)
@@ -37,7 +37,7 @@
 </p>
 
   <p class="emphasis">
-	This is a terse cheatsheet for installing metacat with postgres on os X. Please see the <a href="../metacatinstall.html">general instructions</a> for the full details.
+	This is a terse cheatsheet for installing metacat with postgres on os X. Please see the <a href="../metacat-install.html">general instructions</a> for the full details.
   </p>
 </td>
 </tr>
Index: docs/user/index.html
===================================================================
--- docs/user/index.html	(revision 4636)
+++ docs/user/index.html	(revision 4637)
@@ -34,7 +34,7 @@
 <tr>
   <td>
   <p><a href="/software/download.html">Download Metacat</a></p>
-  <p><a href="./metacatinstall.html">Metacat Installation Instructions</a></p>
+  <p><a href="./metacat-install.html">Metacat Installation Instructions</a></p>
   <p>Metacat is a flexible metadata database. It utilizes 
      <a href="http://www.w3.org/TR/REC-xml" target="offline">XML</a> as a 
      common syntax for representing the large number of metadata content
Index: docs/user/replication.html
===================================================================
--- docs/user/replication.html	(revision 4636)
+++ docs/user/replication.html	(revision 4637)
@@ -313,7 +313,7 @@
 
 <a name="ControlPanel"></a><div class="header1">The Replication Control Panel:</div>      
   There is an html control panel for controling replication.  After
-  <a href="./Metacatinstall.html">installing</a> Metacat, you can access
+  <a href="./Metacat-install.html">installing</a> Metacat, you can access
   it by going through the Metacat servlet context you have setup and calling up
   replControl.html.  For instance, if you setup a Metacat servlet instance 
   called 'knb' you would probably type 
Index: docs/user/metacat-source-build.html
===================================================================
--- docs/user/metacat-source-build.html	(nonexistent)
+++ docs/user/metacat-source-build.html	(revision 4637)
@@ -0,0 +1,153 @@
+<!-- 
+  *   '$RCSfile$'
+  *     Purpose: web page describing the installation of Metacat
+  *   Copyright: 2000 Regents of the University of California and the
+  *               National Center for Ecological Analysis and Synthesis
+  *     Authors: Chad Berkley
+  *
+  *    '$Author: daigle $'
+  *    '$Date: 2008-11-24 11:57:40 -0800 (Mon, 24 Nov 2008) $'
+  *    '$Revision: 4621 $'
+  *
+  *
+  -->
+  
+<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
+<html>
+
+<head>
+  <title>Metacat Source Download and Build Instructions</title>
+  <link rel="stylesheet" type="text/css" href="./common.css">
+  <link rel="stylesheet" type="text/css" href="./default.css">
+</head>
+
+<body>
+
+<table class="tabledefault" width="100%">
+<tr><td rowspan="2"><img src="./images/KNBLogo.gif"></td>
+<td colspan="7">
+<div class="title">Metacat Source Download and Build Instructions</div>
+</td>
+</tr>
+<tr>
+  <td><a href="/" class="toollink"> KNB Home </a></td>
+  <td><a href="/data.html" class="toollink"> Data </a></td>
+  <td><a href="/people.html" class="toollink"> People </a></td>
+  <td><a href="/informatics" class="toollink"> Informatics </a></td>
+  <td><a href="/biodiversity" class="toollink"> Biocomplexity </a></td>
+  <td><a href="/education" class="toollink"> Education </a></td>
+  <td><a href="/software" class="toollink"> Software </a></td>
+</tr>
+</table>
+<hr>
+
+<div class="header1">Table of Contents</div>
+  <div class="toc">
+    <div class="toc1"><a href="#Intro">Introduction</a></div>
+    <div class="toc1"><a href="#GetSource">Get Metacat Source</a></div>
+      <div class="toc2"><a href="#SourceDistribution">Source Distribution</a></div> 
+      <div class="toc2"><a href="#SVN">SVN Checkout</a></div>
+    <div class="toc1"><a href="#BuildFromSource">Build From Source</a></div>
+      <div class="toc2"><a href="#PrepareBuild">Prepare Build</a></div>
+      <div class="toc2"><a href="#DoAntBuild">Do Ant Build</a></div>
+  </div> 
+
+<a name="Intro"></a><div class="header1">Introduction</div>
+  <p>Metacat source can be downloaded either by getting and extracting the 
+  source distribution, or by checking out the code from the repository.</p>
+  
+  <p>Reasons for choosing one versus the other might be:</p>
+  <ul>
+  <li>Source Distribution - this is a faster download since the code is compressed.  You
+  might choose this if you want a stable versioned release, but you prefer to have
+  all of your applications built on the server where it will run.  (Although it shouldn't
+  matter where a java application is built.)</li>
+  <li>SVN Checkout - there are several reasons for choosing a checked out version of 
+  the code.  One is that you may want to build from the head of the code to pick up
+  new changes that are not yet in a versioned build.  Conversely, you may want to build
+  off of an older tag, to avoid an issue that was introduced in a build.  Lastly, you 
+  may want to develop and submit code to the Metacat repository</li>
+  </ul>
+  
+  <p>In order to check out Metacat, you will need both Subversion (SVN) and CVS clients
+  installed and configured on your system.  This is because, while Metacat has been 
+  migrated to SVN, some of its supporting libraries (eml, utlities and seek) have not 
+  yet been migrated.  Eventually, SVN will be the only versioning client you will need.  
+  You will need to make sure you have the appropriate permissions on these systems</p>
+  
+  <p>For more information on installing SVN and CVS, please visit the following sites:
+  
+  <ul>
+  <li><a href="http://subversion.tigris.org">The Subversion homepage</a></li>
+  <li><a href="http://ximbiot.com/cvs/wiki/">The Ximbiot CVS homepage</a></li>
+  </ul>
+  
+  </p>You will also need Apache Ant to do the build.  If you have not already 
+  installed Ant, you can get it at:
+  
+  <ul>
+  <li><a href="http://ant.apache.org/">The Apache Ant homepage</a></li>
+  </ul>
+
+<a name="GetSource"></a><div class="header1">Get Metacat Source</div>
+
+  <a name="SourceDistribution"></a><div class="header2">Source Distribution</div>  
+    <p>To get the Metacat source distribution, browse to the 
+      <a href="http://knb.ecoinformatics.org/software/download.html">KNB Software Download Page</a>.
+      In the Metacat section, for Linux based systems, select the link that looks like:</p>
+	  <div class="code">metacat-src-X.X.X.tar.gz</div>
+	  <p>for Windows systems, select the link that looks like:</p>
+	  <div class="code">metacat-src-X.X.X.zip</div>
+    <p>where X.X.X is the latest version of Metacat.  Choose to save the file locally in the directory 
+    where your source should live.</p>
+    <p>Extract the Metacat package files on Linux systems by typing:
+      <div class="code">tar -xvzf metacat-src-X.X.X.tar.gz</div>
+    <p>or, on Windows, use your system unzip utility to extract the zip file.</p>
+    <p>You should see the full Metacat source tree.</p>
+ 
+  <a name="SVN"></a><div class="header2">SVN Checkout</div> 
+    <p>To check out the code from SVN, go to the directory where you would like the code 
+    to live and type:</p>
+      <div class="code">svn co https://code.ecoinformatics.org/code/metacat/tags/METACAT_&lt;rev&gt; metacat</div>
+    Where &lt;rev&gt; is the version of the code you want to check out (like 1_9). </p>
+    
+    <p>If you are trying to check out the head, type:</p>
+      <div class="code">svn co https://code.ecoinformatics.org/code/metacat/trunk metacat</div>
+      
+    <p>You should see a list of files as they check out.</p>
+    
+  <a name="BuildFromSource"></a><div class="header1">Build From Source</div>
+     <p>You should now have the Metacat source in a directory named "metacat" in your
+     code directory (We will refer to the metacat source directory as &lt;metacat_src_dir&gt;.
+     
+  <a name="PrepareBuild"></a><div class="header2">Prepare Build</div>   
+    <p>Edit the file at:</p>
+      <div class="code">&lt;metacat_src_dir&gt;/build.properties</div> 
+    <p>Make sure that the "build.tomcat.dir" property is set to your tomcat installation
+    directory.  For instance:</p>
+      <div class="code">build.tomcat.dir=/usr/local/tomcat</div>
+    <p>Metacat will use some of the native Tomcat libraries during the build.</p>
+    
+    <p>If your cvs user is something other than the user your are logged in as, you
+    will need to change the ${env.USER} part of the cvsroot property to be your cvs 
+    user.  For instance:</p>
+      <div class="code">cvsroot=:ext:cvs-user@cvs.ecoinformatics.org:/cvs</div>
+    <p> where your cvs user name is "cvs-user"</p> 
+    
+  <a name="DoAntBuild"></a><div class="header2">Do Ant Build</div>   
+    <p>In the &lt;metacat_src_dir&gt;, run: </p>
+      <div class="code">ant fullclean build-metacat</div>
+      
+    <p>You will see the individual modules get built.  You will be prompted
+    for your cvs password several times.  You should see a "BUILD SUCCESSFUL"
+    message at the end.</p>
+    
+    <p>You should see a new file named:</p>
+      <div class="code">&lt;metacat_src_dir&gt;/dist/knb.war</div>
+    <p>This file will be used during the
+      <a href="./metacat-install.html#InstallingMetacat">Metacat Installation</a>.</p>
+      
+  <br>
+    
+</body>
+</html>

Property changes on: docs/user/metacat-source-build.html
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
