File:  [LON-CAPA] / doc / install / redhat7.3 / new_install_rh73.html
Revision 1.12: download - view: text, annotated - select for diffs
Mon Jan 6 18:11:39 2003 UTC (21 years, 10 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_5_msu, version_2_11_5, 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_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_X, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99, version_1_0_3, version_1_0_2, version_1_0_1, version_1_0_0, version_0_99_5, version_0_99_4, version_0_99_3, version_0_99_2, version_0_99_1, version_0_99_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, conference_2003, 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
Reconfigured document - do update as soon as possible.  Turn off httpd
upon initial boot of system.  (There was a slapper infection on a LON-CAPA
install in East Texas.).  Added lecture on keeping your system up to date.

    1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    2:  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3: <html>
    4: <head>
    5: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
    6: <title>Setting up a Red Hat7.3 LON-CAPA Server</title>
    7: </head>
    8: <body>
    9: <!-- $Id: new_install_rh73.html,v 1.12 2003/01/06 18:11:39 matthew Exp $ -->
   10: <h1>Setting up a Red Hat 7.3 LON-CAPA Server</h1>
   11: <h2>Integrated installation</h2>
   12: <p>
   13: These instructions combine the installation of RedHat 7.3 and LON-CAPA
   14: into one straightforward process. 
   15: More information is available at <a href="http://install.lon-capa.org/">
   16: http://install.lon-capa.org/</a>.
   17: </p>
   18: 
   19: <h2>Before you begin</h2>
   20: <p>
   21: Installing Linux is getting easier and easier.  However, it is still a
   22: non-trivial undertaking and experience with Red Hat Linux will make this 
   23: process easier.  You will be required to log in to the machine and execute
   24: some routine Unix commands.  Some familiarity with Linux is assumed.
   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 Red Hat 7.3 </li>
   33:   <li> Gather information for installing Red Hat </li>
   34:   <li> Install Red Hat 7.3 </li>
   35:   <li> Determine your LON-CAPA Settings </li>
   36:   <li> Install LON-CAPA </li>
   37:   <li> Configure LON-CAPA </li>
   38:   <li> Pick a hosts.tab file </li>
   39:   <li> Create a Domain Coordinator </li>
   40:   <li> Start/Restart services </li>
   41:   <li> Log in to LON-CAPA </li>
   42: </ol>
   43: 
   44: <h2>Obtain the Red Hat 7.3 installation CDs</h2>
   45: <p>
   46: These are freely available on the internet.
   47: </p>
   48: 
   49: <h2>Determine Network settings for your site</h2>
   50: <p>
   51: You will need to have the following information for your site.  You must
   52: have a static IP address (do not use DHCP).
   53: </p>
   54: <ul>
   55:   <li>ip address </li>
   56:   <li>netmask </li>
   57:   <li>network </li>
   58:   <li>broadcast </li>
   59:   <li>hostname </li>
   60:   <li>gateway </li>
   61:   <li>domain name server(s) </li>
   62: </ul>
   63: 
   64: <h2>Install Red Hat 7.3</h2>
   65: <p>
   66: When you install RedHat you will need to ensure the following (the list below
   67: is in the order the issues appear in the installation of Red Hat 7.3):
   68: </p>
   69: <dl>
   70:    <dt>Installation Type</dt>
   71:    <dd>You should definitely do a "Server" install.  We do not recommend
   72:        Trying to install LON-CAPA with a different installation type.</dd>
   73:    <dt>Partitioning your Drive</dt>
   74:    <dd>You may want to use the automatic partitioning feature of Red Hat,
   75:        however you should review the results and be prepared to modify them.
   76:        LON-CAPA resource files are stored in the /home directory, so the
   77:        lion's share of the drive should be allocated here.  If you have 8 GB 
   78:        of space for Red Hat, /home should receive 4 to 6 gigs.  Be sure to 
   79:        include adequate swap space.  A minimum is 512 Megs, but you should
   80:        typically have 1 or 2x as much swap space as you do physical RAM.</dd>
   81:    <dt>Network Configuration</dt>
   82:    <dd>LON-CAPA will <b>not</b> work with a machine set up to use a dynamic 
   83:        IP address.  When configuring your network card, be sure to unselect
   84:        the DHCP option and enter in your network information.</dd>
   85:    <dt>Firewall Configuration</dt>
   86:    <dd>The installation script will remove and disable your firewall.</dd>
   87:    <dt>Package Group Selection</dt>
   88:    <dd>At a minimum, install the following packages:
   89:       <ul>
   90:         <li>NFS File Server </li>
   91:         <li>Windows File Server </li>
   92:         <li>Web Server </li>
   93:       </ul>
   94:        Other packages can be installed as you like.</dd>
   95:    <dt>X Windows Configuration</dt>
   96:    <dd>If you chose to install the X-windows packages you will need to 
   97:        configure them.  If you are unsure of the support for your video
   98:        card you may wish to skip the configuration.</dd>
   99: </dl>
  100: <p>
  101: Other notes:
  102: </p>
  103: <ul>
  104:   <li>Use md5 and shadow passwords if you are given the choice (this is
  105:       the default). </li>
  106: </ul>
  107: 
  108: <h2>Determine LON-CAPA settings</h2>
  109: <p>
  110: LON-CAPA requires a number of identifying parameters be set in order
  111: for it to function at all.  Below is a list with descriptions.
  112: </p>
  113: <dl>
  114:   <dt>Host Type (library or access)</dt>
  115:   <dd>The server must be designated a 'library' or an 'access' server.  In
  116:       general you should have a library server for your instructors to create
  117:       their course content on and run their courses.  Students should connect
  118:       to access servers.  If you are doing the first install of LON-CAPA at 
  119:       your site, or if you are playing with it for your own edification, you
  120:       should make your machine a 'library' server.</dd>
  121:   <dt>LON-CAPA domain</dt>
  122:   <dd>Each site or school which installs LON-CAPA needs its own domain.
  123:       Here at MSU we use 'msu'.  You should choose something short but
  124:       meaningful.
  125:    <i>Restriction: One word, no hyphens, underscores, or special characters</i>
  126:   </dd>
  127:   <dt>LON-CAPA host id</dt>
  128:   <dd>Each LON-CAPA server requires a unique internal name.  We use names
  129:       such as "msul1" for the first library server. 
  130:    <i>Restriction: One word, no hyphens, underscores, or special characters</i>
  131:   </dd>
  132:   <dt>Host administrator email</dt>
  133:   <dd>The amount of email sent to this address is relatively minimal.  Messages
  134:       are sent every time the system starts up, or if the system is in 
  135:       serious trouble. On a laptop, make this <tt>root@localhost</tt>.
  136:   </dd>
  137:   <dt>Root password for SQL database</dt>
  138:   <dd>In order to keep people from corrupting the MYSQL database, a root
  139:       password is needed.  You'll need to remember this.</dd>
  140: </dl>
  141: 
  142: <h2>Install LON-CAPA</h2>
  143: <p>
  144: Log in as root with the password you provided during the Red Hat 
  145: installation process.
  146: </p><p>
  147: Stop the http daemon while we're installing LON-CAPA.
  148: <pre>
  149: /etc/init.d/httpd stop
  150: </pre>
  151: </p><p>
  152: Retrieve the LON-CAPA installation package
  153: <pre>
  154: wget http://install.loncapa.org/versions/rh73install/loncapa-rh73install.tar
  155: tar xf loncapa-rh73install.tar
  156: cd install
  157: ./install.pl
  158: </pre>
  159: </p>
  160: 
  161: <h2>Configure LON-CAPA</h2>
  162: <p>
  163: Execute the following commands
  164: </p>
  165: <pre>
  166: cd /root/loncapa-N.N     (N.N should correspond to a version number like '0.6')
  167: ./UPDATE
  168: </pre>
  169: <p>
  170: You will need to enter the LON-CAPA configuration information you requested
  171: above.
  172: </p>
  173: 
  174: <h2>Update your system</h2>
  175: <p>
  176: It is very important that you update your LON-CAPA system to use the
  177: latest RedHat packages.  LON-CAPA uses CHECKRPMS to notify users their system
  178: needs updating.  
  179: <pre>
  180: /usr/local/loncapa/bin/CHECKRPMS
  181: </pre>
  182: CHECKRPMS will give you the option of downloading the updates you need.
  183: Say yes.  Then issue the following commands:
  184: <pre>
  185: cd /tmp/loncapa_rpm_updates'
  186: rpm -Uvh *
  187: </pre>
  188: </p><p>
  189: You will need to reboot your system to begin running the new Linux Kernel
  190: put out by RedHat.  You can wait until the end of the LON-CAPA installation
  191: process to reboot.
  192: </p><p>
  193: Congratulate yourself - your system is up to date.  Please do your best to
  194: keep it that way!  When LON-CAPA is installed it sets itself up to run 
  195: CHECKRPMS script every night and email you the results.  
  196: <b>Please do not ignore these emails.</b>  
  197: You will need to update the RPMs yourself when it notifies you.  
  198: Keeping your system up-to-date goes a long way towards ensuring the 
  199: integrity of your student records.
  200: </p>
  201: 
  202: <h2>Picking a hosts.tab file</h2>
  203: <p>
  204: The "hosts.tab" file controls which LON-CAPA servers your server attempts 
  205: to access and which servers it will respond to.  If this is your first 
  206: install of LON-CAPA on your network, we suggest choosing a 'standalone' 
  207: "hosts.tab".  On a laptop, you must choose 'standalone'.
  208: Please contact the support staff at www.loncapa.org for
  209: information about adding more hosts to your "hosts.tab" file.
  210: </p>
  211: <p>
  212: <b>Note:</b> for <b>non</b>-standalone configurations, you do need to add 
  213: yourself  to the <tt>/home/httpd/lonTabs/hosts.tab</tt> to initially test your 
  214: configuration. Eventually, you will be added to the general cluster tables by
  215: LON-CAPA staff, so this is temporary. A <tt>hosts.tab</tt> entry has the 
  216: format
  217: </p>
  218: <pre>
  219: lonHostID:domain:hosttype:dns-name:ipaddress
  220: </pre>
  221: <p>
  222: for example
  223: </p>
  224: <pre>
  225: 103l5:library:s17.lite.msu.edu:35.8.63.27
  226: </pre>
  227: <p>
  228: Please edit this file with a UNIX editor, not a PC or Mac one, so that the 
  229: linebreaks are correct.
  230: </p>
  231: 
  232: <h2>Creating a Domain Coordinator</h2>
  233: <p>
  234: You will need at least one user at your site who has the role of
  235: 'domain coordinator'.  This user creates accounts for other users and
  236: grants them additional privileges.  The make_domain_coordinator.pl script
  237: invoked below requires that you enter the users password.  The password will
  238: show in plaintext as you type it.  Feel free to use the "passwd username"
  239: command to change it later.  Replace USERNAME and DOMAIN with an 
  240: appropriate user name and your domain.
  241: </p>
  242: <pre>
  243: cd /root/loncapa-N.N/loncom/build
  244: perl make_domain_coordinator.pl USERNAME DOMAIN
  245: (WILL PROMPT FOR PASSWORD HERE)
  246: mkdir ~USERNAME/public_html
  247: chown USERNAME:www ~USERNAME/public_html
  248: chmod 0775 ~USERNAME/public_html
  249: chmod a+x ~USERNAME
  250: </pre>
  251: 
  252: <h2>Start/Restart Services</h2>
  253: <p>
  254: The LON-CAPA network services take about a minute to start.
  255: </p>
  256: <pre>
  257: /etc/init.d/loncontrol start
  258: /etc/init.d/httpd restart
  259: </pre>
  260: 
  261: <h2>Make Sure that Services Autostart on Boot</h2>
  262: <p>On Redhat 7.3 it is not guaranteed that Apache and MySQL automatically 
  263: restart on boot.  You should run /usr/sbin/ntsysv and set the following 
  264: daemons to be started at boot:
  265: </p>
  266: <pre>
  267: httpd
  268: mysqld
  269: </pre>
  270: <p>
  271: It is not necessary to reboot after doing this as they should already be 
  272: running by this point in the installation.  
  273: </p>
  274: <pre>
  275: /etc/init.d/httpd restart
  276: /etc/init.d/mysqld restart
  277: </pre>
  278: 
  279: <h2>Log in to your LON-CAPA Machine</h2>
  280: <p>
  281: Point a web browser at your new machine and log in as the domain
  282: coordinator.  Congratulations!
  283: </p>
  284: </body>
  285: </html>
  286: 

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