home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / disks / disk442.lzh / UUCP / SlowSetup.DOC < prev    next >
Text File  |  1991-01-20  |  15KB  |  435 lines

  1.  
  2.                 SLOWSETUP.DOC
  3.  
  4.                 Matthew Dillon
  5.                 891 Regal Rd.
  6.                 Berkeley, Ca. 94708
  7.                 USA
  8.  
  9.                 uunet.uu.net!overload!dillon
  10.  
  11.  
  12.             GETTING UUCP UP AND RUNNING FOR REAL
  13.  
  14.  
  15.     This UUCP distribution in general is not for the uninitiated.  That is,
  16.     it is not user friendly.  This particular document outlines a general
  17.     installation procedure.  Be warned that there are a LOT of things you
  18.     will have to do to bring up UUCP on your machine.
  19.  
  20.     This document shows a TYPICAL setup.  You will most likely want to
  21.     modify the example to fit your own needs.  I cover all the points
  22.     though.
  23.  
  24.     (1) You made backups of the distribution floppies, right?  DO NOT
  25.     MODIFY THE DISTRIBUTION FLOPPIES.  The instructions below are
  26.     long and some are complex and you may wish to refer to the
  27.     original distribution diskettes if you accidently mess something
  28.     up.
  29.  
  30.  
  31.     (2A) Installing UUCP on a single floppy system.
  32.  
  33.     Well, it *is* possible, but difficult.    you need to make as much
  34.     space as possible available on the main floppy.
  35.  
  36.     The second distribution disk contains only the source and manual
  37.     pages.    I suggest you shuffle things around a bit.  You already
  38.     have a copy of the first distribution diskette. I suggest you
  39.     format a new disk and put the MAN directory of the second
  40.     distribution disk on it.  Note that there is a MAN directory
  41.     on the boot disk as well but this one contains only dmail.help
  42.     which you need to gain online help from dmail.
  43.  
  44.     The following executables are required on the boot floppy and
  45.     should not be moved off.  You should move as many of the remaining
  46.     executables somewhere else as you can.
  47.  
  48.         Required Executables in C
  49.  
  50.         c/dmail
  51.         c/getty
  52.         c/rmail
  53.         c/uucico
  54.         c/rnews
  55.         c/uucp
  56.         c/unbatcher
  57.         c/dme        (unless you configure your own editor)
  58.         c/sendmail
  59.         c/uux
  60.         c/uuxqt
  61.  
  62.     You will want to change the ASSIGNments in s/startup-sequence
  63.     as follows:
  64.  
  65.         Assign UUSPOOL:    UUCP:SPOOL
  66.         Assign UUMAIL:    UUCP:MAIL
  67.         Assign UUNEWS:    UUCP:NEWS
  68.  
  69.     These directories MUST be in nonvoltile storage or your USENET
  70.     node will be unreliable.
  71.  
  72.     (2B) Installing UUCP on a duel floppy system.
  73.  
  74.     In this case very little shuffling is required.  I suggest
  75.     the second floppy be used for UUSPOOL:, UULIB:, UUMAIL:, UUNEWS:,
  76.     GETTY:, and UUPUB:.
  77.  
  78.     Format a new floppy (this will be your second floppy) and create
  79.     directories as follows:
  80.  
  81.         MakeDir df1:spool
  82.         MakeDir df1:mail
  83.         MakeDir df1:mail
  84.         MakeDir df1:news
  85.         MakeDir df1:pub
  86.         MakeDir df1:lib
  87.  
  88.     Modify the Assignments in s/startup-sequence of the boot floppy
  89.     as follows:
  90.  
  91.         Assign UUSPOOL:    df1:spool
  92.         Assign UULIB:    df1:lib
  93.         Assign UUMAIL:    df1:mail
  94.         Assign UUNEWS:    df1:news
  95.         Assign GETTY:    UULIB:
  96.         Assign UUPUB:    df1:pub
  97.  
  98.     Copy df0:lib to df1:lib and either delete or rename df0:lib to
  99.     prevent confusion.  What we have done is move all dynamic storage
  100.     to df1: .. files that will change a lot or require a lot of disk
  101.     space.    Specifically, UULIB: was moved to DF1: because the
  102.     sequence number file is kept in UULIB: and this is updated for
  103.     each mail message sent.
  104.  
  105.     (2B) Installing UUCP on a Hard Drive
  106.  
  107.     Make a directory called UUCP on your hard drive somewhere.  And
  108.     Assign UUCP: to it.   Copy the contents of both distribution
  109.     floppies to your harddrive:
  110.  
  111.         (put first disk in DF0:)
  112.         1> Copy df0: UUCP: ALL CLONE
  113.         (put second disk in DF0:)
  114.         1> Copy df0: UUCP: ALL CLONE
  115.  
  116.     It is easiest to keep all the directories in one place.  Note
  117.     that a MAN directory exists on both distribution floppies, simply
  118.     merge them together.
  119.  
  120.     Merge the startup-sequence on the boot floppy into your master
  121.     startup-sequence.  Make sure you get all the Assigns and that
  122.     they are properly reassigned to the appropriate directory on
  123.     the harddisk.  Most people normally make a master UUCP: assign
  124.     as a reference point to other assigns.
  125.  
  126.  
  127.     Be sure that UUSPOOL:, UUMAIL:, UUNEWS: and UUPUB: are assigned
  128.     to your hard disk instead of ram.
  129.  
  130.     You will most likely want to run DCron and Getty from your
  131.     startup-sequence.  Be sure that UUCP:C is assigned *before*
  132.     these programs are run so they pick up the appropriate path.
  133.  
  134.     If Getty interferes with any terminal program you might use
  135.     you may be forced to BREAK it.    Remember to restart it to
  136.     enable incomming UUCP calls again.
  137.  
  138. DCron
  139.     DCron is an extremely useful utility to run, especially in
  140.     systems with hard disks.  The only thing you have to watch out
  141.     for is to be sure to BREAK it (kill it) before shutting off your
  142.     machine.  DCron writes to its log file and runs other programs
  143.     based on the date and you don't want to accidently turn off your
  144.     machine when DCron has just started up some other program that
  145.     may write to your hard disk.
  146.  
  147.     In the context of UUCP, DCron is normally used to automatically
  148.     poll systems in the wee hours while you are asleep, to trim
  149.     log files automagically, and maybe disable the modem's speaker
  150.     while you are asleep (at least, that is what I use it for).
  151.  
  152.     Most people running UUCP leave their Amiga's on 24 hours a day.
  153.  
  154.                 Other System Directories
  155.  
  156.     Merge the mountlist into your master mountlist and copy any
  157.     devices from l that you do not already have into your
  158.     master l directory.
  159.  
  160.     merge or copy uucp:s/crontab to s:crontab and uucp:s/.edrc to
  161.     s:.edrc .
  162.  
  163.     You can ignore files in uucp:system, they are standard system
  164.     files.
  165.  
  166.         ----    --  -    -   -    -   -    -  --    ----
  167.  
  168.     (3)     Other startup-sequence efficiency considerations
  169.  
  170.     UUCP relies heavily on the Amiga's multitasking capabilities.
  171.     Most programs execute other programs.  Many programs in UUCP:C
  172.     may be made resident as shown by the pure bit being set.  You
  173.     will probably at least want to make C:RUN resident if you haven't
  174.     already.
  175.  
  176.     Depending on available RAM you may want to make certain other
  177.     progams resident.  Here are some suggestions:
  178.  
  179.         uucp:c/dme        ; run by dmail to edit mail
  180.         uucp:c/uuxqt        ; run by uucico to handle received files
  181.         uucp:c/rmail        ; run by uuxqt to handle received mail
  182.         uucp:c/sendmail     ; run by dmail to handle outgoing mail
  183.  
  184.         (note that uucp:c/sendmail and uucp:c/rmail are the same
  185.          executable just renamed)
  186.  
  187.     STACK:    All programs should run with a stack of 8192.  This
  188.     has been tested for all programs except RNews and ANews which
  189.     may require more.
  190.  
  191.     RNEWS:    RNews currently takes a huge amount of memory and may run
  192.     reliably only on machines with at least 1.5MB of ram.  Even with
  193.     1.5MB you may need to run rnews manually instead of having it
  194.     automatically run by uuxqt.  In this case rename the rnews
  195.     executable to something else and create a dummy script file in its
  196.     place (named as 'rnews') with the script bit set.
  197.  
  198.     (4)     System requirements
  199.  
  200.     Be sure you are running at least version 1.3 of the operating
  201.     system.  The main consideration is that you are using at least
  202.     the 1.3 serial device which fixes some bugs that existed in the
  203.     1.2 serial device.
  204.  
  205.     The NULL: device is required, this is in the l directory of
  206.     the boot floppy as already discussed.
  207.  
  208.     The UUSER: device is not required unless you want to start
  209.     getting fancy with the Getty.  This is mainly a programmer's
  210.     tool.
  211.  
  212.     (5)     Getty
  213.  
  214.     Normally one runs a Getty in his startup-sequence on the internal
  215.     serial port (from which you wish to receive calls).  Currently
  216.     only one Getty may be run PER SERIAL DEVICE NAME, and using other
  217.     units of a given serial device will interfere with Getty's operation.
  218.     This is due to the difficulty of implementation in Getty and will
  219.     eventually be fixed (to fix the problem I have to patch into
  220.     the OpenDevice and CloseDevice vectors).
  221.  
  222.     So for now you can really only run Getty on the internal serial
  223.     device.
  224.  
  225.     Getty does its best to not interfere with comm programs and
  226.     the like, but if a comm program refuses to run because it
  227.     can't get exclusive access to the serial port you may have
  228.     to kill the Getty by BREAKing it from a CLI.
  229.  
  230.     Refer to the manual page MAN:Getty for more information (for
  231.     floppy based systems all manual pages are on the second
  232.     distribution diskette).
  233.  
  234.     (6)     SHELL-STARTUP
  235.  
  236.     Assuming you are using the 1.3 Shell, the S:Shell-Startup file
  237.     normally contains at least a Path command and Stack command to
  238.     properly setup a newshell's path and stack.  Be sure the stack is
  239.     at least 8192 for this distribution of UUCP and add the UUCP:C (or
  240.     wherever you have placed the distribution executables) to your path
  241.     list.  Older UUCP distributions (<1.03) required a huge stack, this has
  242.     been fixed.
  243.  
  244.     (7)                   SITE-SETUP CONTROL FILES
  245.  
  246.     The following is a description of control and log files required
  247.     for UUCP and how you must modify them to install your system.
  248.  
  249.     (GETTY: is normally Assign'd to UULIB:)
  250.  
  251.     GETTY:Getty-Header
  252.  
  253.         This file contains the header line that is printed before a
  254.         login: prompt and is typically only two or three lines long.
  255.         The header usually contains your node name and the version of
  256.         the OS you are running under so people calling from term
  257.         programs know who you are.
  258.  
  259.         (Getty can be used to run things other than uucico)
  260.  
  261.         Modify accordingly.
  262.  
  263.     GETTY:Passwd
  264.  
  265.         The password file is used by Getty to authenticate login
  266.         requests.  In the context of UUCP, remote UUCICOs that call
  267.         your machine up will provide a login and password.    Getty
  268.         handles this and if the login is valid and the password matches
  269.         will run the appropriate program found in the password file.
  270.  
  271.         This is also where the directory corresponding to a ~user
  272.         specification is looked up.
  273.  
  274.         Getty also deals with such features as automatic disconnect on
  275.         timeout and logs times for all incomming and outgoing calls.
  276.  
  277.         In a serious system you should first remove all the junk
  278.         entries that come with the distribution.   You need an entry
  279.         for each remote machine you want to be able to call you.  You
  280.         do not necessarily need to give them logins that corrospond to
  281.         their machine names though this is how it is usually done.
  282.  
  283.         In the future other programs will be able to be run from
  284.         a Getty.
  285.  
  286.         Later versions of UUCP will implement MAILER-DAEMON type
  287.         stuff like 'unknown user', in which case the password file
  288.         will be used to define which user names are valid on the
  289.         system.
  290.  
  291.     GETTY:LOGFILE
  292.  
  293.         The logfile is appended to by Getty whenever an incomming
  294.         call occurs or somebody takes over the serial port.  It
  295.         logs connect and disconnect times for incomming calls and
  296.         usage for external programs.
  297.  
  298.     UULIB:Domain
  299.  
  300.         In nearly every case you will not need this file.
  301.  
  302.         Those of you who wish to do domain routing through
  303.         their machine or have more than one default for
  304.         unknown destinations should refer to the manual
  305.         page MAN:Domains.
  306.  
  307.     UULIB:.Signature
  308.  
  309.         .Signature is used by the Mail program and normally appended
  310.         to outgoing mail and news.
  311.  
  312.         Modify accordingly.  DMail can be setup to use an alternate
  313.         file.  ANews will check <user>.signature before falling back
  314.         on .Signature.
  315.  
  316.     UULIB:Seq
  317.  
  318.         The Seq file should exist but otherwise not be modified by
  319.         the user (except for setting it to a "1" once a year).  This
  320.         file is atomically updated and used to provide unique filenames
  321.         and mail IDs for outgoing mail.
  322.  
  323.     UULIB:Security
  324.  
  325.         This file contains a list of allowed directories remote UUCP
  326.         transfers may read and write to.  Refer to the Security manual
  327.         page.  This file never contains the UUSPOOL: directory which
  328.         is implicitly read-write.
  329.  
  330.         You need not modify this file now but should keep it in mind.
  331.         It protects your system in as much as I have been able to
  332.         close the loopholes.  Loopholes might still exist.
  333.  
  334.     UULIB:news.distribution
  335.  
  336.         This file contains a list of news distribution idents for
  337.         various areas and must normally be modified according to
  338.         where you are.. you need to be a UUCP guru to do this.  Most
  339.         people can just leave it alone.
  340.  
  341.     UULIB:Config
  342.  
  343.         This file contains configuration information for many
  344.         executables in UUCP:C and should be modified accordingly.
  345.  
  346.         Be sure you modify at least the following entries.    REFER TO
  347.         THE 'Assigns' MANUAL PAGE.
  348.  
  349.         NodeName
  350.         UserName
  351.         RealName
  352.         NewsFeed    (not required if you don't care about news)
  353.         Organization
  354.         TimeZone
  355.         DefaultNode
  356.         Editor
  357.  
  358.         **** Take some time to pick a node name for yourself.  It
  359.          should be no more than 8 characters long.  Some UUCP sites
  360.          barf at node names longer than 6 chars so if you are not
  361.          sure of your neighbors pick one no more than 6 characters
  362.          long.    Your site name should be in lower case.
  363.  
  364.          In anycase, the first 6 characters MUST be unique.
  365.  
  366.     UULIB:L.Sys
  367.  
  368.         This file contains site information for sites that may call
  369.         you up or you may call up.
  370.  
  371.         You must modify this file appropriately before you can run
  372.         UUCico and other UUCP related programs.  Refer to the 'L.Sys'
  373.         manual page.
  374.  
  375.     UULIB:Aliases
  376.  
  377.         This is a mail aliases file with aproximately the same
  378.         power as /usr/lib/aliases on UNIX systems.    You should
  379.         refer to the 'Aliases' manual page and modify this file as
  380.         appropriate for various defaults like 'postmaster'... to
  381.         whatever user name you pick for yourself.
  382.  
  383.     UUCP:S/Crontab
  384.  
  385.         This is a functional Crontab file for use with the DCron program.
  386.         This file is normally moved to S: (it is useless in UUCP:S).
  387.  
  388.     UUSPOOL:LOGFILE
  389.  
  390.         UUCICO and other programs log errors and other things to
  391.         this file.    Normally you use DCron to clean up this and
  392.         other log files once daily to keep them from getting to large.
  393.  
  394.  
  395.     (8)     TESTING / DMAIL
  396.  
  397.     You will next want to test your UUCP configuration.  If testing
  398.     with a friend's Amiga running the same distribution simply
  399.     email to him, then one of you run uucico -s<remotesystem>
  400.     just like in QuickSetup.DOC, except this time you are using
  401.     the system name he picked instead of 'test1' or 'test2'.
  402.  
  403.     If the initial tests in QuickSetup.DOC worked and the system
  404.     is not working now check the following (common problems):
  405.  
  406.         (a) the login and password in your L.Sys file (that uucico uses
  407.         to login to the remote machine) matches the login and
  408.         password in the remote machine's Getty:Passwd file.
  409.  
  410.         (b) There is an entry for your node in the remote machine's
  411.         L.Sys file and vise versa
  412.  
  413.         (c) The telephone number is correct
  414.  
  415.         (d) the node names are all in lower case
  416.  
  417.         (e) you constructed the email address correctly (nodename!user)
  418.  
  419.     I suggest you get UUCP running with a friend before getting it
  420.     running with a UNIX system as it is easier to test it with a
  421.     friend.
  422.  
  423.     Assuming you email to the user name he picked for his UULIB:Config
  424.     'UserName' entry and he did the same thing to you, entering
  425.     'dmail' without any arguments will bring up the mail shell
  426.     and allow you to read the message after transfer via UUCico
  427.     is complete.  You can check that the email actually arrived
  428.     into the right mail box in UUMAIL: by simply getting a directory
  429.     of UUMAIL:
  430.  
  431.     READ the manual page for DMail for information on the
  432.     construction of mail paths to other systems and users.
  433.  
  434.  
  435.