home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / NN / _NN-SPOO.TAR / usr / doc / nn / INSTALLATION next >
Encoding:
Text File  |  1991-04-23  |  24.3 KB  |  721 lines

  1.          CONFIGURATION AND INSTALLATION OF NN
  2.          ------------------------------------
  3.  
  4.                  RELEASE 6.4
  5.  
  6.  
  7. This file describes the necessary steps to configure and install nn.
  8. You are advised to read this file before proceeding with the installation.
  9.  
  10. NOTE:    The configuration and installation has changed significantly
  11. =====    from previous releases, so read these instructions carefully
  12.     even if you are familiar with previous releases of nn.
  13.  
  14. If you want to use NNTP (accessing news from a remote host), you must
  15. also read the file NNTP.
  16.  
  17. The files RELEASE_NOTES and PROBLEMS contains descriptions of problems
  18. previously seen when installing nn.  If you run into a problem, consult
  19. that file before griping about it.
  20.  
  21. The following command line prompts are used in the examples:
  22.    `$' is used when no special privileges are required.
  23.    `#' is used when SUPER USER privileges may be required.
  24.  
  25.  
  26.                 STEP 1
  27.  
  28.               CONFIGURATION OF MAKEFILE
  29.               -------------------------
  30.  
  31. Check the 'Makefile' file and supply the proper values for the
  32. following parameters:
  33.  
  34. CC    The command to invoke the C compiler
  35.  
  36. CPP    The command to invoke the C preprocessor with the result
  37.     written to the standard output stream.
  38.  
  39. CFLAGS    Flags to the C compiler  (e.g. -O or -g)
  40.  
  41. LDFLAGS    Additional flags to the C compiler when linking executeables
  42.  
  43. Notice that mandatory system specific CFLAGS and LDFLAGS are usually
  44. defined in the s- file (see below).
  45.  
  46.  
  47.                 STEP 2
  48.  
  49.           CREATE CONFIGURATION FILE config.h
  50.           ----------------------------------
  51.  
  52. The configuration file is distributed in the file config.h-dist.  You
  53. must COPY this to config.h before proceeding.  Keep the original -dist
  54. file to allow patches to be applied to it if necessary.
  55.  
  56.     $ cp config.h-dist config.h
  57.  
  58.  
  59.                 STEP 3
  60.  
  61.          EDIT config.h TO REFLECT YOUR SYSTEM
  62.          ------------------------------------
  63.  
  64. For each required configuration parameter, the config.h file contains
  65. verbose comments explaining the meaning of each parameter in the file.
  66. Read and follow these instructions carefully.  If you do that, nn
  67. should compile and run without problems.
  68.  
  69. Further information about the parameters can be found below in case
  70. you are in doubt.  Regarding the NNTP related definitions, consult the
  71. file named NNTP.
  72.  
  73. Notice that every time you edit config.h, the file update.h is
  74. modified to make a new configuration level for the version in the
  75. source directory.  The current configuration is showed in the version
  76. string as #number.
  77.  
  78.  
  79.        STEP 3.1: SPECIFY NETWORK AND NNTP CONFIGURATION
  80.        ------------------------------------------------
  81.  
  82. If you use nn on a single system with news on its local disks, you
  83. will not have to worry the least about networking, and you simply
  84. leave NETWORK_DATABASE and NNTP undefined.
  85.  
  86. Otherwise, consult the file NNTP for further instructions on sharing
  87. the news file and/or the database via NFS and/or NNTP.
  88.  
  89.  
  90.              STEP 3.2: SELECT SYSTEM FILE
  91.              ----------------------------
  92.  
  93. Among the things you have to select are two system and machine
  94. dependent files (residing in the `conf' subdirectory).  The following
  95. system files are delivered with nn:
  96.  
  97.     s-3b1g.h    For 3b1 (unix-pc) with GCC.
  98.     s-NeXT1-0.h    For NeXT 1.0
  99.     s-aix221.h    For AIX 2.2.1
  100.     s-aux1-1.h    For A/UX 1.1
  101.     s-bsd4-2.h    For 4.2 BSD and Ultrix systems
  102.     s-bsd4-3.h    For 4.3 BSD systems
  103.     s-dnix5-2.h    For dnix 5.2 on DIAB DS90.
  104.     s-dnix5-3.h    For dnix 5.3 on DIAB DS90.
  105.     s-dynix3-0.h    For Dynix 3.0 on Symmetry.
  106.     s-fortune.h    For Fortune 32:16 [read comments in the file]
  107.     s-hpux.h    For HPUX (series 300)
  108.     s-hpux2-1.h    For HPUX 2.1 (series 800)
  109.     s-hpux3-0.h    For HPUX 3.0 (series 800)
  110.     s-hpux6-5.h    For HPUX 6.5 or newer (series 300)
  111.     s-hpux7-0.h    For HPUX 7.0
  112.     s-ix386.h    For Interactive UNIX on 386.
  113.     s-ptx1-1.h    For Dynix/PTX on symmetry.
  114.     s-pyramid.h    For Pyramid (and Targon 35).
  115.     s-scoV386.h    For SCO UNIX V on 386.
  116.     s-sgi4D.h    For IRIX 3.1/3.2 [read comments in the file]
  117.     s-sinix.h    For Siemens SINIX
  118.     s-sunos3.h    For SunOS 3
  119.     s-sunos4-0.h    For SunOS 4.0
  120.     s-sunos4-v.h    For SunOS 4.1 SysV environment
  121.     s-sys5-tcap.h    For system V using termcap rather than terminfo.
  122.     s-sys5.h    For most system V based systems.
  123.     s-sysV88.h    For Motorola System V/88 Release 3.
  124.     s-texas1500.h    For Texas Instruments System 1500.
  125.     s-tower32.h    For NCR tower
  126.     s-ultrix.h    For ULTRIX systems (4.2 based)
  127.     s-umipsb.h    For Mips running riscos 4.0 or greater
  128.     s-umipsb4-5.h    For Riscos 4.5 and later
  129.     s-uport2-2.h    For Microport UNIX V.2
  130.     s-usg3-1.h    For most system V systems (obsolete)
  131.     s-uts2-0.h    For Amdahl UTS 2.0
  132.     s-xenix286.h    For SCO Xenix 2.2.1 (286) -- terminfo
  133.     s-xenix286b.h    For SCO Xenix 286 -- termcap
  134.     s-xenix386.h    For xenix386 [termcap version].
  135.     s-xenix386ds.h    For Xenix386 2.3.2 w/development system.
  136.     s-xenix68k.h    For Tandy 68000/Xenix 3.2
  137.  
  138. If none of these can be used on your system, create your own based on
  139. the file conf/s-template.h.
  140.  
  141.  
  142.             STEP 3.3: SELECT MACHINE FILE
  143.             -----------------------------
  144.  
  145. The following machine description files are delivered with nn:
  146.  
  147.     m-3b1g.h    For 3b1 (unix-pc) with GCC [no networking].
  148.     m-amdahl.h    For Amdahl 5890 (big iron)
  149.     m-att3b.h    For AT&T 3b2 (with s-usg3-1.h)
  150.     m-convex.h    For Convex.
  151.     m-dec3100.h    For DECstation 3100 (with s-bsd4-2.h)
  152.     m-gould.h    For Gould PN6000 (with s-bsd4-3.h)
  153.     m-hp9000.h    For HP9000 series 320 and 800 (at least)
  154.     m-i80286.h    For Intel 80286 processors [no network support]
  155.     m-i80386.h    For Intel 80386 processors [no network support]
  156.     m-m680x0.h    For Motorola 68000 family processors
  157.     m-m88000.h    For Motorola 88000 risc processors
  158.     m-mips.h    For MIPS processors
  159.     m-mx300.h    For Siemens MX300
  160.     m-pyramid.h    For Pyramid (and Targon 35).
  161.     m-rt6150.h    For IBM 6150
  162.     m-sgi4D.h    For Silicon Graphics 4D series.
  163.     m-sparc.h    For SPARC processors
  164.     m-sun386i.h    For 80386 based SUNs [have network support]
  165.     m-symmetry.h    For Sequent Symmetry.
  166.     m-vax.h        For VAX family
  167.  
  168. If you cannot use one of these machine files create your own based on
  169. the file conf/m-template.h.
  170.  
  171.  
  172.             STEP 3.4: LOCALIZE NN
  173.             ---------------------
  174.  
  175. You will have to specify a number of files and directories which nn
  176. has to know about to work properly.  If you don't specify these, nn
  177. will in most cases use it own alternatives which will correspond to
  178. common practices on most installations.
  179.  
  180. The following directories and files can be defined in config.h:
  181.  
  182.  
  183. BIN_DIRECTORY        (mandatory)
  184.  
  185.     The directory where you want the user programs to be
  186.     installed.  The following programs will be installed in that
  187.     directory:
  188.  
  189.     nn        The news reader program
  190.     nnacct        Accounting, quota, and access management
  191.     nnadmin        The administration program (link to nn)
  192.     nncheck        Check for unread articles (link to nn)
  193.     nngoback    Mark older articles as unread (link to nn)
  194.     nngrab        Faster keyword search
  195.     nngrep        Grep for news groups (link to nn)
  196.     nnpost        Standalone posting program (link to nn).
  197.     nnstats        Collection and expiration statistics
  198.     nntidy        Cleans up the rc file (link to nn)
  199.     nnusage        Show usage statistics
  200.  
  201.  
  202. LIB_DIRECTORY
  203.  
  204.     The directory where nn's auxiliary programs and files will
  205.     be installed unless another directory is specified by one of
  206.     the following definitions.
  207.  
  208.  
  209. MASTER_DIRECTORY    (optional, default = LIB_DIRECTORY)
  210.  
  211.     The directory containing the nnmaster daemon programs.  It
  212.     should not be shared in a networked environment!
  213.  
  214.     back_act
  215.         Program to make daily copies of the active file to
  216.         allow nngoback to work.
  217.  
  218.     nnmaster
  219.         The program building and maintaining nn's database.
  220.  
  221.     nnspew    Program to build a tertiary subject database for
  222.         nngrab.
  223.  
  224.     MPID    Exclusive lock file created by the currently running
  225.         nnmaster daemon process.  Accessed by nnadmin to
  226.         get the daemon's process id.
  227.  
  228.     GATE    Message file created by nnadmin and deleted by nnmaster.
  229.  
  230.  
  231. CLIENT_DIRECTORY    (optional, default = LIB_DIRECTORY)
  232.  
  233.     Contains the auxiliary programs and files required by the nn
  234.     program:
  235.  
  236.     aux    The shell script used in connection with replies etc.
  237.         It knows about common editors like vi and gnu emacs to
  238.         have them position the cursor appropriately.  To add
  239.         support for your own favourite editor, you should edit
  240.         the file aux.sh, not the compiled `aux' script!
  241.  
  242.     upgrade_rc
  243.         Script used by nn to convert release 6.3 rc files to
  244.         .newsrc format when first invoked after upgrade to 6.4.
  245.  
  246.  
  247. HELP_DIRECTORY        (optional, default = CLIENT_DIRECTORY/help)
  248.  
  249.     The directory where the help files and online manual are
  250.     stored.  This directory is an obvious candidate for sharing in
  251.     a network.
  252.  
  253.  
  254. CACHE_DIRECTORY        (optional, default = each user's .nn directory)
  255.  
  256.     Only used with NNTP!! Directory to be used as a common storage
  257.     for temporary cache files when nn is used with NNTP.  Using a
  258.     common directory for cache files allows you to clean these out
  259.     on reboot with a single "rm" command in the rc file:
  260.          (cd CACHE_DIRECTORY; rm -f *)
  261.     But of course this requires that you use a separate directory
  262.     for the cache!
  263.  
  264.  
  265. TMP_DIRECTORY        (optional, default = /usr/tmp)
  266.  
  267.     The directory to be used as temporary storage for files used
  268.     when editing responses etc.
  269.  
  270.  
  271. NEWS_DIRECTORY        (optional, default = /usr/spool/news)
  272.  
  273.     The directory containing the news spool directories and files.
  274.     It is not required when a remote NNTP server is used.
  275.  
  276.  
  277. NEWS_LIB_DIRECTORY    (optional, default = /usr/lib/news)
  278.  
  279.     The directory containing the news system's active file and
  280.     other related files.
  281.  
  282.     When a remote NNTP server is used, it is still needed as the
  283.     location of the (mini-)inews program if posting is allowed
  284.     (unless INEWS is explicitly defined to override the default
  285.     location).
  286.  
  287.  
  288. LOG_FILE    (optional, default = LIB_DIRECTORY/Log)
  289.  
  290.     The log file used by nnmaster and nn to store reports, error
  291.     messages, usage statistics, etc.
  292.  
  293.  
  294.           STEP 3.5: WHERE DO YOU WANT THE DATABASE?
  295.           -----------------------------------------
  296.  
  297. The following definitions in config.h are used to control where the
  298. database maintained by nnmaster is stored.  The database consists of a
  299. couple of files containing global information for all existing groups,
  300. and a pair of files for each non-empty group.  The database requires
  301. some disk space to hold the necessary information.  On average about
  302. 100 bytes per article in the system, or about 5% of the space
  303. allocated to the news articles.
  304.  
  305. The database is intended to be shared together with the news spool
  306. directory in a networked environment provided that NETWORK_DATABASE is
  307. defined in config.h.
  308.  
  309. If DB_DIRECTORY is not defined, the global database files will be
  310. located in a directory named NEWS_DIRECTORY/.nn, and the per-group
  311. files will be located in each individual news group's directory (named
  312. .nnd and .nnx).  Using this strategy will normally require that
  313. nnmaster is owned "news" (OWNER in config.h).
  314.  
  315. The location of the database can be changed via the following
  316. definitions in config.h:
  317.  
  318. DB_DIRECTORY         (optional, default = see above)
  319.     The directory containing the global database information files.
  320.     If you share /usr/spool/news via NFS or RFS, you can set DB to
  321.     something like /usr/spool/news/.nn to share it automatically
  322.     with /usr/spool/news.
  323.  
  324. DB_DATA_DIRECTORY    (optional, default = DB_DIRECTORY/DATA)
  325.     When DB_DIRECTORY is defined, the per-group files will no
  326.     longer be stored in the group directories, but in a single
  327.     common directory specified by DB_DATA_DIRECTORY.  The files in
  328.     this directory will be named either by group number or by
  329.     group name (if DB_LONG_NAMES is also defined).
  330.  
  331.  
  332. The files config.h and NNTP describes how to share the database
  333. between several machines (also when you don't use NNTP).
  334.  
  335.  
  336.                 STEP 4
  337.  
  338.              COMPILE THE SOFTWARE
  339.              --------------------
  340.  
  341. To compile the software, you just have to run one of the following
  342. make commands.
  343.  
  344. If you are making a complete package with both master and client, do
  345.  
  346.     $ make all
  347.  
  348. If you want to share a database which resides on another host (through
  349. NFS/RFS/rdist), you don't need a master on the local system, so you
  350. can do the following instead:
  351.  
  352.     $ make client
  353.  
  354.  
  355.                 STEP 5
  356.  
  357.                INSTALLING THE SOFTWARE
  358.                -----------------------
  359.  
  360. Installation of the nn software is handled entirely via a script
  361. "./inst" created during the compilation.  The components of nn are
  362. split into five parts, which can be installed separately or in various
  363. combinations depending on whether you run a stand-alone system or
  364. networked systems sharing the database and other parts of the nn
  365. package.  The five components are:
  366.  
  367. 1) Master files and programs (machine dependent)
  368.    Install the MASTER_DIRECTORY programs.
  369.  
  370. 2) User files and programs (machince dependent, shareable)
  371.    Install the BIN_DIRECTORY programs.
  372.  
  373. 3) Auxiliary programs (configuration dependent, shareable)
  374.    Install the CLIENT_DIRECTORY files and programs.
  375.  
  376. 4) Documentation (shareable)
  377.    Install the MAN pages in the proper directories.
  378.  
  379. 5) Help files (shareable)
  380.    Install the HELP_DIRECTORY files (except online manual).
  381.  
  382. 6) Online manual (shareable with 5)
  383.    Format and install the online manual in HELP_DIRECTORY.
  384.  
  385.  
  386. Unless you have defined yourself as the owner of the nn package and
  387. have write permission on all the necessary directories, you will need
  388. to be super-user to install nn, so start with
  389.  
  390.     $ su
  391.  
  392. Now run the installation script:
  393.  
  394.     # ./inst
  395.  
  396. The `inst' script will list a menu with the following choices:
  397.  
  398. (1)-(6)    Install individual parts of the package.
  399.  
  400. (s)    Install a complete server + client package (1-6).
  401.  
  402. (c)    Install a client which accesses all its support files and
  403.     the database via a network (2).
  404.  
  405. (h)    Install a client with local auxiliary files, but shared
  406.     documentation and help files (2-3).
  407.  
  408. (n)    Install a client accessing only the database via a network (2-6).
  409.  
  410. (m)    Install only the nnmaster (1).
  411.  
  412. (c)    Install only the client programs (2).
  413.  
  414. (u)    Update already installed parts of the package.  This will
  415.     check for the existence of the old programs, and only update
  416.     programs and files already installed.  You will typically use
  417.     this after applying patches.
  418.  
  419. You can also run the `inst' script with the choices as arguments, e.g.
  420.  
  421.     ./inst m c
  422.  
  423.  
  424. NOTICE: Since nnmaster runs setuid OWNER, all users can potentially
  425.     kill the running master, initialize the database etc. if they
  426.     have access to execute the master.  So either restrict the
  427.     permissions to execute nnmaster or the access to the directory
  428.     containing it.  The default installation puts modes -rwsr-s---
  429.     on nnmaster and leaves the directory "open" which may not be
  430.     adequate for you.
  431.  
  432.  
  433.                 STEP 6
  434.  
  435.                INITIALIZE THE DATABASE
  436.                -----------------------
  437.  
  438. If you have installed the nnmaster on the current system, you now have
  439. to initialize the database:
  440.  
  441.     $ su         -- also as superuser
  442.     # ./inst INIT
  443.  
  444. If something goes wrong in this step, e.g. problems with the active
  445. file, you must redo the initialization after fixing the other
  446. problems.
  447.  
  448. When the INIT operation completes, a database with empty entries for
  449. all the currently existing groups will have been created.  If you want
  450. some special actions to be performed for specific groups as described
  451. in the nnmaster manual, you must now edit the GROUPS file created by
  452. nnmaster in the DB_DIRECTORY.  If you modify the GROUPS file, you must
  453. run the following command to register the changes to the GROUPS file.
  454.  
  455.     $ MASTER_DIRECTORY/nnmaster -G
  456.  
  457. When you are ready, you must start nnmaster to enter all the existing
  458. articles into the database.  If you use the following command,
  459. nnmaster will fork and return immediately; its background child will
  460. continue to update the database whenever new articles arrive:
  461. It will ignore articles which are more than 45 days old (-O).
  462.  
  463.     $ MASTER_DIRECTORY/nnmaster -r -O45
  464.  
  465. It may take quite a while before all existing articles have been
  466. entered into the database.  You can use nnadmin's (U)pdate and (S)tat
  467. commands to trace the progress and the (L)og command to see if it has
  468. finished (a C entry will occur).  You will see that many groups will
  469. be BLOCKED, but the number should decrease as nnmaster gets through
  470. more and more groups.
  471.  
  472. You can also use the following command to do the initial collection of
  473. articles from a terminal and get a nice trace of the action:
  474.  
  475.     $ MASTER_DIRECTORY/nnmaster -D -O45
  476.  
  477. One or two numbers will be shown while a group is being collected.
  478. The first number is the number of the article currently being read.
  479. The (optional) second number will be the number of old (or bad)
  480. articles which nnmaster has ignored in the group so far.
  481.  
  482.  
  483. NOTICE: If the system file you have used does not specify how to
  484.     detatch a process from its controlling terminal, the nnmaster
  485.     may die when you log out.
  486.  
  487. When nnmaster has finished the initial collection the articles, you
  488. can nnadmin's (V)alidate command to verify that the database build by
  489. nnmaster is consistent (restart nnadmin before verifying).
  490.  
  491.  
  492.                 STEP 7
  493.  
  494.              UPDATE SYSTEM FILES
  495.              -------------------
  496.  
  497. You will have to edit some of the scripts and files on your system to
  498. get the database and other support files updates automatically, also
  499. following system shutdown, crashes, etc.
  500.  
  501.  
  502.         STEP 7.1: START NNMASTER WHEN SYSTEM IS BOOTED
  503.         ----------------------------------------------
  504.  
  505. To have the database updated at all times, the nnmaster should be
  506. started when the system is booted.
  507.  
  508. There will be a file named /etc/rc, a directory /etc/rc.d, or
  509. something similar on your system which contains commands that are
  510. executed when the system is booted.  The following commands should be
  511. added to the boot scripts:
  512.  
  513.     rm -f MASTER_DIRECTORY/MPID
  514.     MASTER_DIRECTORY/nnmaster -l -r -C
  515.  
  516.  
  517. Alternatively, you can arrange for cron to run the master regularly.
  518. In this case, you should not use the -r and -C options.  Instead, you
  519. should let cron execute the command 'nnadmin Z' once a day to
  520. validate the database.  For example:
  521.  
  522.     0,10,20,30,40,50 * * * * MASTER/nnmaster -LM
  523.     0 0 * * * BIN/nnadmin Z
  524.  
  525.  
  526. WARNING: If you share the database via NFS or RFS, nnmaster should run
  527.      only on the system where the database actually resides!!
  528.      And preferably it should run on the host where the news spool
  529.      directory is located as well.  This will improve speed as well
  530.      as reliability (NFS can suffer from time out problems).
  531.  
  532.  
  533.         STEP 7.2: SETUP EXPIRE ON THE DATABASE
  534.         --------------------------------------
  535.  
  536. To run expire on the database, you simply have to execute the
  537. following command (with sufficient privileges):
  538.  
  539.     BIN_DIRECTORY/nnadmin =EYW
  540.  
  541. You should arrange for expire to be run on nn's database whenever you
  542. have run expire on the news directories.
  543.  
  544. Supposing you run the expire from your crontab, you may simply add the
  545. above command to the crontab at an appropriate time when you are
  546. certain that news' expire is completed.
  547.  
  548. If you run nnmaster from cron rather than in daemon mode, you can use
  549. the following command to run expire on the database.
  550.  
  551.     nnmaster -F -k ""
  552.  
  553. This form allows you to run expire on selected groups rather than on
  554. all groups as initiated by the above nnadmin command.  See the
  555. nnmaster manual for further details.
  556.  
  557.  
  558.      STEP 7.3: SAVE A COPY OF THE ACTIVE FILE ONCE A DAY
  559.      ---------------------------------------------------
  560.  
  561. The `nngoback' program requires that the program `back_act' is
  562. executed once (and only once) every day to maintain suitable copies of
  563. the active files for the last 14 days.  In a network environment, it
  564. should execute on the same host as the nnmaster.
  565.  
  566. Simply arrange for back_act to be invoked by cron once a day
  567. (preferably just before the batch of news for `today' arrives).  For
  568. example, assuming the news is received just before midnight (syntax
  569. and location of crontab entry may vary):
  570.  
  571. In /usr/spool/cron/crontabs/news (System V):
  572.     00 23 * * * MASTER_DIRECTORY/back_act
  573. or in /usr/lib/crontab (BSD):
  574.     00 23 * * * su - news MASTER_DIRECTORY/back_act
  575.  
  576. The default setup allows you to go 14 days back with nngoback, but if
  577. you don't keep news that long, there is no reason to keep that many
  578. copies of the active file either.  In that case, you can supply the
  579. maximum number of days as an argument to back_act.  Of course, you can
  580. also keep more than 14 copies of the active file to allow nngoback to
  581. go more than 14 days back by giving back_act an argument larger than 14.
  582.  
  583.  
  584.       STEP 7.4:  PREPARE FOR NNSPEW TO BE RUN REGULARLY
  585.       -------------------------------------------------
  586.  
  587. The nngrab program will run faster if a dedicated subject database in
  588. addition to the normal database is available.  To maintain this
  589. additional database, the program nnspew must be executed regularly,
  590. e.g. from cron.  Every 3-6 hours should be sufficient to keep the
  591. database reasonably up-to-date, e.g.
  592.  
  593. In /usr/spool/cron/crontabs/news (System V):
  594.     2 6,12,18 * * * MASTER_DIRECTORY/nnspew
  595. or in /usr/lib/crontab (BSD):
  596.     2 6,12,18 * * * su - news MASTER_DIRECTORY/nnspew
  597.  
  598.  
  599.                 STEP 8
  600.  
  601.             INSTALL AND EDIT GLOBAL FILES
  602.             -----------------------------
  603.  
  604. Depending on your needs, you should create the following files on each
  605. host running nn (you may also just share the files if you like):
  606.  
  607. CLIENT_DIRECTORY/init
  608.     The global init file for all users on the system.  Users will
  609.     be able to override the definitions in this file, but you can
  610.     probably make some sensible decisions which will prevent
  611.     novice users from getting into trouble, for example set the
  612.     default distribution to "local" etc.
  613.  
  614.     You can also specify a global presentation sequence here.
  615.  
  616.     You may use init.sample as a starting point, but don't use it
  617.     without careful examination.  Especially, the sequence part
  618.     is mainly an illustration of the possibilities.  If you are in
  619.     doubt, just delete the sequence part of the file (groups will
  620.     then be presented in pure alphabetical order).
  621.  
  622. CLIENT_DIRECTORY/routes
  623.     You DO NOT NEED this file if you already run a domain based
  624.     mailer, i.e. when HAVE_ROUTING is defined in config.h.
  625.  
  626.     Otherwise, you can use it as a configuration file for the
  627.     domain address remapping done by nn in reply addresses and the
  628.     nnmail program.  You may use routes.sample as a starting point
  629.     (it briefly describes how to build a routes file).
  630.  
  631.     Please notice that neither the routes functionality, nor
  632.     nnmail is a supported part of nn - if you really want to
  633.     run a domain-based mailer, get smail 2.5 or later.  And if you
  634.     ask me how to use it I will answer: "Get SMAIL instead".
  635.  
  636. CLIENT_DIRECTORY/motd
  637.     Every time you change this file, it will be shown to the nn
  638.     users the next time they invoke nn.  This can be used to
  639.     inform the users about changes in the news environment or
  640.     local policies.  (motd = message of the day)
  641.  
  642.  
  643. NNTP_SERVER
  644.     Must contain the host name of the NNTP-server when NNTP is
  645.     used.  If you already run NNTP with your other news readers,
  646.     this file does not need to be modified.
  647.  
  648.  
  649.                 STEP 9
  650.  
  651.                TEST THE BASIC FUNCTIONS
  652.                ------------------------
  653.  
  654. If any of the following tests fails or you see other peculiar
  655. behaviour, you should consult the PROBLEMS file.  You may not be the
  656. only one to have seen the problems, and there might even be a solution.
  657.  
  658. First you should check that nnmaster does collect the articles it is
  659. supposed to.  Here, nnadmin is a great help, since you can peek around
  660. in all the database files and see what nnmaster is doing.  nnadmin
  661. takes a snap-shot of the database when it starts up, but you can take
  662. a new snap-shot anytime using the (U)pdate command.
  663.  
  664. Also look at the (L)og to see that there were no problems while
  665. collecting the articles.
  666.  
  667. There are a few things you should check to ensure the proper
  668. functioning of nn.
  669.  
  670. 1) Backup your current .newsrc file if you have one.  (Don't save it
  671.    in .newsrc.bak or .newsrc.orig since nn may use these names).
  672.  
  673. 2) Run `nn'.  If you have upgraded from release 6.3, nn will convert
  674.    your release 6.3 .nn/rc file into a .newsrc file.
  675.  
  676. 3) Does nn find any news?  If not, does nn -x find anything?
  677.  
  678. 4) Can you send mail to yourself?  Try the sequence:
  679.     m (return) (return) testing (return)
  680.     edit the letter
  681.     s (return)
  682.  
  683.    If not, you should check the REC_MAIL program.
  684.  
  685. 5) Can you post an article to the local test group?  Try:
  686.     :post (return)
  687.        test (return)
  688.        local (return)
  689.     edit the article
  690.     s (return)
  691.  
  692.    If not, you should check the INEWS program.
  693.  
  694.  
  695.          -------------------------------------------
  696.              IF EVERYTHING WORKS
  697.          YOU HAVE COMPLETED THE INSTALLATION
  698.          -------------------------------------------
  699.  
  700.  
  701.             UPDATING THE SOFTWARE
  702.             ---------------------
  703.  
  704. Patches to this software will be distributes as context diff's which
  705. can be applied using Larry Wall's `patch' program.
  706.  
  707. After applying the patches, you will need to redo the compilation and
  708. installation steps:
  709.  
  710.     $ patch -p0 < PATCH_FILE    (or use nn's :patch command)
  711.     $ make all
  712.     $ su
  713.     # ./inst u
  714.  
  715. To be able to install a new nnmaster, the currently running master (if
  716. any) will be stopped automatically, and it has to be started manually
  717. when the installation is complete (unless it is setup to be run by cron).
  718.  
  719. Notice that unless it is explicitly required in the patch, there is no
  720. need to reinitialize the database after applying the patch.
  721.