home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 362a.lha / uucp0_v1.05d / SlowSetup.DOC < prev    next >
Text File  |  1990-04-08  |  15KB  |  425 lines

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