File:  [LON-CAPA] / doc / build / fedora_install.frag
Revision 1.13: download - view: text, annotated - select for diffs
Fri Nov 19 21:08:47 2004 UTC (19 years, 5 months ago) by matthew
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_12_X, version_2_11_X, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_99_1, version_1_2_99_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, HEAD, GCI_3, GCI_2, GCI_1, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
Minimal install is the default.

    1: <html>
    2: <head><title>New installation instructions</title></head>
    3: <body>
    4: 
    5: <h1>Installing LON-CAPA on a minimal Fedora Core 2 Linux System</h1>
    6: <p>
    7: This document guides you through the process of setting up a new LON-CAPA
    8: server running Fedora Core 2 (FC2) with a minimum of packages installed.  
    9: The computer will be configured solely as a LON-CAPA server and will be 
   10: expected to have no other services running.  Your server is expected to have
   11: a reasonably fast connection to the internet.
   12: </p><p>
   13: More information is available at <a href="http://install.lon-capa.org/">
   14: http://install.lon-capa.org/</a>.
   15: </p>
   16: 
   17: <h2>Before you begin</h2>
   18: <p>
   19: Installing Linux is getting easier and easier.  However, it is still a
   20: non-trivial undertaking and experience with Red Hat Linux will make this 
   21: process easier.  You will be required to log in to the machine and execute
   22: some routine Unix commands.  Some familiarity with Linux is assumed.  
   23: Familiarity with the Apache web server, mod_perl, perl, and MySQL are not 
   24: required to install and run LON-CAPA.
   25: </p>
   26: 
   27: <h2>Installation Overview</h2>
   28: <p>
   29: The installation process takes the following steps:
   30: </p>
   31: <ol>
   32:   <li> Obtain Fedora Linux </li>
   33:   <li> Determine Network Settings</li>
   34:   <li> Install Fedora </li>
   35:   <li> Updating your system </li>
   36:   <li> Installing LON-CAPA </li>
   37:   <li> Create a Domain Coordinator </li>
   38:   <li> Start/Restart services </li>
   39:   <li> Log in to LON-CAPA </li>
   40: </ol>
   41: 
   42: <h2>Obtain Fedora Linux</h2>
   43: <p>
   44: FC2 ISO files can be obtained from the projects main site,
   45: <a href="http://fedora.redhat.com/">http://fedora.redhat.com/</a>.
   46: You will need only the first ISO image for the minimal install.
   47: </p> 
   48: 
   49: <h2>Determine Network Settings</h2>
   50: <p>
   51: You will need to know the following network settings for your installation.  
   52: <b>Note:</b>You must have a static IP address to use LON-CAPA.
   53: DHCP is <em>not</em> supported.
   54: </p>
   55: <ul>
   56:   <li>ip address </li>
   57:   <li>netmask </li>
   58:   <li>hostname </li>
   59:   <li>gateway </li>
   60:   <li>domain name server(s) </li>
   61: </ul>
   62: 
   63: <h2>Minimal FC2 Install</h2>
   64: <p>
   65: Installing Fedora is quite easy if you've installed any of the Red Hat products
   66: before.  Some documentation is available from 
   67: <a href="http://fedora.redhat.com/projects/anaconda-installer/">
   68: http://fedora.redhat.com/projects/anaconda-installer/</a>.
   69: There are a few sections that require comment.
   70: </p>
   71: <dl style="list-style:square outside none">
   72:    <dt>Installation Type</dt>
   73:    <dd>You should do a "Server" install.  We do not recommend
   74:        trying to install LON-CAPA with a different installation type.</dd>
   75:    <dt>Partitioning your Drive</dt>
   76:    <dd>You may want to use the automatic partitioning feature of the installer,
   77:        however you should review the results and be prepared to modify them.
   78:        LON-CAPA resource files are stored in the /home directory, so the
   79:        lion's share of the drive should be allocated here.  If you have 20 GB 
   80:        of space for Red Hat, /home should receive at least 10 to 12 gigs.  
   81:        Since MySQL uses the /var filesystem to store its databases you should
   82:        have at least 4 gigs of space available on /var.  Be sure to 
   83:        include adequate swap space.  A minimum is 512 Megs, but you should
   84:        typically have 1 or 2x as much swap space as you do physical RAM.</dd>
   85:    <dt>Network Configuration</dt>
   86:    <dd>LON-CAPA will <b>not</b> work with a machine set up to use a dynamic 
   87:        IP address.  When configuring your network card, be sure to unselect
   88:        the DHCP option and enter in your network information.</dd>
   89:    <dt>Firewall Configuration</dt>
   90:    <dd>The firewall should be customized to allow incoming ssh and www.  
   91:        Additional ports used by LON-CAPA are 5663 and 8080.  
   92:        Enter these in the entry box as <nobr>"5663:tcp, 8080:tcp"</nobr>.</dd>
   93:    <dt>Package Group Selection</dt>
   94:    <dd>Choose 'minimal install'</dd>
   95: </dl>
   96: <p>
   97: Finish installing your server, reboot it, and log in as root.
   98: </p>
   99: 
  100: <h2>Updating your system</h2>
  101: <p>
  102: Retrieve the loncapa_yum.conf file from the LON-CAPA install site:
  103: </p>
  104: <pre>
  105: wget http://install.loncapa.org/versions/fedora/loncapa_yum.conf 
  106: </pre>
  107: <p>
  108: Copy the loncapa_yum.conf file to /etc/yum.conf:
  109: </p>
  110: <pre>
  111: mv /etc/yum.conf /etc/yum.conf.backup
  112: cp loncapa_yum.conf /etc/yum.conf
  113: </pre>
  114: <p>
  115: Update your system to the latest versions of the system software:
  116: </p>
  117: <pre>
  118: yum update
  119: </pre>
  120: <p>
  121: You will need to reboot your system after yum finishes.  Reboot your system before proceeding with the LON-CAPA install.
  122: </p>
  123: 
  124: <h2>Installing LON-CAPA</h2>
  125: <h3>Install prerequisites</h3>
  126: <p>
  127: <p>
  128: Installating the LON-CAPA prerequisites is pretty straightforward.  Execute:
  129: </p><pre>
  130: yum install LONCAPA-prerequisites ntp
  131: </pre><p>
  132: This may take a moment due to LON-CAPA's large number of dependencies.
  133: </p>
  134: <h3>Retrieve and execute LON-CAPA setup program</h3>
  135: <p>
  136: Retrieve the LON-CAPA setup with the following command:
  137: </p>
  138: <pre>
  139: wget http://install.loncapa.org/versions/fedora/fedora_install.tar
  140: </pre>
  141: <p>
  142: Extract the archive with the following command:
  143: </p>
  144: <pre>
  145: tar xf fedora_install.tar
  146: </pre>
  147: <p>
  148: This creates a directory named <tt>installation</tt>.  Change to it and
  149: execute the setup script with the following commands:
  150: </p>
  151: <pre>
  152: cd installation
  153: ./install.pl
  154: </pre>
  155: <p>
  156: This script will prompt you for the MySQL root password and will download the latest LON-CAPA release.
  157: </p>
  158: 
  159: <h3>Determine LON-CAPA Settings</h3>
  160: <p>
  161: LON-CAPA requires a number of identifying parameters be set in order
  162: for it to function at all.  Below is a list with descriptions.
  163: </p>
  164: <dl>
  165:   <dt>Host Type (library or access)</dt>
  166:   <dd>The server must be designated a 'library' or an 'access' server.  In
  167:       general you should have a library server for your instructors to create
  168:       their course content on and run their courses.  Students should connect
  169:       to access servers.  If you are doing the first install of LON-CAPA at 
  170:       your site, or if you are playing with it for your own edification you
  171:       should make your machine a 'library' server.</dd>
  172:   <dt>LON-CAPA domain</dt>
  173:   <dd>Each site or school which installs LON-CAPA needs its own domain.
  174:       Here at MSU we use 'msu'.  You should choose something short but
  175:       meaningful.  <i>Restriction: One word, no hyphens, underscores, or 
  176:       special characters.</i>
  177:   </dd>
  178:   <dt>LON-CAPA host id</dt>
  179:   <dd>Each LON-CAPA server requires a unique internal name.  We use names
  180:       such as "msul1" for the first library server. <i>Restriction: One word, 
  181:       no hyphens, underscores, or special characters.</i>
  182:   </dd>
  183:   <dt>Host administrator email</dt>
  184:   <dd>The amount of email sent to this address is relatively minimal.  Messages
  185:       are sent every time the system starts up, or if the system is in 
  186:       serious trouble. On a laptop, make this <tt>root@localhost</tt>.
  187:   </dd>
  188: </dl>
  189: 
  190: <h3>Configuring LON-CAPA</h3>
  191: <p>
  192: To configure and install LON-CAPA, execute the following commands:
  193: </p>
  194: <pre>
  195: cd /root/loncapa-N.N     (N.N should correspond to a version number like '1.2')
  196: ./UPDATE
  197: </pre>
  198: <p>
  199: You will need to enter the LON-CAPA configuration information you determined 
  200: in the previous section.  
  201: </p>
  202: 
  203: <h2>Creating a Domain Coordinator</h2>
  204: <p>
  205: You will need at least one user at your site who has the role of
  206: 'domain coordinator'.  This user creates accounts for other users and
  207: grants them additional privileges.  The make_domain_coordinator.pl script
  208: invoked below requires that you enter the users password.  The password will
  209: show in plaintext as you type it.  Feel free to use the "passwd username"
  210: command to change it later.  Replace USERNAME and DOMAIN with an 
  211: appropriate user name and your domain.
  212: </p>
  213: <pre>
  214: cd /root/loncapa-N.N/loncom/build
  215: perl make_domain_coordinator.pl USERNAME DOMAIN
  216: (WILL PROMPT FOR PASSWORD HERE)
  217: mkdir ~USERNAME/public_html
  218: chown USERNAME:www ~USERNAME/public_html
  219: chmod 0775 ~USERNAME/public_html
  220: chmod a+x ~USERNAME
  221: </pre>
  222: 
  223: <h2>Start/Restart Services</h2>
  224: <p>
  225: The LON-CAPA network services take a moment to start.  Most misconfigurations
  226: will be appearant at this step.
  227: </p>
  228: <pre>
  229: /etc/init.d/loncontrol start
  230: /etc/init.d/httpd start
  231: </pre>
  232: <p>
  233: If you receive warnings when starting the httpd about missing perl modules,
  234: please make sure you followed the instructions in 
  235: <b>Installing LON-CAPA Dependencies</b>.  If you still have errors, please
  236: contact the LON-CAPA development team.
  237: </p>
  238: <h2>Log in to your LON-CAPA Machine</h2>
  239: <p>
  240: Point a web browser at your new machine and log in as the domain
  241: coordinator.  Congratulations!
  242: </p>
  243: 
  244: <h2>If Things aren't working right</h2>
  245: <p>
  246: If you've followed the steps above and the server doesn't start or you think 
  247: there's something wrong, please get in touch with the LON-CAPA developers.
  248: If there were errors in installation of the dependency RPMs or during the
  249: automatic setup, please send us as much information as possible.
  250: If some part of this document is unclear please let us know.
  251: </p>
  252: 
  253: </body>

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