home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / HOWTO / NEWS-HOW < prev    next >
Encoding:
Text File  |  1995-04-20  |  30.6 KB  |  829 lines

  1.   The Linux News HOWTO
  2.   Vince Skahan, <vince@halcyon.com>
  3.   v1.14, 22 Oct 1994
  4.  
  5.   This document describes the setup and care+feeding of USENET News
  6.   under Linux.  You need to read this if you plan to post or read USENET
  7.   news either locally on your site or between your site and other sites.
  8.   You probably do *not* need to read this document if don't plan to pro-
  9.   vide USENET news as a feature of your system.
  10.  
  11.   1.  Introduction
  12.  
  13.   The intent of this document is to answer some of the questions and
  14.   comments that appear to meet the definition of "frequently asked
  15.   questions" about USENET News software under Linux in general, and the
  16.   version in the Linux SLS distribution in particular.
  17.  
  18.   This document and the corresponding Mail and UUCP "HOWTO" documents
  19.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  20.   posted to comp.os.linux.announce.
  21.  
  22.  
  23.   1.1.  New versions of this document
  24.  
  25.   New versions of this document will be periodically posted to
  26.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  27.   also be added to the various anonymous ftp sites who archive such
  28.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  29.  
  30.  
  31.   In addition, you should be generally able to find this document on the
  32.   Linux WorldWideWeb home page at http://sunsite.unc.edu/mdw/linux.html
  33.   and on my home page at http://www.halcyon.com/vince/welcome.html.
  34.  
  35.  
  36.   1.2.  Feedback
  37.  
  38.   I am interested in any feedback, positive or negative, regarding the
  39.   content of this document via e-mail.  Definitely contact me if you
  40.   find errors or obvious omissions.
  41.  
  42.   I read, but do not necessarily respond to, all e-mail I receive.
  43.   Requests for enhancements will be considered and acted upon based on
  44.   that day's combination of available time, merit of the request, and
  45.   daily blood pressure :-)
  46.  
  47.   Flames will quietly go to /dev/null so don't bother.
  48.  
  49.   Feedback concerning the actual format of the document should go to the
  50.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  51.  
  52.  
  53.   1.3.  Copyright Information
  54.  
  55.   The News-HOWTO is copyrighted (c)1994 Vince Skahan.
  56.  
  57.   A verbatim copy may be reproduced or distributed in any medium
  58.   physical or electronic without permission of the author.  Translations
  59.   are similarly permitted without express permission if it includes a
  60.   notice on who translated it.
  61.  
  62.   Short quotes may be used without prior consent by the author.
  63.   Derivative work and partial distributions of the News-HOWTO must be
  64.   accompanied with either a verbatim copy of this file or a pointer to
  65.   the verbatim copy.
  66.  
  67.   Commercial redistribution is allowed and encouraged; however, the
  68.   author would like to be notified of any such distributions.
  69.  
  70.   In short, we wish to promote dissemination of this information through
  71.   as many channels as possible. However, we do wish to retain copyright
  72.   on the HOWTO documents, and would like to be notified of any plans to
  73.   redistribute the HOWTOs.
  74.  
  75.   We further want that ALL information provided in the HOWTOS is
  76.   disseminated.  If you have questions, please contact Matt Welsh, the
  77.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu.
  78.  
  79.  
  80.   1.4.  Standard Disclaimer
  81.  
  82.   Of course, I disavow any potential liability for the contents of this
  83.   document.  Use of the concepts, examples, and/or other content of this
  84.   document is entirely at your own risk.
  85.  
  86.  
  87.   1.5.  Other sources of information
  88.  
  89.  
  90.   1.5.1.  USENET
  91.  
  92.  
  93.      news.admin.misc         General topics of network news administration.
  94.      news.admin.policy       Policy issues of USENET.
  95.      news.admin.technical    Maintaining network news. (Moderated)
  96.      news.software.b         Discussion about B-news-compatible software.
  97.      news.software.nn        Discussion about the "nn" news reader package.
  98.      news.software.nntp      The Network News Transfer Protocol.
  99.      news.software.readers   Software used to read network news.
  100.      news.sysadmin           Comments directed to system administrators.
  101.      news.announce.newusers  Explanatory postings for new users. (Moderated)
  102.      news.newusers.questions Q & A for users new to the Usenet.
  103.  
  104.  
  105.  
  106.  
  107.   1.5.2.  Books
  108.  
  109.   The following is a non-inclusive set of books that will help
  110.  
  111.  
  112.   o  "Managing UUCP and USENET" published by O'Reilly+Associates is in
  113.      my opinion the best book out there for figuring out the programs
  114.      and protocols involved in being a USENET site.
  115.  
  116.   o  "Unix Communications" published by The Waite Group contains a nice
  117.      description of all the pieces (and more) and how they fit together.
  118.  
  119.   o  "Practical Unix Security" published by O'Reilly+Associates has a
  120.      nice discussion of how to secure UUCP in general.
  121.  
  122.   o  "The Internet Complete Reference" from Osborne is a fine reference
  123.      book that explains the various services available on Internet and
  124.      is a great source for information on news, mail, and various other
  125.      Internet resources.
  126.  
  127.  
  128.   o  "The Linux Networking Administrators' Guide" from Olaf Kirch of the
  129.      Linux DOC Project is available on the net and is also published by
  130.      (at least) O'Reilly and SSC.  It makes a fine one-stop shopping to
  131.      learn about everything you ever imagined you'd need to know about
  132.      Unix networking.
  133.   1.6.  Where NOT to look for help
  134.  
  135.   There is nothing "special" about configuring and running USENET news
  136.   under Linux (any more).  Accordingly, you almost certainly do *NOT*
  137.   want to be posting generic news-related questions to the
  138.   comp.os.linux.* newsgroups.
  139.  
  140.   Unless your posting is truly Linux-specific (ie, "please tell me what
  141.   patches are needed to run INN with the bash1.12 in SLS v1.03") you
  142.   should be asking your questions in the newsgroups mentioned above.
  143.  
  144.   Let me repeat that.
  145.  
  146.   There is virtually no reason to post anything news-related in the
  147.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  148.   the news.*  hierarchy to handle *ALL* your questions.
  149.  
  150.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  151.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE USENET NEWS EXPERTS HANG
  152.   OUT IN THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  153.  
  154.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  155.   YOUR TIME AND EVERYONE ELSE'S AND IT FREQUENTLY DELAYS YOU FROM
  156.   GETTING THE ANSWER TO YOUR QUESTION.
  157.  
  158.   2.  Hardware Requirements
  159.  
  160.   There are no specific hardware requirements for USENET News under
  161.   Linux.  The only requirement of any type is sufficient disk space to
  162.   hold the software itself, the threads database(s), and the amount of
  163.   news you wish to keep on the system.  Figure on a minimum of 10 MB of
  164.   disk space for starters.
  165.  
  166.  
  167.   3.  Getting USENET News software
  168.  
  169.   All the software referenced in this "HOWTO" is available on the usual
  170.   Internet anonymous ftp sites.
  171.  
  172.   Looking in /networking/news on ftp.uu.net is usually a good way to
  173.   start.
  174.  
  175.   The newspak-2.4.tar.z distribution contains config files and readme
  176.   files related to building uucp, news, and mail software under Linux
  177.   from the various freely-available sources.  It can usually be found in
  178.   sunsite.unc.edu:/pub/Linux/system/Mail/news.  If you can't find it on
  179.   sunsite, please send me mail and I'll make sure you get a copy of it.
  180.  
  181.  
  182.   4.  News Transport Software
  183.  
  184.   There are two main sets of news "transport" software for *nix these
  185.   days, Cnews and INN.  The old "Bnews" has been declared officially
  186.   dead and unsupported by its authors.
  187.  
  188.   News "transport" is defined here to be the software that works behind
  189.   the scenes to post and propagate the news articles as well as making
  190.   the articles available for the newsreaders to access.
  191.  
  192.   You can set your paths to anything you like, as long as UUCP has the
  193.   absolute path to rnews in the Permissions file and as long as you have
  194.   your newsreaders configured so that they can find "inews" and "mail".
  195.  
  196.   Important - you're asking for trouble if you try to intermix Cnews and
  197.   INN.  Pick one or the other.  It's ok to add the NNTP "Reference
  198.   Release" into Cnews since they're intended to play well together.
  199.   4.1.  Cnews Performance Release
  200.  
  201.   The current de-facto standard news software is Cnews.  It has been
  202.   around for a number of years, I first saw it sometime around 1988.
  203.  
  204.   Cnews's main benefit is its maturity.  It runs on about every *nix you
  205.   can find and there are literally thousands of systems running it
  206.   worldwide.
  207.  
  208.   Its main disadvantage is that it seems to have been intended for uucp-
  209.   over-modem connections between sites and as such requires the addition
  210.   of NNTP software to handle realtime Internet feeds and reading.
  211.  
  212.   In addition, it requires external threading packages for the various
  213.   newsreaders, although the NOV package can now be hooked in to help
  214.   somewhat and it's rumored to have native NOV support in the upcoming
  215.   "cleanup" release.
  216.  
  217.   Regardless, the beginning USENET admin should probably run Cnews first
  218.   since it's so stable, well documented, and has many thousands of
  219.   experienced administrators who can answer questions.
  220.  
  221.   The newspak distribution on sunsite contains working config files for
  222.   Cnews under Linux as well as a couple line patch you'll need to make
  223.   to "doexplode" to get around some problems with bash1.12.
  224.  
  225.  
  226.   4.1.1.  Installing Cnews
  227.  
  228.   Installing the Performance Release of Cnews is absolutely a "rtfm"
  229.   project.  Just grab the sources, extract them, and follow the
  230.   instructions.
  231.  
  232.   The build.def in newspak was generated by running "build" the first
  233.   time and simply looking up the answers by checking out the
  234.   /usr/include files to get the right answers.
  235.  
  236.   When you start the actual compilation, it'll blow up a couple of
  237.   times.  In all cases, you'll need to simply comment out a couple of
  238.   atoi() and atol() macros that gcc doesn't like when your doit.bin
  239.   compilation blows up.
  240.  
  241.   Also, you need the following tiny change to doexplode to get around
  242.   some bash1.12 bugs or else you won't feed anything downstream.i
  243.  
  244.  
  245.           (from Steve Robbins -  steve@nyongwa.cam.org )
  246.  
  247.           if [ ! -f $f ] ; then continue; fi              # add this line
  248.           #       case "$f" in                            # comment me out
  249.           #       "out.master/[0-9]*")    break ;;        # comment me out
  250.           #       esac                                    # comment me out
  251.  
  252.  
  253.   Henry Spencer of Cnews fame says that the code in doexplode that is
  254.   currently causing problems with bash is on the list to be revised in a
  255.   future release.
  256.  
  257.   It is uncertain at this time if the need for this patch goes away if
  258.   you switch to the bash1.13 now available for Linux.  I switched to the
  259.   new bash and libs and left the patch in place and nothing broke (for
  260.   what that's worth :-)
  261.  
  262.   Steve Robbins also has determined that the recent 'cleanup release' of
  263.   Cnews has found a bug in GNU 'join' from shellutils-1.9.  There are a
  264.   few patches needed to the sources for join to deal with the problem.
  265.   4.1.2.  Configuring Cnews
  266.  
  267.   At the very least, you need to edit the following files that all
  268.   should be in /usr/local/lib/news:
  269.  
  270.  
  271.   active             - the active file
  272.   batchparms         - batch parameters
  273.   explist            - article expiration setup
  274.   mailname           - name in headers for mailed replies
  275.   mailpaths          - path to mail moderated postings to
  276.   organization       - your "org"
  277.   sys                - control what you take and feed
  278.   whoami             - your hostname for the Path: line
  279.  
  280.  
  281.  
  282.  
  283.   4.1.3.  Maintaining a Cnews Site
  284.  
  285.   First, a significant rule of thumb is to not mess with files by hand
  286.   that have utilities that configure them. In particular don't set up
  287.   newsfeeds (run "addfeed" instead) and don't mess with your active file
  288.   (run "addgroup").  When in doubt, read and re-read the docs in the
  289.   source distribution.
  290.  
  291.   Everything else can be done via cron.  My crontab for "news" looks
  292.   like the following:
  293.  
  294.  
  295.           # take the compressed batches that came in from other systems
  296.           20 *       * * * /usenet/sw/news/bin/input/newsrun
  297.  
  298.           # batch 'em up to go out
  299.           0 *        * * * /usenet/sw/news/bin/batch/sendbatches myfeedsite
  300.  
  301.           # expire C-news
  302.           59 0       * * * /usenet/sw/news/bin/expire/doexpire
  303.  
  304.           # monitor stuff and report if needed
  305.           10 5       * * * /usenet/sw/news/bin/newsdaily
  306.           00 5       * * * /usenet/sw/new/bin/newswatch
  307.  
  308.           # turn processing of incoming news batches off 6:30AM - 4:00 PM
  309.           30 6       * * * /usenet/sw/news/bin/input/newsrunning off
  310.           00 16      * * * /usenet/sw/news/bin/input/newsrunning on
  311.  
  312.  
  313.  
  314.  
  315.   4.2.  InterNetNews (INN)
  316.  
  317.   INN is the newcomer on the scene, but it's gaining popularity as it
  318.   matures.  Its main benefit is speed and the fact that it contains an
  319.   integrated nntp package.  Its main drawback is that it's new and that
  320.   it doesn't necessarily install and run flawlessly on the many
  321.   "standard *nixes" yet.  In addition, it operates by having a daemon
  322.   (the innd) always running plus potentially a overchan daemon to do
  323.   threading.  The tradeoff seems to be memory vs. speed.
  324.  
  325.   New USENET admins should probably not try INN until they have
  326.   experience with either B-news or Cnews.  While it's fast and reliable
  327.   under Linux, it's virtually undocumented for the beginning news
  328.   administrator (though in practice it's rather simple to run once you
  329.   figure it out).
  330.  
  331.   INN is very particular about its permissions.  Don't mess with them.
  332.  
  333.   INN is also very particular about having a "quality" TCP/IP to work
  334.   with.  Linux is not necessarily all the way there at this time, so it
  335.   is recommended that you grab a Linux-specific INN distribution from
  336.   one of the usual Linux archive sites.
  337.  
  338.  
  339.   4.2.1.  Installing INN
  340.  
  341.   ( from Arjan de Vet - devet@info.win.tue.nl )
  342.  
  343.   I've made a patch + config kit for INN 1.4 to get it to run on Linux.
  344.   It can be found at:
  345.  
  346.   ftp.win.tue.nl:/pub/linux/ports/inn-1.4-linux.tar.gz
  347.  
  348.   INN depends heavily on a good /bin/sh substitute. I use a beta version
  349.   of bash 1.13 that is now available for Linux on the normal archive
  350.   sites.  bash 1.12 gives some small problems with newgroups not being
  351.   handled correctly (maybe some other problems too, I don't remember).
  352.  
  353.  
  354.   4.2.2.  Configuring INN
  355.  
  356.   Basically follow Arjan's instructions and you'll be all set.  Here's
  357.   the summary of what to do:
  358.  
  359.  
  360.   o  In config.data, make sure you have "HAVE_UNIX_DOMAIN DONT"
  361.  
  362.   o  Add the hostname of the system running innd to hosts.nntp For a
  363.      uucp-only site, that's your sitename.
  364.  
  365.   o  Make sure you do not have a line for nntp in /etc/inetd.conf
  366.  
  367.   o  Make sure that you have innshellvars say "HAVE_UUSTAT DO" rather
  368.      than the "DONT" in his example config.data if you have uustat from
  369.      the Taylor UUCP package installed.  If you have this defined wrong,
  370.      it'll result in no outgoing news getting batched.
  371.  
  372.   o  If you run INN, definitely define the recommended syslogd stuff
  373.      because it is very, very helpful.
  374.  
  375.      There is a spectacular (!!!!) FAQ for INN that comes out monthly.
  376.      Look on rtfm.mit.edu for it.  You'll be glad you did.
  377.  
  378.  
  379.   4.2.3.  Maintaining a INN Site
  380.  
  381.   I've found that there's essentially zero care-and-feeding of a Linux
  382.   INN site other than having a working cron.  Basically you want a
  383.   crontab that looks something like the following:
  384.  
  385.  
  386.           # daily maint, also expire the .overview database and articles
  387.           1 0 * * * /usenet/sw/inn/bin/news.daily expireover delayrm < /dev/null
  388.  
  389.           # send 'em out
  390.           5 * * * * /usenet/sw/inn/lib/send-uucp
  391.  
  392.  
  393.  
  394.   ( if you switch to bash1.13, the "< /dev/null" above is not needed )
  395.  
  396.  
  397.   4.3.  Other News Transport Agents
  398.  
  399.   The following is a non-inclusive list of other news transport software
  400.   known to work under Linux:
  401.  
  402.   o  dynafeed
  403.  
  404.   o  nntp1.5.11
  405.  
  406.   o  slurp1.05
  407.  
  408.  
  409.   5.  News Readers
  410.  
  411.   There is no "one true newsreader".  As a result, there are many well-
  412.   known newsreaders that port easily to Linux in particular.  At this
  413.   writing, "tin", "trn", and "nn" are in most of the commonly available
  414.   distributions of Linux and in.
  415.  
  416.   When picking a newsreader, you basically want to find something that
  417.   is easy to use, very configurable by the user, with threading and kill
  418.   files (to select interesting articles or make the non-interesting ones
  419.   not appear at all).
  420.  
  421.   You can set your paths to anything you like as long as all the
  422.   newsreaders can find "inews" from your Cnews or INN installation and a
  423.   "mail" program to send mail replies to posts.
  424.  
  425.   This section will talk briefly about several of the most popular ones.
  426.   Before you ask, I use "nn" for lots of reasons :-)
  427.  
  428.  
  429.   5.1.  Tin
  430.  
  431.   Tin is a threaded newsreader generally intended to be easy for new
  432.   users.  It supports kill files and NOV threading.  If you're running
  433.   INN, it will read NOV .overview files by default and not write index
  434.   files.
  435.  
  436.   To compile Tin under linux, basically just edit the makefile to set
  437.   the locations of the software (especially the location of inews) and
  438.   type "make linux".  There are no patches required for tin under Linux.
  439.  
  440.   For threading, you can basically just say "tin -u" to update the index
  441.   files.
  442.  
  443.   To enable the ability to read via NNTP, compile with "NNTP_ABLE"
  444.   defined.  This will result in a file called "tin" for local and one
  445.   called "rtin" for NNTP reading.  "tin -r" will also get the same
  446.   behavior as "rtin".
  447.  
  448.   Iain Lea recommends the following crontab entry and says that you need
  449.   to do a "make daemon" to make tind.
  450.  
  451.  
  452.           # thread the database
  453.           35 * * * * /usenet/bin/tind -u
  454.  
  455.  
  456.  
  457.   I've run tin over a SLIP link as a NNTP-based newsreader.  If you're
  458.   connecting to a system that has a full newsfeed, you will grow
  459.   extremely old waiting for it to load up the "active" file.
  460.  
  461.  
  462.  
  463.   5.2.  Trn/Mthreads
  464.  
  465.   trn is a threaded derivative of the "rn" newsreader.  trn3.2 and newer
  466.   has the nice ability to select either the "mthreads" (trn's threading
  467.   package) or NOV (threader from INN) threading.
  468.  
  469.   To compile it, just run Configure and take the calculated defaults.
  470.   You might need to have lib4.4.1 and bash-1.13 (there is a beta now
  471.   available on the various Linux archive sites) to successfully run
  472.   Configure.  You'll probably need both bash1.13 and libs4.4.1 to get
  473.   the new Configure to run properly.
  474.  
  475.   The newspak distribution on sunsite contains working config files for
  476.   trn under Linux.
  477.  
  478.   It's probably unwise to try to edit a trn config.sh by hand unless
  479.   you're doing something *VERY* simple like changing the paths to fit
  480.   your tastes.  If you do so, you'll need to run "Configure -S" before
  481.   you "make depend", "make", and "make install".
  482.  
  483.   Although "Configure" fails generally under Linux with bash1.12,
  484.   "Configure -S" work fine so if you take the newspak config.sh as a
  485.   starting point, you'll be very close.
  486.  
  487.   Compiling for NNTP reading is as simple as answering "yes" when
  488.   Configure asks you if you want to do so (assuming Configure runs ok on
  489.   your system).  A future release of newspak will include a config.sh
  490.   for NNTP reading as well as the existing one for local reading for
  491.   those of us who are still "bash-impaired" :-)
  492.  
  493.   I've run trn over a SLIP link as a NNTP-based newsreader.  If you're
  494.   connecting to a system that has a full newsfeed, you will grow
  495.   extremely old waiting for it to load up the "active" file and to
  496.   thread the articles.
  497.  
  498.   There are dozens of command line switches for trn to get all kinds of
  499.   behavior.  Read the "trn" man page for details.  I use a nice feature
  500.   to set all the switches easily:
  501.  
  502.  
  503.   o  make a file with all the settings in a file called  /.trnrc
  504.  
  505.   o  export TRNINIT=" /.trnrc"
  506.  
  507.   The current newspak has a copy of my .trnrc file as an example.
  508.  
  509.   trn3.2 and above has support for NOV or mthreads threading that's
  510.   user-selectable.  Accordingly, I recommend building the software to
  511.   allow both threading mechanisms (it's a question in Configure).  To
  512.   pick one at runtime, try "trn -Zo" for NOV and "trn -Zt" for mthreads.
  513.  
  514.   To build the mthreads database, do something like the following in the
  515.   "news" crontab:
  516.  
  517.  
  518.           # thread the trn database
  519.           35 * * * * /usenet/bin/mthreads all
  520.  
  521.  
  522.  
  523.   5.3.  NN
  524.  
  525.   The newspak distribution on sunsite contains working config files for
  526.   nn6.4.18 that you can drop into place and type "make" under Linux.
  527.   They also work with the 6.5b3 beta of the coming nn6.5 update.
  528.  
  529.   When you're done compiling, you need to do the following:
  530.  
  531.   o  - run the "inst" program to install things.  (install everything)
  532.  
  533.   o  - initialize the database
  534.  
  535.   o  - fire up nnmaster
  536.  
  537.   See the nn docs for details.  Compiling, configuring, and running nn
  538.   under Linux is no different than running nn on any other *nix with the
  539.   exception that you may want to run nnmaster as a cron entry rather
  540.   than as a daemon.  If you run it as a daemon under linux, it may not
  541.   tend to wake up properly (the net effect of running it from cron is
  542.   the same anyway).
  543.  
  544.   Support of "nn" is as simple as the following crontab entries:
  545.  
  546.           # run nnmaster to collect "nn" stuff
  547.           25 * * * * /usenet/sw/nn/lib/nnmaster
  548.  
  549.           # expire the nn database
  550.           0  4       * * * /usenet/sw/nn/bin/nnadmin =EYW
  551.  
  552.           # stash a copy of the active file for "nngoback" and keep last 7
  553.           0 3 * * * /usenet/sw/nn/lib/back_act 7
  554.  
  555.  
  556.  
  557.   I've experimented a little with running nn as a NNTP-based newsreader
  558.   over a SLIP connection.  In this case, you'll want to edit the
  559.   config.h file slightly.  See the comments in the file for details.
  560.   When running as a NNTP-based reader, nn runs a local copy of nnmaster
  561.   to keep the threads database on the local system so that article
  562.   selection is very fast (although you of course wait for the arcticle
  563.   text a little if you're running SLIP over a modem).
  564.  
  565.  
  566.   5.4.  Other newsreaders
  567.  
  568.   The following is a non-inclusive list of newsreaders said to install
  569.   and run under Linux:
  570.  
  571.   o  tass
  572.  
  573.   o  xrn
  574.  
  575.   o  gnus
  576.  
  577.  
  578.   6.  Acknowledgements
  579.  
  580.  
  581.   The following people have helped in the assembly of the information
  582.   (and experience) that helped make this document possible:
  583.  
  584.   Ed Carp, Steve Robbins, Ian Taylor, Greg Naber, Matt Welsh, Iain Lea,
  585.   Arjan de Vet
  586.  
  587.   If I forgot anybody, my apologies.
  588.  
  589.  
  590.   7.  Frequently Asked Questions about USENET (in c.o.l.* anyway)
  591.  
  592.  
  593.  
  594.  
  595.   7.1.  Why can't I post to moderated groups ?
  596.  
  597.   Probably because the newsreader is trying to call /bin/mail to send
  598.   the mail and it doesn't like it.  Replace the /bin/mail in SLS with
  599.   the port of mailx-5.3b.tar.z from the
  600.   pub/Linux/system/Mail/mailhandlers dir on sunsite.unc.edu and make it
  601.   mode 2755 and group mail (like "elm") and you'll be all set.
  602.  
  603.   Another possibility is that you have a moderated newsgroup set up on
  604.   your local system as not-moderated and somebody upstream is quietly
  605.   deleting the article (some system's software, not a person).  Make
  606.   sure you run a "checkgroups" every now and then when the checkgroups
  607.   article rolls by in news.admin every few weeks.
  608.  
  609.  
  610.   7.2.  Why do I have problems that appear to be permission-related ?
  611.  
  612.   Because they are :-)
  613.  
  614.   Check to see that your permissions are right and that you have a
  615.   "news" username and group in /etc/passwd and /etc/group that matches
  616.   the binary distribution you grabbed.  It seems that there is not yet a
  617.   Linux-standard for commonly available accounts.
  618.  
  619.   All the stuff in /usr/local/lib/news should be news.news except
  620.   /usr/local/lib/news/setnewsids which should be setuid root.
  621.  
  622.   You can use whatever UID and GID you want for "news".
  623.  
  624.  
  625.   7.3.  Why can I post articles locally, but they don't get fed down-
  626.   stream ?
  627.  
  628.   Probably because you didn't call newsrun from cron.  Maybe because you
  629.   edited your sys file and messed it up.  Maybe because you don't have a
  630.   /usr/spool/news/out.going tree or something.
  631.  
  632.   Do not create newsgroups or feeds by editing the active or sys files.
  633.   Use the utilities in /usr/local/lib/news/bin/maint to do it.
  634.  
  635.  
  636.   7.4.  Why doesn't my binary distribution have the "Performance
  637.   Release" of C-news?
  638.  
  639.   Because it's optional.  Because it has problems under Linux in some
  640.   places.  Because the Pre-Performance Release Cnews is more stable and
  641.   plenty fast enough on any type of reasonable system (IMHO). If you
  642.   need any more convincing, here's a few excerpts from the C-news
  643.   README.new file:
  644.  
  645.   "This is the 20 Feb 1993 Performance Release of C News, a minor update
  646.   to the 2 May 1992 P.R. that just fixes some installation problems and
  647.   a couple of annoying bugs"
  648.  
  649.   "This release is more or less a halfway step to what we've been
  650.   calling the "cleanup release""
  651.  
  652.   "People who are happy with the older C News might want to wait for the
  653.   cleanup release, which is still coming although behind schedule"
  654.  
  655.   Mainly because at the time SLS1.01 came out, the compilers and libs
  656.   didn't like the Performance Release too much.  Things are better now.
  657.  
  658.  
  659.  
  660.  
  661.   7.5.  Why doesn't my binary distribution have nntp ?
  662.  
  663.   Because it's supposed to be plug-n-play under Linux and because I
  664.   didn't want to make SLS's news stuff doubly big by having to maintain
  665.   both nntp and non-nntp versions of the newsreaders and news transport
  666.   programs.  Also because it compiles in localized information that is
  667.   not overridable at runtime via a config file.
  668.  
  669.  
  670.   7.6.  Why does doexpire (or relaynews or) say "severe space shortage"
  671.   when there's lots of room ?
  672.  
  673.   Because it can't read /etc/mtab.  Make it mode 644.  This happens when
  674.   you unmount a mounted filesystem by root with a umask that doesn't
  675.   permit world-read of files owned by root.
  676.  
  677.  
  678.   7.7.  Why does everything look normal, but posting doesn't happen ?
  679.  
  680.   Older versions of Linux had a "broken" sed that Cnews was prone to
  681.   blow up.  In particular, if you've installed over an old SLS, be sure
  682.   to check /bin and /usr/bin to be certain you have only one copy of sed
  683.   and that it's a modern one.
  684.  
  685.   If you're running the "Performance Release" of Cnews, posting runs
  686.   from cron which suprises some people.
  687.  
  688.  
  689.   7.8.  the various independent thread databases ?  Can I hook the new
  690.   news overview (NOV) stuff into trn/tin/nn to replace
  691.  
  692.   Yes. trn, tin, and the beta of nn support it now.
  693.  
  694.   You can hook it into the Performance Release of Cnews and various
  695.   other readers as well.
  696.  
  697.   The beta copy of nn6.5 I have here has NOV support and it works just
  698.   dandy under Linux.  I run it here and have nn running without having
  699.   to run nnmaster (!).  Look on uniwa.uwa.edu.au for a copy of it.
  700.  
  701.  
  702.   7.9.  Why can't we have a binary distribution of NNTP ?
  703.  
  704.   Because significant local-only information is compiled-in and cannot
  705.   be determined auto-magically at runtime.
  706.  
  707.  
  708.   7.10.  storing any news articles or databases locally.  How do I set
  709.   up NNTP to allow read/post across the network while *not*
  710.  
  711.   ( mdw@sunsite.unc.edu (Matt Welsh) )
  712.  
  713.   o  1) Grab the "reference implementation" of nntp and a copy or rn
  714.      from your local archive site.  If you connect to ftp.uu.net you'd
  715.      grab:
  716.  
  717.      nntp.1.5.11.tar.Z from ftp.uu.net:/networking/news/nntp
  718.  
  719.   o  2) compile nntp as follows:
  720.  
  721.      copy common/conf.h.dist to common/conf.h.
  722.  
  723.      Edit common/conf.h to set certain options: The only ones I set
  724.      were:
  725.  
  726.      DOMAIN: undefine it (i.e. change the line to #undef DOMAIN).
  727.      REALDOMAIN: Define this. It looks up the domain using the
  728.      libraries.
  729.  
  730.      SERVER_FILE: Set this to the name of the file which will contain
  731.      the hostname of the news server (i.e. the machine you'll read and
  732.      post news through). I use "/usr/local/lib/news/server".
  733.  
  734.      PASSFILE: If your news server requires authorization (i.e.  some
  735.      kind of username/password) to post, set this to the name of the
  736.      file which contains the username and password (described below).  I
  737.      use "/usr/local/lib/news/nntppass".
  738.  
  739.      I decided to keep all of the other news stuff in
  740.      /usr/local/lib/news.  So I set all of the rest of the pathnames in
  741.      the file (i.e.  ACTIVE_FILE, NEWSGROUPS_FILE, etc.) to use
  742.      /usr/local/lib/news.  Many of these files are only used by the NNTP
  743.      server, not the client, but to be safe I changed them all to point
  744.      to the right directory. You can of course use the default
  745.      pathnames; just make sure you create the directory accordingly.
  746.  
  747.      3) Create the user "usenet" if you haven't already. The inews
  748.      program runs as this user. All you need is a userid; you don't need
  749.      a home directory or shell or anything for the user. Just plop the
  750.      following line into your /etc/passwd:
  751.  
  752.                                      usenet:*:13:1::/:
  753.  
  754.  
  755.   Make sure you set the userid ("13", above) to something unique. The
  756.   group can be anything; I use "daemon" (gid 1).
  757.  
  758.   o  4) Create the SERVER_FILE, above. For example, my news server is
  759.      "wonton.tc.cornell.edu", so I created the file
  760.      /usr/local/lib/news/server which contained one line:
  761.  
  762.                       wonton.tc.cornell.edu
  763.  
  764.  
  765.  
  766.   o  5) Create the PASSFILE. This file contains lines of the form
  767.  
  768.                      <server name> <username> <password>
  769.  
  770.  
  771.   Let's say that your news server (the one in SERVER_FILE, above) is
  772.   "shoop.vpizza.com", and to post on that machine you need to be autho-
  773.   rized as the user "news" with a password of "floof". Thus, in the
  774.   PASSFILE (I use /usr/local/lib/news/nntppass), you need the line
  775.  
  776.                   shoop.vpizza.com news floof
  777.  
  778.  
  779.  
  780.   o  6) Make this file secure! The inews program runs as the user
  781.      "usenet", so make this news directory owned by that user and the
  782.      nntppass file as well.
  783.  
  784.              chown usenet /usr/local/lib/news
  785.              chmod 755 /usr/local/lib/news
  786.              chown usenet /usr/local/lib/news/nntppass
  787.              chmod 600 /usr/local/lib/news/nntppass
  788.  
  789.  
  790.   So nobody else can read this file. No, the passwords in it are not
  791.   encrypted.
  792.  
  793.   o  7) Go back to the nntp.1.5.11 source directory; issue "make
  794.      client".  At this point you'll build the NNTP version of inews,
  795.      which is the only software used by the NNTP client.
  796.  
  797.      When I built inews, there was a bug in the library which caused the
  798.      function uname() in uname.c to call itself eternally. This should
  799.      be gone now; however, if inews seems to hang and your system starts
  800.      slowing down *a lot* you should rename the function "uname()" in
  801.      uname.c to something like "my_uname()", and change the calls to it
  802.      (in inews.c) to call my_uname() instead. Mail me if you run into
  803.      this problem.
  804.  
  805.                      (VDS note - this means mail to Matt-not me :-) )
  806.  
  807.  
  808.  
  809.   o  8) Issue "make install_client". This will install the inews stuff.
  810.      Also link /usr/local/lib/news/inews to /usr/local/bin/inews
  811.  
  812.      Now you should be able to happily post (by hand). Try something
  813.      like the following:
  814.  
  815.                      $ inews -h << EOF
  816.                      Newsgroups: misc.test
  817.                      From: me@foo.bar.com
  818.                      Subject: Testing
  819.                      Reply-To: my-real-address@wherever.edu
  820.  
  821.                      This is a test.
  822.                      EOF
  823.  
  824.  
  825.   If this works, inews should post the article. You'll know because
  826.   test-responders on misc.test will reply to the address on the Reply-To
  827.   line, above. Please don't do test postings on real groups, like c.o.l.
  828.   :)
  829.