Thread View: news.software.nntp
4 messages
4 total messages
Started by Tom Limoncelli
Sat, 05 Feb 1994 05:00
Changes to INN FAQ Part 1/4: General Information
Author: Tom Limoncelli
Date: Sat, 05 Feb 1994 05:00
Date: Sat, 05 Feb 1994 05:00
211 lines
8473 bytes
8473 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff1
*** FAQ-inn.1-lastposted Thu Jan 20 00:00:22 1994
--- FAQ-inn.1 Sat Feb 5 00:00:02 1994
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.1,v 1.50 1994/01/17 14:32:59 tal Exp $
Part 1 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.1,v 1.53 1994/01/25 17:46:42 tal Exp $
Part 1 of 4
***************
*** 23,28 ****
--- 23,29 ----
Where can I get the latest copy of this FAQ?
What is INN?
What machines does it run on?
+ INN must be really complicated since this FAQ is so long!
Can I run C News with INN?
Can I run NNTP with INN?
Can I run the reference implementation (NNTP1.5) with INN?
***************
*** 32,38 ****
Is an ident or authorization protocol supported?
Does INN do UUCP batching like C News?
Help!? How do I configure this beast?
! What can I do if I can't purchase the O'Reiley And
Associates book on Managing Usenet?
SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
--- 33,39 ----
Is an ident or authorization protocol supported?
Does INN do UUCP batching like C News?
Help!? How do I configure this beast?
! What can I do if I can't purchase the O'Reilly And
Associates book on Managing Usenet?
SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
***************
*** 113,118 ****
--- 114,123 ----
Subject: What is INN?
+ For a complete answer, why not read the Usenix paper that introduced
+ INN to the world? It's available as
+ ftp.uu.net:networking/news/nntp/inn/inn.usenix.ps.Z
+
InterNetNews is a complete Usenet system. The cornerstone of the package
is innd, an NNTP server that multiplexes all I/O. Think of it as an nntpd
merged with the B News inews, or as a C News relaynews that reads multiple
***************
*** 139,144 ****
--- 144,163 ----
------------------------------
+ Subject: INN must be really complicated since this FAQ is so long!
+
+ No, it's just that the FAQ is very complete. Part 2 is so long because
+ it includes a tutorial that tries to turn a beginner into an TCP/IP
+ protocol expert. Part 3 is long because the FAQ maintainer is
+ constantly trying to add every question ever asked on
+ news.software.nntp. Maybe someone should volunteer to maintain an
+ index.
+
+ A lot of the material could be integrated into the Install.ms doc.
+
+
+ ------------------------------
+
Subject: Can I run C News with INN?
No. INN handles all article reception, filing, forwarding, and
***************
*** 291,303 ****
READ AND FOLLOW THE "Install.ms" FILE. This FAQ is meant to add to
what Install.ms says not replace it.
! You should also purchase the O'Reiley And Associates book on Managing
Usenet to give yourself a good grounding on how to run a site.
------------------------------
! Subject: What can I do if I can't purchase the O'Reiley
And Associates book on Managing Usenet?
Hold a fundraiser?
--- 310,322 ----
READ AND FOLLOW THE "Install.ms" FILE. This FAQ is meant to add to
what Install.ms says not replace it.
! You should also purchase the O'Reilly And Associates book on Managing
Usenet to give yourself a good grounding on how to run a site.
------------------------------
! Subject: What can I do if I can't purchase the O'Reilly
And Associates book on Managing Usenet?
Hold a fundraiser?
***************
*** 386,394 ****
with Posix Session Leader concepts. Ick. (source: Steve Howie
<scotty@piranha.cs.uoguelph.ca>)
! HP-UX 8.07 users might find a problem with getting innwatch to
! start up. People have found that having "at" start it seems
! to work more reliably than other methods:
${DOINNWATCH} && {
echo "su ${NEWSUSER} -c ${INNWATCH}" | /usr/bin/at now +2 minutes
--- 405,413 ----
with Posix Session Leader concepts. Ick. (source: Steve Howie
<scotty@piranha.cs.uoguelph.ca>)
! HP-UX 8.x and 9.x users might find a problem with getting innwatch to
! start up. People have found that having "at" start it seems to work
! more reliably than other methods:
${DOINNWATCH} && {
echo "su ${NEWSUSER} -c ${INNWATCH}" | /usr/bin/at now +2 minutes
***************
*** 439,451 ****
Subject: Solaris 2.x special needs
- Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
- at the beginning of each file using gethostbyname():
-
- #define gethostbyname __switch_gethostbyname
-
- Under Solaris 2.3 you still
-
Under Solaris 2.x (where x = 0, 1, 2 or 3) you need to change
the file "getfqdn.c". Find the lines that read:
--- 458,463 ----
***************
*** 458,464 ****
--- 470,506 ----
and delete them.
+ Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
+ at the beginning of each file using gethostbyname():
+ #define gethostbyname __switch_gethostbyname
+
+ Under Solaris 2.3 you need to change "gethostbyname()" to
+ "solaris_gethostbyname()" and then use the gethostbyname() listed in
+ the Solaris Porting FAQ. This isn't a perfect solution, because you
+ now need a different binary for Solaris 2.[012] systems.
+
+ It would be great if someone were to submit a solaris_gethostbyname()
+ function who's binary works under all Solaris revs and gives all the
+ semantics of gethostbyname(). In particular, one that doesn't have the
+ problems discussed in sun bugid #1126573 or #1135988. It would be
+ amazing if this was submitted by one of the many Sun employees that
+ flame the INN FAQ maintainer in comp.sys.sun.admin everytime he bitches
+ about how much he hates Solaris 2.x.
+
+ Under all Solaris 2.* versions there is a problem with innwatch.ctl.
+ It expects to use "df -i" to find out how many inodes are free on your
+ disk. /usr/{sbin,5bin,bin}/df doesn't support the "-i" option. You
+ have two options:
+
+ 1. Delete the "df -i" entries from the innwatch.ctl file. This is
+ usually OK since you almost always have enough inodes given the
+ default formatting parameters for a ufs (BSD 4.3 FFS) disk.
+
+ 2. Use "/usr/ucb/df -i" instead, since this version of df includes
+ the "-i" option.
+
+
------------------------------
Subject: Mac running A/UX 3.0
***************
*** 521,525 ****
issue the "mode reader" command) or they must read news via the file
system instead of NNTP.
! There is no way around this right now.
--- 563,574 ----
issue the "mode reader" command) or they must read news via the file
system instead of NNTP.
! If you have NNTP-based newsreaders that can't send the "mode reader"
! command, you can try including "server: localhost" in your inn.conf
! file, but then you must have a different inn.conf file for the other
! machines. If you can't do that, you have no other options but to
! recompile your newsreaders.
!
! Remember, if you change your inn.conf file, you must shutdown and
! restart innd. There is no "ctlinnd reload inn.conf" command.
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not
like about existing?" "Uh... uh... what?" | speak for Mentor Graphics.
"Possessing a physical extension." -TSA |
Changes to INN FAQ Part 2/4: Debugging Guide & Tutorial
Author: Tom Limoncelli
Date: Sat, 05 Feb 1994 05:00
Date: Sat, 05 Feb 1994 05:00
100 lines
4280 bytes
4280 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff2
*** FAQ-inn.2-lastposted Thu Jan 20 00:00:23 1994
--- FAQ-inn.2 Sat Feb 5 00:00:03 1994
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.2,v 1.14 1994/01/17 14:42:19 tal Exp $
Part 2 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.2,v 1.20 1994/02/04 16:20:28 tal Exp $
Part 2 of 4
***************
*** 25,30 ****
--- 25,31 ----
syslog message: ME internal no control and/or junk group
syslog message: Can't setup communication (bind failure)
syslog message: ME bad_newsfeeds no feeding sites
+ syslog message: ME cant GetConfigValue
THE DEBUGGING TUTORIAL:
Should I read the Install.ms file in its entirety
before reading this document?
***************
*** 58,63 ****
--- 59,65 ----
"cant fopen <newsgroup>/.thread No such file or directory"
news.daily reports: "Expire had problems removing articles"
syslog: ME cant nonblock 15 Operation not supported.
+ innd: ME cant update_active control
=====================================================================
***************
*** 127,132 ****
--- 129,149 ----
dummy-feed:!*::
+ ------------------------------
+
+ Subject: syslog message: ME cant GetConfigValue
+
+ Jan 12 17:38:06 galaxy innd: ME cant GetConfigValue pathhost Error 0
+ ^^^^^^^^
+
+ This means you don't have "pathhost:" in your inn.conf.
+
+ GetConfigValue is the routine that gets data out of the inn.conf file.
+ If you get the above error, it means you don't have a particular value
+ in your inn.conf. Run "inncheck -v" usually will tell you what you
+ need to do.
+
+
=====================================================================
THE DEBUGGING TUTORIAL
(or, What do I do after Install.ms?)
***************
*** 1186,1192 ****
--- 1203,1215 ----
ctlinnd renumber ''
to get things synchronized again.
+ If your history file is corrupt, you should do:
+ ctlinnd renumber ''
+ makehistory -buv
+ ctlinnd renumber ''
+ (Note: the "makehistory" will take hours to run.)
+
------------------------------
Subject: "cant fopen <newsgroup>/.thread No such file or directory"
***************
*** 1257,1260 ****
--- 1280,1294 ----
Systems without unix-domain sockets sometimes see this error. Just
ignore it.
+
+ ------------------------------
+
+ Subject: innd: ME cant update_active control
+
+ What does "innd: ME cant update_active control" mean?
+
+ Look at your active file. One of the fields is "99999" and has to be
+ incremented to "100000" but there is no space. Shut down innd
+ ("ctlinnd shutdown x"). Edit your active file to add more leading
+ zero's to all the numbers. Restart innd.
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not
like about existing?" "Uh... uh... what?" | speak for Mentor Graphics.
"Possessing a physical extension." -TSA |
Changes to INN FAQ Part 3/4: Operational and Misc. Questions
Author: Tom Limoncelli
Date: Sat, 05 Feb 1994 05:00
Date: Sat, 05 Feb 1994 05:00
638 lines
24203 bytes
24203 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff3
*** FAQ-inn.3-lastposted Thu Jan 20 00:00:23 1994
--- FAQ-inn.3 Sat Feb 5 00:00:03 1994
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.3,v 1.48 1994/01/17 14:30:24 tal Exp $
Part 3 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.3,v 1.56 1994/02/01 16:52:43 tal Exp $
Part 3 of 4
***************
*** 23,57 ****
=====================================================================
DAY-TO-DAY OPERATIONAL QUESTIONS:
! How do I create all those directories in the newsspool?
! Safe way to edit the "active" file?
! What's the best way to upgrade to a new version of INN?
! How do I talk to innd from C or Perl?
! After a crash.
INN IS RUNNING, BUT I HAVE THIS SMALL PROBLEM...:
! Suddenly my active and history files are owned by root!
! How come my host name comes out twice in the Path line?
! Expire had problems last night, and while I fixed the problem,
! Why doesn't this newsfeeds entry do what I want?
! Why am I forwarding cancel messages for articles in comp.foo
! Debugging someone that is feeding you.
! Feeds suddenly can't connect anymore!
! I'm getting groups sent to me that I don't want.
! When my feeder connects, I get articles but they don't take
! what's waiting for them.
! Directories are being created with wrong permissions.
! Why am I getting alt.sex.pictures even though I have
! More about the "to.*" groups
HOW DO I... (Big changes you can make to the system):
! How do I set up a delayed IHAVE/SENDME over NNTP?
! Can I use gzip with INN?
! What do I do if /var/spool/news is set up over many partitions?
BUGS IN 1.4:
! (this section currently empty)
BUGS IN 1.3:
! 7-bit encoded batches are not correctly processed. Why is this?
BUGS IN 1.2:
! Why doesn't nntpget work?
=====================================================================
--- 23,65 ----
=====================================================================
DAY-TO-DAY OPERATIONAL QUESTIONS:
! How do I create all those directories in the newsspool?
! Safe way to edit the "active" file?
! What's the best way to upgrade to a new version of INN?
! How do I talk to innd from C or Perl?
! After a crash.
INN IS RUNNING, BUT I HAVE THIS SMALL PROBLEM...:
! Suddenly my active and history files are owned by root!
! How come my host name comes out twice in the Path line?
! Expire had problems last night, and while I fixed the problem,
! Why doesn't this newsfeeds entry do what I want?
! Why am I forwarding cancel messages for articles in comp.foo
! Debugging someone that is feeding you.
! Feeds suddenly can't connect anymore!
! I'm getting groups sent to me that I don't want.
! When my feeder connects, I get articles but they don't take
! what's waiting for them.
! Directories are being created with wrong permissions.
! Why am I getting alt.sex.pictures even though I have
! More about the "to.*" groups
! What's a decent syslog.conf configuration?
! INN batcher writing "#!rnews 0" separators
! Posting while throttled doesn't work
! "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
! "newgroup" control messages aren't being executed
HOW DO I... (Big changes you can make to the system):
! How do I set up a delayed IHAVE/SENDME over NNTP?
! Can I use gzip with INN?
! What do I do if /var/spool/news is set up over many partitions?
! archiving expired articles
BUGS IN 1.4:
! Security Patch
! Looping Select Patch
BUGS IN 1.3:
! 7-bit encoded batches are not correctly processed. Why is this?
! NOV (overchan) doesn't work well.
BUGS IN 1.2:
! Why doesn't nntpget work?
=====================================================================
***************
*** 74,89 ****
Subject: Safe way to edit the "active" file?
The following sequence is the shortest:
! ctlinnd pause "edit active"
! [do something to the active file]
! ctlinnd reload active "edit active"
! ctlinnd go "edit active"
! Simple! No need to "flush", the "pause" does that.
------------------------------
Subject: What's the best way to upgrade to a new version of INN?
--- 82,142 ----
Subject: Safe way to edit the "active" file?
+ First of all, you could manipulate the active file using the ctlinnd
+ "newgroup", "rmgroup" and "changegroup" commands. However, sometimes
+ you just need to do a lot of editing all at once:
+
The following sequence is the shortest:
! ctlinnd pause "edit active"
! [do something to the active file]
! ctlinnd reload active "edit active"
! ctlinnd go "edit active"
! Simple! No need to "flush" since the "pause" does that.
+ > What if I need to delete 3000 lines from my active file?
+ I would definately edit the active file manually (using
+ the above procedure).
+
+ > What if I need to delete 10 lines from my active file?
+
+ For a couple quick changes, I recommend using "ctlinnd". This is a
+ little slow because all channels are closed and reopened after each
+ "rmgroup", "newgroup", and "changegroup". However, it's easier than
+ remembering the above sequence.
+
+ DO NOT THROTTLE THE SERVER WHEN DOING MULTIPLE rmgroup COMMANDS. There
+ is a bug in INN (all versions) that will shred your active file if you
+ do multiple "rmgroup" messages while the server if throttled. This is
+ a common mistake. People think the "rmgroup"'s will go faster if the
+ server is throttled. It will go faster, it will also shred your active
+ file.
+
+ If you have a large number of groups to remove or create, you can use
+ awk to write a script to do the work for you.
+
+ % cat thelist
+ alt.foo.bar
+ alt.delete.me
+ comp.sys.mac
+ % awk <thelist '{ print "ctlinnd rmgroup " $1 }'
+ ctlinnd rmgroup alt.foo.bar
+ ctlinnd rmgroup alt.delete.me
+ ctlinnd rmgroup comp.sys.mac
+
+ Now, you can either send the output of that to "| sh -x",
+ or you can redirect the output to a file, and "source" the
+ file.
+
+ If you want to create a bunch of newsgroups, the awk
+ command might be like this:
+
+ % awk <thelist \
+ '{ print "ctlinnd newgroup " $1 " y user@host" }' | sh -x
+
+
------------------------------
Subject: What's the best way to upgrade to a new version of INN?
***************
*** 109,126 ****
STEP 3: Compile everything:
! % cd $INN
! % make world
STEP 4: When you feel you are ready to install the new files shut the old daemon:
! % ctlinnd shutdown 'upgrade in progress'
! [ kill innwatch by hand if you need to ]
STEP 4: Install the new files:
! % cd $INN
! % make update
STEP 5: Now update all your $INN/site files to be the same as they were
for your old software. "cd $INN/site ; make diff-installed" will tell
--- 162,179 ----
STEP 3: Compile everything:
! % cd $INN
! % make world
STEP 4: When you feel you are ready to install the new files shut the old daemon:
! % ctlinnd shutdown 'upgrade in progress'
! [ kill innwatch by hand if you need to ]
STEP 4: Install the new files:
! % cd $INN
! % make update
STEP 5: Now update all your $INN/site files to be the same as they were
for your old software. "cd $INN/site ; make diff-installed" will tell
***************
*** 132,143 ****
STEP 6: When you feel you are ready to install the new $INN/site files:
! % cd $INN/site
! % make install
STEP 7: Re-start the system:
! % sh /usr/lib/news/etc/rc.news
STEP 8: If everything was done right you should be up and running.
Part ??? of the FAQ gives tips on testing your configuration.
--- 185,196 ----
STEP 6: When you feel you are ready to install the new $INN/site files:
! % cd $INN/site
! % make install
STEP 7: Re-start the system:
! % sh /usr/lib/news/etc/rc.news
STEP 8: If everything was done right you should be up and running.
Part ??? of the FAQ gives tips on testing your configuration.
***************
*** 212,218 ****
------------------------------
Subject: Expire had problems last night, and while I fixed the problem,
! it still won't run.
When expire starts up it "reserves" the server so that nobody else can
pause or throttle it. This prevents anyone else from coming in and
--- 265,271 ----
------------------------------
Subject: Expire had problems last night, and while I fixed the problem,
! it still won't run.
When expire starts up it "reserves" the server so that nobody else can
pause or throttle it. This prevents anyone else from coming in and
***************
*** 226,232 ****
------------------------------
Subject: Why doesn't this newsfeeds entry do what I want?
! "foo.com:alt,!alt.sex"
A newsfeeds entry is not a sys file (C News) entry. Please read
newsfeeds.5. You might also find the sys2nf program in the frontends
--- 279,285 ----
------------------------------
Subject: Why doesn't this newsfeeds entry do what I want?
! "foo.com:alt,!alt.sex"
A newsfeeds entry is not a sys file (C News) entry. Please read
newsfeeds.5. You might also find the sys2nf program in the frontends
***************
*** 239,245 ****
------------------------------
Subject: Why am I forwarding cancel messages for articles in comp.foo
! when I explicitly have !comp.foo in the newsfeeds entry?
Control messages can be explicitly forwarded, so a control message to
comp.foo is forwarded to sites that recieve either comp.foo or control.
--- 292,298 ----
------------------------------
Subject: Why am I forwarding cancel messages for articles in comp.foo
! when I explicitly have !comp.foo in the newsfeeds entry?
Control messages can be explicitly forwarded, so a control message to
comp.foo is forwarded to sites that recieve either comp.foo or control.
***************
*** 330,336 ****
------------------------------
Subject: Why am I getting alt.sex.pictures even though I have
! "ME:!alt.sex.pictures" in my newsfeeds file?
The active file is the definitive list of what newsgroups you receive.
INN's ME entry is different from C News and B News; please see
--- 383,389 ----
------------------------------
Subject: Why am I getting alt.sex.pictures even though I have
! "ME:!alt.sex.pictures" in my newsfeeds file?
The active file is the definitive list of what newsgroups you receive.
INN's ME entry is different from C News and B News; please see
***************
*** 380,385 ****
--- 433,568 ----
Yes.
+ ------------------------------
+
+ Subject: What's a decent syslog.conf configuration?
+
+ The configuration will be different for each site, but here is what
+ Greg Earle recommends as the lines for the "news.*" related part.
+ Remember that most syslog's require tabs, not spaces.
+
+ Greg's canonical SunOS 4.1.x INN-related syslog.conf entries (which can
+ be merged into your current configuration):
+
+ #
+ # INN stuff
+ #
+ ## Send critical messages to everyone who is logged in and to the console.
+ news.crit *
+ news.crit /dev/console
+
+ ## Log news messages to separate files.
+ ## Note that each level includes all of the above it.
+ ## =()<news.crit @<_PATH_MOST_LOGS>@/news.crit>()=
+ news.crit /var/log/news/news.crit
+ ## =()<news.err @<_PATH_MOST_LOGS>@/news.err>()=
+ news.err /var/log/news/news.err
+ ## =()<news.notice @<_PATH_MOST_LOGS>@/news.notice>()=
+ news.notice /var/log/news/news.notice
+
+
+ ------------------------------
+
+ Subject: INN batcher writing "#!rnews 0" separators
+
+ >Outgoing UUCP batches from here are going out with "#!rnews 0" at
+ >the head of each article.
+
+ Most common cause: your newsfeeds entry has "Wnm" not "Wnb".
+
+
+ ------------------------------
+
+ Subject: Posting while throttled doesn't work
+
+ >I want to be able to allow my users to be able to post articles when
+ >innwatch has throttled the system when the spool disk is "full".
+
+ Cannot be done in 1.4.
+
+ At a minimum, in 1.5 nnrpd will spool the post for the user.
+
+
+ ------------------------------
+
+ Subject: "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
+
+ > About once a month or so, I get the following warning messages:
+ >
+ > Jan 20 07:20:22 optima innd: overview!:31:proc:9193 cant flush count 14639 Operation would block
+ > Jan 20 07:20:22 optima innd: overview! spooling 14639 bytes
+ >
+ > And there's a file "overview!" in /usr/spool/news/out.going with stuff in it.
+ >
+ > Should I be doing anything more with this than ignoring it, and maybe
+ > occasionally deleting it (it just grows)?
+
+ This happens because innd is feeding info to overchan faster than
+ overchan can process it. The overflow is sent to the file
+ "overview!". This file can be deleted, as nnrpd will grab the missing
+ data out of the articles "manually". The slow-down won't be noticed.
+ However, you can "expireover -a" to "fill in the holes".
+
+ To prevent this in the future, you need to make overchan run faster.
+ This is easy to do. I found that moving the overview files into
+ /usr/spool/news/over.view made things fast enough that the problem went
+ away. Change "_PATH_OVERVIEWDIR" in config.data, recompile, and you're
+ done. (You will need to recompile any newsreaders that read via NFS or
+ off the local disk).
+
+ Why does that speed up overchan? overchan works by opening the proper
+ .overview file, appending 1 line to it, then closing the file. If you
+ have the .overview file in the same directory as 10000 articles then
+ opening the .overview file will take a huge amount of time. The open()
+ call literally searches though an average 5000 (half of 10000) file
+ names to find ".overview". If you move your .overview files so that
+ each one is in it's own directory, (say,
+ /usr/spool/news/over.view/{group}/{name}/.overview) then open() is
+ searching through 3 files ( ".", "..", and ".overview") to find 1
+ file. ( O(N/2) where N=10000 vs. N=3... and you thought those
+ freshman year CS classes would never be useful!)
+
+ There isn't much you can do to make the "append" and "close" steps much
+ faster, except maybe install a PrestoServe or similar write-cache, and
+ that won't help very much.
+
+ Profiling overchan (with PureSoft's Quantify product) found that the
+ open() (actually searching the directory to find the .overview file)
+ was around 80% of the execution time of overchan. That was reduced to
+ 40% when I moved the .overview files to their own directory. With the
+ change, overview's profiling statistics are pretty flat. (which is
+ good).
+
+ DO run "expireover -a" to fix the problem.
+
+ DO NOT try feeding the "overview!" file to overchan manually.
+ (1) overchan doesn't do any locking and you'll have two overchan's
+ running at once.
+ (2) overchan only appends to the .overview files. If you've gotten
+ any articles since the "overview!" file was created (you will
+ have) then you'll be appending told old entries that are out of
+ order. Your ".overview" files must be in sorted order for the
+ other utilities to work right.
+
+
+ ------------------------------
+
+ Subject: "newgroup" control messages aren't being executed
+
+ > "newgroup" control messages aren't be executed
+
+ The usual blame for this is _PATH_EGREP points to a grep that doesn't
+ understand regular expressions. For example, GNU grep only understands
+ regular expressions if it is called "egrep" (i.e. not "gnuegrep" or
+ "egnugrep").
+
+ Make sure you have a link or symlink between egnugrep and egrep. You
+ then need to modify config.data so that _PATH_EGREP is
+ /your/local/path/egrep and NOT /your/local/path/egnuegrep. Then
+ recompile and "make install" to have the new binaries and shell
+ scripts installed.
+
+
=====================================================================
HOW DO I... (Big changes you can make to the system)
=====================================================================
***************
*** 409,419 ****
The syntax that you would use in your newsfeeds file would be:
! site:*:Tf,Wnmt:
and run this command now and then:
! nntplink -i batchfile -y 300 -b site news.site.fr
The delayed IHAVE/SENDME is expected to allow bandwidth savings in
situations where all sites use nntplink in following topology:
--- 592,602 ----
The syntax that you would use in your newsfeeds file would be:
! site:*:Tf,Wnmt:
and run this command now and then:
! nntplink -i batchfile -y 300 -b site news.site.fr
The delayed IHAVE/SENDME is expected to allow bandwidth savings in
situations where all sites use nntplink in following topology:
***************
*** 527,540 ****
To inform expire that your spool is split across multiple partitions:
In news.daily, change:
! EXPIREFLAGS="-v1"
to read
! EXPIREFLAGS="-v1 -l"
In expirerm, change:
! RMPROC="fastrm -e -u -s ${SPOOL}"
to read
! RMPROC="fastrm -e -s ${SPOOL}"
You also have to edit innwatch and innstat. After that, you're done!
--- 710,723 ----
To inform expire that your spool is split across multiple partitions:
In news.daily, change:
! EXPIREFLAGS="-v1"
to read
! EXPIREFLAGS="-v1 -l"
In expirerm, change:
! RMPROC="fastrm -e -u -s ${SPOOL}"
to read
! RMPROC="fastrm -e -s ${SPOOL}"
You also have to edit innwatch and innstat. After that, you're done!
***************
*** 541,568 ****
If you ever need to run "makehistory" you should pay attention to this
caveat in makehistory(8):
! Makehistory does not handle symbolic links. If the news
! spool area is split across multiple partitions, the follow-
! ing commands should probably be run before the database is
! regenerated:
! cd /usr/spool/news
! find . -type l -print | xargs -t rm
However, if /var/spool/news/comp was a symlink to the partition
that comp is really on, you'll have to reinstall that link. You
have avoid this by changing the above commands to:
! cd /usr/spool/news
! find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
=====================================================================
BUGS IN 1.4
=====================================================================
! (this section currently empty, it will soon have the 2-3 unofficial
! patches that are sometimes needed.)
=====================================================================
BUGS IN 1.3
=====================================================================
--- 724,783 ----
If you ever need to run "makehistory" you should pay attention to this
caveat in makehistory(8):
! Makehistory does not handle symbolic links. If the news
! spool area is split across multiple partitions, the follow-
! ing commands should probably be run before the database is
! regenerated:
! cd /usr/spool/news
! find . -type l -print | xargs -t rm
However, if /var/spool/news/comp was a symlink to the partition
that comp is really on, you'll have to reinstall that link. You
have avoid this by changing the above commands to:
! cd /usr/spool/news
! find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
+ ------------------------------
+
+ Subject: archiving expired articles
+
+ In <2hmomh$262@news.iastate.edu> rod@iastate.edu writes:
+ >What options do I have in INN for archiving local newsgroups?
+
+ See doc/archive.8. You could also put "never:never:never" in your
+ expire.ctl file.
+
+ >Any help would be appreciated. Any cookbook examples would also help.
+
+ A cookbook newsfeeds entry:
+ # Feed all moderated source postings to an archiver
+ source-archive!:!*,*sources*,!*wanted*,!*.d\
+ :Tc,Wn:/usr/local/bin/archive -f -i /usr/spool/news.archive/INDEX
+
+
=====================================================================
BUGS IN 1.4
=====================================================================
! UNOFFICIAL patches for INN 1.4 are available via anonymous FTP at
! ftp://ftp.pop.psu.edu/pub/src/news/inn-patches/
+ The file ftp://ftp.pop.psu.edu/pub/src/news/inn-patches/README describes
+ each of the UNOFFICIAL patches.
+ The ones that are highly recommended are:
+
+ 1.4-to-1.4sec -- Fixes the major security hole in INN.
+ 1.4sec-to-1.4sec2 -- Fixes the remaining known security hole in INN.
+
+ select-loop-bug.patch -- Under some circumstances innd can lose track
+ of a file descriptor and end up sitting in a select() loop. If your
+ INN suddenly is using up tons of CPU time and not getting much done,
+ install this UNOFFICIAL patch. Some OSs are more susecptible to this
+ bug.
+
+
=====================================================================
BUGS IN 1.3
=====================================================================
***************
*** 580,585 ****
--- 795,809 ----
fixed in INN 1.4.
+ ------------------------------
+
+ Subject: NOV (overchan) doesn't work well.
+
+ Correct. The NOV support in 1.3 didn't have all the bugs worked out.
+ Don't use NOV under INN 1.3. Better yet, upgrade to 1.4sec and get all
+ the benefits!
+
+
=====================================================================
BUGS IN 1.2
(Hey, it's 1994! Upgrade already!)
***************
*** 589,595 ****
Subject: Why doesn't nntpget work?
! The nntpget in INN 1.2 doesn't work. Period. Upgrade to the latest version
! of INN.
--- 813,819 ----
Subject: Why doesn't nntpget work?
! The nntpget in INN 1.2 doesn't work. Period. Upgrade to the latest
! version of INN.
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not
like about existing?" "Uh... uh... what?" | speak for Mentor Graphics.
"Possessing a physical extension." -TSA |
Changes to INN FAQ Part 4/4: Appendix A: Norman's install guide
Author: Tom Limoncelli
Date: Sat, 05 Feb 1994 05:00
Date: Sat, 05 Feb 1994 05:00
694 lines
29216 bytes
29216 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff4
*** FAQ-inn.4-lastposted Thu Jan 20 00:00:23 1994
--- FAQ-inn.4 Sat Feb 5 00:00:04 1994
***************
*** 1,184 ****
! Last Changed: $Id: FAQ-inn.4,v 1.1 1994/01/17 14:30:24 tal Exp $
! Part 4 of 4
!
! INN FAQ Part 1/4: General Information
! INN FAQ Part 2/4: Debugging Guide & Tutorial
! INN FAQ Part 3/4: Operational and Misc. Questions
! INN FAQ Part 4/4: Appendix A: Norman's install guide
!
!
! ------------------------------
!
! Subject: Table Of Contents for Part 3/4
!
! =====================================================================
! CONTENTS FOR PART 4/4: Appendix A: Norman's install guide
! =====================================================================
! This is a separate guide to installing INN. It is written for INN 1.4,
! but should work on any version. It is written and maintained by Norman
! J. Pieniazek (norman@giardia.pdb.cdc.gov). Please send updates and
! corrections to him.
! =====================================================================
! INSTALLATION AND MAINTENANCE OF INN 1.4
! This is written assuming that you have a SunOS 4.1.3 system.
! I. INSTALLATION
! 1. Get: inn1.4.tar.Z from ftp.uu.net (192.48.96.9). This file is in
! the directory: /networking/news/nntp/inn
! 2. Get: patch.tar.Z from ftp.uu.net. This file is in the directory /pub.
! Compile and install patch in the directory: /usr/local/bin.
! 3. If you don't have any gnu software, ftp to aeneas.mit.edu (18.71.0.38), go to directory
! /pub/gnu and get the following files.
! fgrep current version: fgrep-1.1
! gawk current version: gawk-2.15.2
! gcc current version: gcc-2.4.2
! grep current version: grep-1.6
! make current version: make-3.65
! sed current version: sed-1.14
! Compile and install these programs starting with make and gcc. Some
! people have reported problems with gnu sed 2.02. If people want to
! help me maintain a list of which GNU replacements are required on
! certain OS's, please send me the data. I'll keep the list up to date.
! 4. Get perl-4.0.36.tar.gz from ftp.uu.net - directory: /archive/systems/gnu.
! Compile and install in /usr/bin.
! 5. As root, create directories: /usr/local/inn (this is your $INN directory)
! /usr/local/news
! /news/bin
! /news/lib
! 6. Move inn1.4.tar.Z to $INN. Change directory to $INN
! Type: "zcat inn1.4.tar.Z | tar xvf -". This will install
! inn files for compilation.
! 7. Change directory to $INN/config and follow the instructions
! in R. Salz's INN installation manual. At least, change
! the compiler from cc to gcc. (If you have Solaris 2.1 - see changes
! made to the config files in Daniel Rich's letter).
! 8. Change directory to $INN. Type: "make world install".
! 9. If you get no fatal errors from make, check the /usr/local/news
! directory for history* files. Remove or rename them. Go back
! to the $INN directory and type: "BUILD" to run the final
! installation script.
! 10. Read Part ??? of this FAQ.
! Follow the instructions to set up at least your newsfeeds, hosts.nntp,
! and nnrp.access files. Get the active file from your newsfeed and
! edit it to your taste. Remember to include the control and junk
! newsgroups.
! 11. Type: "/usr/bin/perl /usr/local/news/bin/inncheck" and correct
! any errors reported by inncheck.
! 12. Type: "sh /usr/local/etc/rc.news". Look in syslog
! for any errors. Type: "ps -aux" and check, if innd owner
! is news.
! 13. In /etc/aliases create an entry: "usenet: <you, or root>".
! Reboot, change directory to /var/yp, type: "make". From the same
! directory, type: "/usr/etc/yp/ypinit -m". Restart innd (see #12).
! 14. Type: "/bin/crontab -e news" and insert the following line:
! 40 23 * * * /usr/local/news/bin/news.daily delayrm
! if you are using overchan (in newsfeeds):
! 40 23 * * * /usr/local/news/bin/news.daily delayrm expireover
! 15. Run tests from your machine to the server (your machine at telnet
! port 119). See Tom Limoncelli's manual (Part ??? of the FAQ) for details.
! 16. After completing the test, be sure to delete the entry for your
! machine from the hosts.nntp file. If you will not do it, your
! machine will be treated as a "feeder" and not as a "reader".
! 17. Watch the news.daily reports in your mail for any
! additional errors.
- 18. Adding new groups - see Part II, Section 2.b, or:
- a. Type: "ctlinnd pause 'edit active'"
- b. Edit the active file. Format is: groupname himark lomark flag.
- Set himark to 0000000000 and lomark to 0000000001.
- c. Run inncheck (see #11) to check the new active file for errors.
- d. Type: "ctlinnd reload active 'new active'".
- e. Type: "ctlinnd go 'edit active'".
! 19. Set posting.
! a. Edit the /usr/local/news/newsfeeds file and add:
! <alias for your feed>/<full address of feed\
! :*\ (for all local postings)
! :Tf,Wnm: (standard entry)
! b. Edit /usr/local/news/nntpsend.ctl file and add:
! <alias for your feed>:<full address of feed>::-T1800 -t300
! c. Type: "/bin/crontab -e news" and insert a line:
! 0,10,20,30,40,50 * * * * /usr/local/news/bin/nntpsend
! d. Run inncheck (see #11).
! e. Post to misc.test and include reply in the Subject line,
! automatic responses will be mailed to usenet (see 13) within
! a few minutes.
! 20. To start innd automatically at bootup, include at the end of
! your rc.local the following lines:
! #
! # Start INN news service - Internet News Daemon (innd)
! #
! if [ -f /usr/local/etc/rc.news ]; then
! /usr/local/etc/rc.news; echo "Starting INN news service"
! fi
! II. MAINTENANCE
- 1. Newgroups are sometimes added automatically through a control message.
- A mail message to usenet will alert to such an automatic change
- to the active file. If you do not want to subscribe to a news group,
- change directory to /usr/local/news and type:
-
- ctlinnd rmgroup xx.xxx.xx
! 2. Sometimes, a mail message will arrive for usenet with a checkgroups
! file. Remove header, save the body of the message in:
!
! /usr/local/news/bin/control/news_control/news_control_todaysdate
!
! cd to that directory and type:
! "../docheckgroups <news_control_todaysdate >todaysdate_pre"
!
! Read the output file (todaysdate_pre) and carry out all the instructions
! that you think pertain to your situation. You will have to change
! directory to /usr/local/news and:
! a. remove some discontinued groups:
! type: "ctlinnd rmgroup xx.xxx.xxxx"
! b. add a group:
! type: "ctlinnd newgroup xx.xxx.xxxx flag ''"
! c. mark a group correctly:
! type: "ctlinnd changegroup xx.xxx.xxxx flag"
! Run inncheck and repeat the docheckgroups command:
! "../docheckgroups <news_control_todaysdate >todaysdate_after"
! Check for any problems.
! Also, edit the /usr/local/news/newsgroups file to reflect any
! changes you introduced.
! 3. IMPORTANT!!! Never run fsck on the drive where the /spool/news
! files are located. innd has a lot of active disk I/O going on
! and fsck will show a lot of errors. Use ctlinnd to throttle,
! pause, or shotdown innd - see the manual page for ctlinnd.
--- 1,496 ----
! Last Changed: $Id: FAQ-inn.4,v 1.2 1994/02/04 16:20:28 tal Exp $
! This is a separate guide for installing INN addressed to
! UNIX and System Administration novices. It is written for
! installation of INN 1.4 on a Sun SPARCstation 10/30 running
! Solaris 1.1 (SunOS 4.1.3). This guide is maintained by
! Norman J. Pieniazek (norman@giardia.pdb.cdc.gov). Please
! send updates and corrections to him.
!
! This guide is composed of following parts:
!
! I. SYSTEM REQUIREMENTS
! II. INSTALLATION OF INN 1.4
! III. UPGRADING FROM INN 1.3 TO INN 1.4
! IV. MAINTENANCE OF INN
! V. INSTALLATION OF XVNEWS, A SUN OPENWINDOWS
! NEWSREADER
!
!
!
! I. SYSTEM REQUIREMENTS
!
! 1. INN will not install nor run on Sun SPARCstation under
! plain Solaris 1.1 unless you install some software
! packages and utilities. Also, your machines IP number
! has to be entered in a Domain Name Service database
! (DNS) to be resolvable. Ask your Network Administrator
! about DNS or read the O'Reilly & Associates, Inc.
! book: "DNS and BIND by Paul Albitz & Cricket Liu,
! ISBN 1-56592-010-4.
!
! Further, test the resolver on your machine by
! pinging a hostname not entered in your /etc/hosts file.
! For example, type:
! ping ncbi.nlm.nih.gov
! The response should be: "ncbi.nlm.nih.gov is alive".
! If you get: "unknown host", consult the O'Reilly book.
!
! 2. Be sure to su to root before performing tasks
! outlined below. Next, check if you have a directory
! /usr/local and about 90 Mb of space in the partition
! where this directory is located. Create directories:
! /usr/local/bin, /usr/local/lib and /usr/local/man if
! you do not have them. Add /usr/local/bin to your path
! and /usr/local/man to your MANPATH.
!
! 3. INN uses gnu versions of grep, awk and sed. Moreover,
! it is recommended to compile INN with the gnu
! versions of make and the gnu gcc compiler instead of
! the Sun's unbundled cc compiler. If you don't have
! the gnu software package, create a directory
! /usr/local/gnu, cd to this directory and ftp to
! aeneas.mit.edu (18.71.0.38). Go to
! directory /pub/gnu and get the following files
! (versions as of February 4, 1994):
!
! bison bison-1.22.tar.gz
! gawk gawk-2.15.4.tar.gz
! gcc gcc-2.5.8.tar.gz
! grep grep-2.0.tar.gz
! gzip gzip-1.2.4.tar
! make make-3.70.tar.gz
! patch patch-2.1.tar.gz
! perl perl-4.036.tar.gz
! sed sed-2.03.tar.gz
! texinfo texinfo-3.1.tar.gz
!
! Installation of these programs is quite complicated,
! but is really beneficial. After you complete the
! installation, check if older versions of these programs
! are not present somewhere in your path. Delete or
! rename these old versions.
!
! a. Start with gzip. In /usr/local/gnu type:
! "tar xvf gzip-1.2.4.tar". A directory gzip-1.2.4 will
! be created. Change to this directory and type:
! "sh ./configure". Next, edit the Makefile
! with the vi editor and change the line starting with
! "CC" to read: "CC = cc". Then, type: "make".
! Compilation should complete without errors. Finally,
! type: "make install" to complete installation of gzip,
! gunzip, and other utilities in /usr/local/bin.
!
! b. Compile and install texinfo - info, makeinfo, the GNU
! hypertext system. Makeinfo is needed for successful
! installation of many GNU programs and utilities.
! In /usr/local/gnu type: "gunzip texinfo-3.1.tar.gz".
! Next, type: "tar xvf texinfo-3.1.tar". A directory
! texinfo-3.1 will be created. Cd to this directory
! and type: "sh ./configure". Next, edit the Makefile
! as described above for gzip. Now, type: "make"
! and ignore any non-fatal errors. Finally, type:
! "make install".
!
! c. Uncompress, compile and install gnu make. Follow the
! steps described for texinfo. Gnu make will install in
! /usr/local/bin. To disable Sun's make, cd to /usr/bin
! and type: "mv make make.sun".
!
! d. Compile and install bison following the procedure
! described for texinfo.
!
! e. Uncompress gcc. Cd to /usr/local/gnu/gcc-2.5.8 and
! type:
! sh ./configure --target=sparc-sun-sunos4.1
! Next type:
! make LANGUAGES=c
! This step will take about 17 minutes to complete.
! Ignore warnings reported for insn-emit.c. Next, type:
! make stage1
! Ignore reported non-fatal errors. Next, type:
! make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O"\
! LANGUAGES=c
! This step will take about 19 minutes to complete.
! Next, type:
! make stage2
! Ignore reported non-fatal errors. Next, type:
! make CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O"\
! LANGUAGES=c
! In this step, which lasts about 13 minutes, you will
! make the final stage 3 compiler. Now type: "make
! compare". No errors should be reported here. Finally,
! type:
! make install CC="stage2/xgcc -Bstage2/" CFLAGS="-g\
! -O" LANGUAGES=c
! to install the gcc compiler. It is advisable to
! recompile patch, gzip, texinfo, make and bison with
! gcc. It will be a good test for proper gcc
! functionality.
!
! f. Uncompress gawk. Cd to directory gawk-2.15.4 and type:
! ./configure sunos41
! Next type: "make". When gawk will compile, type:
! make install
! Finally, disable Sun's awk by typing:
! mv /usr/bin/awk /usr/bin/awk_sun
! and create a link to gawk for awk by typing:
! ln -s /usr/local/bin/gawk /usr/bin/awk
!
! g. Uncompress grep. Cd to directory grep-2.0 and type:
! ./configure
! Next type: "make" and "make install". Grep will
! also be installed in /usr/local/bin as fgrep
! and egrep. Finally, as some programs expect to find
! grep, egrep and fgrep in /usr/bin, disable Sun's grep
! and create appropriate links, just like described
! for awk. INN expects to find a program "egnugrep" in
! /usr/local/bin. Create it by typing:
! cp /usr/local/bin/egrep /usr/local/bin/egnugrep
!
! h. Uncompress sed and patch. Compile and install these
! utilities following the instructions for grep.
!
!
! i. INN comes with some scripts written in the perl
! language. Uncompress perl, cd to directory perl-4.036
! and type:
! sh ./Configure -d
! and hit Return for default answers to all questions.
! Next, type: "make depend", then "make". Now type:
! make test
! to check, if perl works without errors. Finally,
! type:
! make install
! to complete installation of perl.
!
!
!
! II. INSTALLATION OF INN 1.4
!
!
! 1. As root, create directories: /usr/local/inn1.4 (this
! will be your $inn directory) and /usr/local/news.
!
! 2. Cd to $inn. Get: inn1.4sec.tar.Z from ftp.uu.net
! (192.48.96.9). This file is in the directory:
! /networking/news/nntp/inn. As for all files, please
! remember to set the file type in ftp to binary.
!
! 3. From the same source and directory get the Frequently
! Asked Questions (FAQ) files:
! faq-inn-1.Z
! faq-inn-2.Z
! faq-inn-3.Z
! faq-inn-4.Z (this file)
! faq-nov.Z
! 4. To uncompress the FAQ files type: "uncompress faq-*.
! Print the FAQs and read them before proceeding further.
! 6. In $inn type: "zcat inn1.4sec.tar.Z | tar xvf -". This
! will install inn files for compilation.
! 7. Change directory to $inn/config, and type:
! cp config.dist config.data
! chmod 644 config.data
! Now use the vi editor to edit config.data. You should
! select gcc as the compiler by changing the line that
! starts with "CC" to read "CC gcc". Many lines in
! config.data define the location of various files
! and directories. It's OK to leave defaults, but
! check if you have ample space in the partition
! where the articles will be stored (/var/spool). More
! information on where INN expects to find certain files
! is in: $inn/samples/innshellvars. If necessary, edit
! the config.data and innshellvars to reflect your
! configuration. Please make sure that specified
! directories and utilities exist on your system.
!
! 8. Change directory to $inn. Type: "make world". Now
! type:
! cat */lint
! Here, you will get a list of compiler warnings and
! errors. In addition, "make" created in this step
! a file: "$inn/Install.ms". Print it by typing:
! nroff -ms Install.ms | lpr
! Install.ms is a manual for installation of INN written
! by Rich Salz, the author of INN. There is a lot of
! important and interesting information in his manual.
+ 9. If you got no fatal errors from make, go to the
+ $inn/site directory
+ and type: "make all".
! 10. There are some scripts and control files listed in
! inn-faqs and Install.ms that may be modified at this
! point. For most installations, the default settings
! are OK.
! 11. Now cd to $inn and type: "make install" to complete
! basic installation of INN.
! 12. To finish installation of INN, run the BUILD script
! in the $inn directory by typing "sh BUILD". This
! script will ask a series of configuration questions
! that are easy to answer. Please note that if your have
! "history.*" files in your /usr/local/news directory
! from a previous or failed installation of INN, the
! BUILD script will not complete. Rename them to
! "old.history.*" and re-run the BUILD script.
! 13. You need a site that will feed news to you.
! This will depend on your geographic location and
! organization. Ask a System Administrator of a site
! close to you for hints.
! 14. Ftp to your newsfeeding site and get the "active" file
! from there. Place this file in your /usr/local/news
! directory and edit it to your taste. Remember to
! include the "control" and "junk" newsgroups. Also, you
! have to edit the following files in /usr/local/news:
! newsfeeds, hosts.nntp and nnrp.access.
! 15. To check for syntax errors in INN control files,
! file ownership, permissions and other things type:
! /usr/bin/perl /usr/local/news/bin/inncheck
! and correct any errors reported by inncheck.
! 16. Look at the file "rc.news" in /usr/local/etc.
! It's advisable to enable the innwatch utility.
! Innwatch will throttle the newsserver when your disk
! will get full and prevent crashes. Change the line
! starting with "DOINNWATCH" to read "DOINNWATCH=true".
! Now type: "sh /usr/local/etc/rc.news"
! and look in /var/log/syslog for errors. Also, type:
! ps -aux| grep news
! and check, if the innd process owner is news.
! 17. In /etc/aliases create an entry: "usenet: <you, or
! root>". Next type: "/usr/ucb/newaliases" to inform the
! sendmail program that the aliases file has changed.
! If you are running YP (NIS) on your network, you may
! optionally add the "usenet" alias to your YP aliases
! file. If the machine you are installing INN on is the
! YP master and the file "/etc/aliases" is the source of
! the YP aliases map, you should type: "cd /var/yp"
! followed by "make". Reboot and restart innd (see #16).
!
! 18. To get daily reports on the newsserver activity from
! the "news.daily" script and to enable the "expire"
! utility type: "/bin/crontab -e news" and insert the
! following line:
! 40 23 * * * /usr/local/news/bin/news.daily delayrm
! or, if you are using overchan (in newsfeeds):
! 40 23 * * * /usr/local/news/bin/news.daily delayrm\
! expireover
! 19. To set-up complete logging of the server activities
! and have them ready for a report by the "news.daily"
! script, you have to edit your /etc/syslog.conf file.
! Insert at the end of this file the content of
! the syslog.conf file written by Rich Salz. This file
! is in: $inn/syslog. Please check, if you have the
! directories and files mentioned in Rich's syslog.conf.
! 20. Run tests from your machine to the server (to your
! machine at telnet port 119). See inn-faqs for details.
! 21. After completing these test, be sure to delete the
! entry for your machine from the hosts.nntp file. If
! you will not do it, your machine will be treated as a
! "feeder" and not as a "reader".
! 22. Set posting.
! a. Edit the /usr/local/news/newsfeeds file and add:
! <alias for your feed>/<full address of feed\
! :*\ (for all local postings)
! :Tf,Wnm: (standard entry)
! b. Edit /usr/local/news/nntpsend.ctl file and add:
! <alias for your feed>:<full address of feed>::\
! -T1800 -t300
! c. Type: "/bin/crontab -e news" and insert a line:
! 0,10,20,30,40,50 * * * *\
! /usr/local/news/bin/nntpsend
!
! d. Run inncheck (see #15).
! e. Post to misc.test and include "reply" in the
! Subject line, automatic responses will be mailed to
! usenet (see #17) within a few minutes.
! 23. To start innd automatically at bootup, include at the
! end of your rc.local the following lines:
! #
! # Start INN news service - Internet News Daemon (innd)
! #
! if [ -f /usr/local/etc/rc.news ]; then
! /usr/local/etc/rc.news; echo "Starting INN news
! service"
! fi
! 24. Watch the news.daily reports in your mail for any
! additional errors. To run the news.daily script
! at any time manually, FIRST SU FROM ROOT TO "news"
! and type: "/usr/local/news/news.daily". A mail to
! "usenet" should arrive within a couple of minutes
! and may report important configuration problems.
! III. UPGRADING FROM INN 1.3 TO INN 1.4
! 1. Stop the server. Type:
! ctlinnd shutdown "upgrade"
! 2. Create a directory /usr/local/inn1.4, this will be
! your $inn directory. cd to $inn. Next, ftp to
! ftp.uu.net, cd to directory: /networking/news/nntp/inn
! and get the following files:
+ inn1.4sec.tar.Z
+ faq-inn-1.Z
+ faq-inn-2.Z
+ faq-inn-3.Z
+ faq-inn-4.Z (this file)
+ faq-nov.Z
+ Uncompress and print the FAQs. Next, type:
+ zcat inn1.4sec.tar.Z | tar xvf -
+
+ Print the README file. To print the Install file,
+ type: "make Install.ms" followed by:
+ nroff -ms Install.ms | lpr
+
+ 3. Now, cd to $inn/config and type the following commands:
+ make subst
+ cp config.dist config.data
+ ./subst -f {OLDFILE} config.data
+ where {OLDFILE} is the location of config.data in your
+ INN 1.3 directory. Be sure to check, if in your old
+ config.data the "CC" line reads "CC gcc".
+ Ignore warnings about new lines. Next, type:
+ make sedtest
+ No errors should be reported here. Now, cd to $inn
+ and type this series of commands:
+ make quiet
+ cd ../lib
+ make libinn.a lint
+ cd ../frontends
+ make all
+ cd ../innd
+ make all
+ cd ../nnrpd
+ make all
+ cd ../backends
+ make all
+ cd ../expire
+ make all
+ cd ../site
+ make all
+ cd ..
+ make update
+
+ 4. Restart innd.
+
+
+ IV. MAINTENANCE OF INN
+
+ 1. Adding new groups - see also Part IV, Section 3.b,:
+
+ a. Type: "ctlinnd pause 'edit active'"
+
+ b. Edit the active file. The format is:
+ groupname himark lomark flag.
+ Set himark to 0000000000 and lomark to 0000000001.
+
+ c. Run inncheck (see #11) to check the new active file
+ for errors.
+ d. Type: "ctlinnd reload active 'new active'".
! e. Type: "ctlinnd go 'edit active'".
! 2. New groups are sometimes added automatically through
! a control message. A mail message to usenet will alert
! to such an automatic change to the active file. If you
! do not want to subscribe to a particular news group,
! change directory to /usr/local/news and type:
! ctlinnd rmgroup <group name>
!
! 3. Sometimes, a mail message will arrive for usenet with
! a checkgroups file. Remove header, save the body of
! the message in:
! /usr/local/news/bin/control/news_control/news_control_
! todaysdate
! cd to that directory and type:
! ../docheckgroups <news_control_todaysdate
! >todaysdate_pre
! Read the output file (todaysdate_pre) and carry out all
! the instructions that you think pertain to your
! situation. Read the man pages for "active" and "ctlinnd"
! for more info. To implement the changes, you will have to
! change to the directory: /usr/local/news and:
! a. remove a discontinued group:
! type: "ctlinnd rmgroup <group name>"
! b. add a group:
! type: "ctlinnd newgroup <group name> flag <creator
! name>"
! c. mark a group correctly:
! type: "ctlinnd changegroup <group name> flag"
! Run inncheck and repeat the docheckgroups command from
! the /usr/local/bin/control/news_control directory
! by typing:
! ../docheckgroups <news_control_todaysdate
! >todaysdate_after
! Correct any reported problems. Also, you may have to
! edit the /usr/local/news/newsgroups file to reflect
! any changes you introduced.
! 4. Subscribe to and read the following newsgroups:
! news.software.nntp
! news.software.readers
!
! 5. IMPORTANT!!! Never run fsck on the drive where the
! /spool/news files are located while running INN. Innd
! has a lot of active disk I/O going on and fsck will show
! a lot of errors.
! Use ctlinnd to throttle, pause, or shutdown innd first
! - see the manual page for ctlinnd.
!
!
! V. INSTALLATION OF XVNEWS, A SUN OPENWINDOWS
! NEWSREADER
!
! 1. Create a directory /usr/local/xvnews2.1 and cd to this
! directory.
!
! 2. Ftp to dutiws.twi.tudelft.nl and get the file
! xvnews.tar.gz from directory /pub/news.
!
! 3. Ungzip and untar xvnews.
!
! 4. Use your vi editor and edit the file xvnews.h
! You will need to enter your settings for:
! DOMAIN (on my machine: "pdb.cdc.gov")
! ORGANIZATION (on my machine: "Centers for Disease
! Control Atlanta, GA, USA")
! NNTPSERVER (on my machine:
! "giardia.pdb.cdc.gov")
! These defaults can be overridden by environment
! variables (see the xvnews man page).
!
! 5. Compile xvnews by typing: "make". I get some errors
! on my system, but the program runs OK. Copy xvnews
! to /usr/local/bin and xvnews.man to directory:
! /usr/local/man/man1 as xvnews.1
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not
like about existing?" "Uh... uh... what?" | speak for Mentor Graphics.
"Possessing a physical extension." -TSA |
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads