######  ######     #    ####### #######
                #     # #     #   # #   #          #
                #     # #     #  #   #  #          #
                #     # ######  #     # #####      #
                #     # #   #   ####### #          #
                #     # #    #  #     # #          #
                ######  #     # #     # #          #

================================================================================
"Daylight For Dummies"

Simple Daylight Installation

Setting up the Daylight 4.51 release from scratch.
-----------------------------------------------------------------------------

0.    Install the distribution from CDROM or FTP as instructed.

1.    Log in as root.  Add the group "thor" and the user "thor" as follows.

      (SunOS 5.x) groupadd -g 1000 thor
      (SunOS 5.x) useradd -c "Thor" -d /export/home/thor -g 1000 -m -u 1000 -s /bin/csh thor

      (IRIX) Edit /etc/group and add the line:
        thor:*:1000:
      (IRIX) Edit /etc/passwd and add the line:
        thor::1000:1000:Thor:/usr/people/thor:/bin/csh

      passwd thor
      (specify thor's password).
      passwd root
      (specify root's password).
      logout

2.    Log in as thor.  Load the tape (or archive or CDROM).  There needs
      to be 130 MB of disk space available.

      pwd 
      (should be /export/home/thor)
      tar xv

3a.   Become root:

      su
      (enter root's password)

3b.   (As root) add these lines to /etc/services:
      #
      # Daylight services
      #
      daytools        5554/tcp
      thor            5555/tcp
      merlin          5556/tcp

3c.   logout

4.    Log in again as thor.  $DY_ROOT/bin should be added to the
      execution path.  For csh users, modify your .login file, adding
      the line "setenv DY_ROOT /daylight/day442/v442" and also the
      "set path..." line to include $DY_ROOT/bin.  "source" the 
      modified .login.

4a.   Try "testlicense -i" to obtain your cpu information.   Contact
      Daylight (info@daylight.com) for a license, providing the cpu info
      plus your legal organization name, full address, phone/fax numbers,
      contact person name and email.  Edit dy_license.dat to include the
      new key as instructed by Daylight.

5.    As thor, enter  

      START_DCIS_SERVERS

      (Note that KILL_DCIS_SERVERS can be used to kill the servers.)

6.   Enter commands "thorserv_monitor" and "merserv_monitor".
      Merlin should be loading databases.  When this is done, enter
      "xvmerlin" and open all databases.  Test.


================================================================================
ADDITIONAL STEPS TO CONVIGURE DayHTML/DayCGI:

1.   Install the NCSA HTTPD at /usr/local/httpd/.

2.   Edit httpd.conf to reflect host name
      (line starting "ServerName".)

3.   Edit srm.conf to include definitions for aliases /dayhtml/ and
     /dayicon/, and script-alias /daycgi/.  E.g.,

Alias /dayhtml/ /daylight/day442/v442/dayhtml/
Alias /dayicon/ /daylight/day442/v442/dayhtml/icons/

ScriptAlias /daycgi/ /daylight/day442/v442/daycgi/

4.    As root, in /export/home/thor, enter 

      StartHTTPD

      (Note that KillHTTPD can be used to kill the process.)

5.    Run "netscape".  Tune in to URL: http:/// where you
      substitute the hostname for .  Next tune in to URL
      http:///dayhtml/ which should be the 4.42 home page.
      If nothing works, be sure proxies are turned OFF (Netscape
      network options).  Test the DayCGI applications.

6.    Edit /daylight/day442/v442/daycgi/dcgi_env.sh
   
      and modify the db definition lines for Daylight user "thor":
    
DCGI_ACDSPEC="acd951demo@::thor"
export DCGI_ACDSPEC
 
DCGI_MEDCHEMSPEC="medchem96demo@::thor"
export DCGI_MEDCHEMSPEC
 
DCGI_SAVANT_THORSPEC="spresi96demo@::thor"
DCGI_SAVANT_MERLINSPEC="spresi96demo@::thor"
export DCGI_SAVANT_THORSPEC DCGI_SAVANT_MERLINSPEC
 
DCGI_WDISPEC="wdi95demo@::thor"
export DCGI_WDISPEC

================================================================================
ADDITIONAL STEPS TO AUTOMATICALLY START SERVERS AT BOOT:

1.    (As root) Copy S99daylight and S99httpd (in directory
      /export/home/thor/system-files) to the directory /etc/rc2.d.  Also, 
      be sure they are executable.

      cd /etc/rc2.d
      cp /export/home/thor/system-files/S99* .
      chmod +x S99daylight S99httpd

      These files will start the Httpd and Daylight servers on boot.

================================================================================

   2 Dec 1996

Attachments:
  1. START_DCIS_SERVERS
  2. START_DCIS_SERVERS
  3. StartHTTPD
  4. KillHTTPD
  5. S99Daylight
  6. S99httpd