🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Tom Limoncelli Tue, 20 Jul 1993 04:00
Changes to INN FAQ Part 1/3: General Information, how to compile, how to operate
#2047
Author: Tom Limoncelli
Date: Tue, 20 Jul 1993 04:00
194 lines
8362 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff1

*** FAQ-inn.1-lastposted	Mon Jul  5 00:00:46 1993
--- FAQ-inn.1	Tue Jul 20 00:00:01 1993
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.1,v 1.27 1993/06/28 20:19:32 tal Exp $
  
                            Table Of Contents:
                            ------------------
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.1,v 1.36 1993/07/19 14:22:15 tal Exp $
  
                            Table Of Contents:
                            ------------------
***************
*** 38,49 ****
  		when I explicitly have !comp.foo in the newsfeeds entry?
  	What's the best way to upgrade to a new version of INN?
  ADVANCED QUESTIONS:
  	How do I talk to innd from C or Perl?
  	How do I set up a delayed IHAVE/SENDME over NNTP?
  
  
! (The FAQ was written by Rich $alz (rsalz@rodan.uu.net) and is now
! maintained by Tom Limoncelli.)
  
  
  ======================================================================
--- 38,50 ----
  		when I explicitly have !comp.foo in the newsfeeds entry?
  	What's the best way to upgrade to a new version of INN?
  ADVANCED QUESTIONS:
+ 	What do I do if /var/spool/news is set up over many partitions?
  	How do I talk to innd from C or Perl?
  	How do I set up a delayed IHAVE/SENDME over NNTP?
  
  
! (The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
! maintained by Tom Limoncelli <tal@warren.mentorg.com>.)
  
  
  ======================================================================
***************
*** 380,385 ****
--- 381,393 ----
  #define gethostbyname __switch_gethostbyname
  
  
+ ------------------------------
+ 
+ Subject: Mac running A/UX 3.0
+ 
+ Use the INN malloc.
+ 
+ 
  ======================================================================
  
                          OPERATIONAL QUESTIONS
***************
*** 505,510 ****
--- 513,563 ----
  the FAQ gives tips on testing your configuration.
  
  
+ ------------------------------
+ 
+ Subject:  Can I use gzip with INN?
+ 
+ (this was written with the help of Michael Brouwer <michael@tar.wft.stack.urc.tue.nl>)
+ 
+ There are three things that can be effected by using gzip:  Compression
+ of old logs, compressing batches to send out, and decompressing batches
+ that come in.
+ 
+ With INN 1.4 all you need to do is change two lines in config.data to
+ something like this:
+ 
+ COMPRESS                /usr/local/bin/gzip
+ DOTZ                    .gz
+ 
+ If you rebuild INN with these options set, all logs will be gzipped, and rnews
+ will use gzip to decompress news.
+ 
+ gzip will automaticly and transparently decompress UNIX Compress, SCO
+ UNIX Compress (I'm told it's 99% compatible with UNIX Compress), Pack,
+ and gzip.  Therefore, you can now receive batches compressed with any
+ of the above listed formats.  Let's refer to this as "your site is now
+ a universal decompresser".
+ 
+ It has been reported that if you hardlink gzip to be zcat, and make
+ sure that it is the zcat that INN uses, you can get the "universal
+ decompresser" without having to use gzip for your logs.  (Though, gzip
+ for your logs is a big win, so why make trouble for yourself?)
+ 
+ `send-uucp' will still use compress for outgoing batches, so the sites
+ you feed won't suddenly start getting data they don't understand.
+ 
+ Before you can send gzipped batches, you should make sure that the
+ sites that you feed have made the above changes so that they have the
+ "universal decompresser" too.
+ 
+ Edit send-uucp to use gzip instead of compress for certain hosts (see
+ example of using compress -b12 for the host esac in send-uucp),
+ outgoing batches will be gzipped.
+ 
+ If you use sendbatch, you will have to edit the file so that COMPRESS
+ is set to "gzip" and COMPFLAGS is set to "-9vc".
+ 
+ 
  ======================================================================
  
                            ADVANCED QUESTIONS
***************
*** 511,516 ****
--- 564,635 ----
  
  ======================================================================
  
+ 
+ ------------------------------
+ 
+ Subject:  What do I do if /var/spool/news is set up over many partitions?
+ 
+ First of all, you can do this by either mounting a filesystem at
+ /var/spool/news/comp (for example) or by mounting a filesystem anywhere
+ and making /var/spool/news/comp a symbolic link to the new partition.
+ 
+ Articles will be written as normal, but cross-posts have to be handled
+ specially now.  Usually INN handles crossposts by writing the article
+ to the first newssgroup, and then creating hard links to all the other
+ places where the article should appear.  Hard links do not take up
+ additional disk space (except making your directories longer).  Hard
+ links also have the advantage that the file data doesn't get deleted
+ until the last hard link is gone (and they can be deleted in any
+ order).  Therefore, you can expire each newsgroup at a different rate,
+ but the file data won't delete until it is expired from the last
+ newsgroup.
+ 
+ The problem is that two hard linked files must both be on the same
+ filesystem (partition).
+ 
+ When INN sees that it can not make a hard link (because an article is
+ cross-posted across two partitions) it will try to make a symbolic
+ link.  If your system can not do symbolic links, set HAVE_SYMLINKS to
+ DONT in your config.data file.  This will make INN write a second
+ (or third, etc.) copy of the file instead.  (NOTE: INN 1.4 doesn't
+ make the extra files.  This feature is planned for INN 1.5.)
+ 
+ Anyway, even though INN will automatically create symbolic links, you
+ have to give expire the "-l" flag so that it will know to modify its
+ behavior.  Suppose that a message is posted to rec.photo and
+ alt.cameras and suppose that rec.photo expires more quickly then the
+ alt group.  If this happens, then you will be left with a dangling
+ symlink.  The -l flag prevents this from happening.
+ 
+ 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!
+ 
+ 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
  
  ------------------------------
  
-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that  | Disclaimer:  I do not
they have new email.  I run '/bin/true'".   | speak for Mentor Graphics.
Changes to INN FAQ Part 2/3: Tutorial on installing
#2046
Author: Tom Limoncelli
Date: Tue, 20 Jul 1993 04:00
30 lines
2074 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff2

*** FAQ-inn.2-lastposted	Mon Jul  5 00:00:47 1993
--- FAQ-inn.2	Tue Jul 20 00:00:02 1993
***************
*** 1,9 ****
  
- Last Changed: $Id: FAQ-inn.3,v 1.7 1993/06/07 19:07:09 tal Exp $
- 
  This is a separate guide to installing INN.  It is written for INN 1.4,
! but should work on INN 1.4.  It is written and maintained by Norman J.
! Pieniazek (norman@giardia.pdb.cdc.gov).  Please send updates and
  corrections to him.
  
  
--- 1,8 ----
+ Last Changed: $Id: FAQ-inn.2,v 1.9 1993/07/14 22:29:33 tal Exp $
  
  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.
  
  
-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that  | Disclaimer:  I do not
they have new email.  I run '/bin/true'".   | speak for Mentor Graphics.
Changes to INN FAQ Part 3/3: Tutorial on debugging and adding options
#2049
Author: Tom Limoncelli
Date: Tue, 20 Jul 1993 04:00
192 lines
9300 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff3

*** FAQ-inn.3-lastposted	Mon Jul  5 00:00:46 1993
--- FAQ-inn.3	Tue Jul 20 00:00:02 1993
***************
*** 1,14 ****
! Last Changed: $Id: FAQ-inn.2,v 1.30 1993/06/25 15:54:41 tal Exp tal $
  
                        The INN CONFIGURATION FAQ
                        -------------------------
         by Tom Limoncelli, with additions by many, many others.
  
! (Copyright 1992 Tom Limoncelli, this may be redistributed in whole and
! only on electronic networks.  Otherwise, contact the author.
! Publishers and movie agents should contact me as soon as possible.  I'd
! prefer it if Tom Cruise plays me in the movie, but if he isn't
! available we can negotiate.)
  
  A special thanks goes to all the people that have helped put this
  together.  I've tried to give credit where credit is due.  Additions
--- 1,14 ----
! Last Changed: $Id: FAQ-inn.3,v 1.36 1993/07/14 22:29:33 tal Exp $
  
                        The INN CONFIGURATION FAQ
                        -------------------------
         by Tom Limoncelli, with additions by many, many others.
  
! (Copyright 1992,1993 Tom Limoncelli, this may be redistributed in whole
! and only on electronic networks.  Otherwise, contact the author.
! Publishers and movie agents should contact me directly.  I'd prefer it
! if Tom Cruise plays me in the movie, but if he isn't available we can
! negotiate.)
  
  A special thanks goes to all the people that have helped put this
  together.  I've tried to give credit where credit is due.  Additions
***************
*** 67,72 ****
--- 67,73 ----
  		what's waiting for them.
  	Directories are being created with wrong permissions.
  	Can I split my news spool across partitions?
+ 	Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  
  
  NOTE:  Read this document through from beginning to end after
***************
*** 556,563 ****
  connects to innd over a TCP socket and sends an IHAVE.) (thanks to Chris
  Jackson <cjj@sun.com> for pointing this out).  Add your news server's
  name to hosts.nntp and do "ctlinnd reload hosts.nntp".
     If it still doesn't work, look through your syslog to see the name
! of the host that INND got, and what it handed off to nnrpd.  Perhaps
  there is a DNS/NIS/hosts-file mismatch.  (suggested by Rich Salz)
  
  Other problems are usually the result of not being able to find the
--- 557,567 ----
  connects to innd over a TCP socket and sends an IHAVE.) (thanks to Chris
  Jackson <cjj@sun.com> for pointing this out).  Add your news server's
  name to hosts.nntp and do "ctlinnd reload hosts.nntp".
+ (for the reason why, read "Warnings to people that must set
+ HAVE_UNIX_DOMAIN to DONT")
+ 
     If it still doesn't work, look through your syslog to see the name
! of the host that innd got, and why it handed off to nnrpd.  Perhaps
  there is a DNS/NIS/hosts-file mismatch.  (suggested by Rich Salz)
  
  Other problems are usually the result of not being able to find the
***************
*** 599,605 ****
  "inn.conf" and recompile INN with "INEWS_PATH" set to
  "DONT".  (I don't know why Rich likes that as the default!)
  
! REMEMBER:  inn.conf is read into innd only once.  If After it is changed,
  the innd daemon must be shutdown and restarted.  (use "ctlinnd shutdown x"
  and then run rc.news as root).
  
--- 603,609 ----
  "inn.conf" and recompile INN with "INEWS_PATH" set to
  "DONT".  (I don't know why Rich likes that as the default!)
  
! REMEMBER:  inn.conf is read into innd only once.  After it is changed,
  the innd daemon must be shutdown and restarted.  (use "ctlinnd shutdown x"
  and then run rc.news as root).
  
***************
*** 935,943 ****
  		Trying to use MMAP on Ultrix
  		Some strange interaction with tind.
  
! Make sure nobody else is writing to the active file, then do
  		ctlinnd renumber ''
! To get things synchronized again.
  
  
  ======================================================================
--- 939,961 ----
  		Trying to use MMAP on Ultrix
  		Some strange interaction with tind.
  
! If you are using Ultrix, turn off MMAP.  You don't have a choice in
! this.  The Ultrix mmap() function does something completely different
! than the Sun/BSD mmap() function.
! 
! At least one person has reported problems with ICL DRS6000 SVR4 Unix
! when using MMAP.  Try turning off MMAP if you find problems.
! 
! It has been reported that tind writes to the active file and this
! confuses innd (innd assumes it is the only process writing to the
! active file).  If you are using tin, upgrade to the newest version of
! tin which can read the overview (NOV) database instead of the "tin"
! database.
! 
! To fix the active file (which may be corrupted), make sure nobody
! else is writing to the active file, then do
  		ctlinnd renumber ''
! to get things synchronized again.
  
  
  ======================================================================
***************
*** 1293,1319 ****
  
  ------------------------------
  
! Subject: Can I split my news spool across partitions?
  
! Rich $alz replies:
  
! Yes, it works fine.  Suppose you have rec on one partition and alt on
! another.  If an article is posted to rec.photo and
! alt.graphics.pixutils then INN will write the article to rec/photo/xxx
! and make alt/graphics/pixutils/yyy be a symlink to it.  In order for
! this to work, you must make sure that you have built INN with
! HAVE_SYMLINK set to DO.
  
! You must also take special care when you expire articles, and make sure
! that expire is given the -l flag (see doc/expire.8).  Suppose that
! rec.photo expires more quickly then the alt group.  If this happens,
! then you will be left with a dangling symlink.  The -l flag prevents
! this from happening.
  
! There is one other caveat:  makehistory does not handle symlinks very
! well.  If you need to rebuild your history database from scratch it is
! probably best to run a find that first removes all symlinks.  See
! doc/news-recovery.8.
  
  
  - * The End * -
--- 1311,1347 ----
  
  ------------------------------
  
! Subject: Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  
! Disclaimer:  First of all, if you have to set HAVE_UNIX_DOMAIN to DONT,
! YOU HAVE TO SET IT to DONT.  It's not a choice you can make, it's a
! description of the operating system that you purchased.  If you wrongly
! set this variable to DO your system isn't going to work *at* *all*.
  
! When you use the POST via NNTP, you are talking to nnrpd.  nnrpd cleans
! up your headers, adds the missing headers that it is allowed to add,
! checks whatever it checks, and then submits the finalized version to
! innd.  How does it talk to innd?
! If you have HAVE_UNIX_DOMAIN set to DO, nnrpd opens a Unix domain
! socket and sends the text.  At this point it is talking to innd
! somewhat like ctlinnd does.  innd can trust that the post isn't
! forged since it is coming from a program trustworthy enough to
! get to the socket (which isn't much).
! If you have HAVE_UNIX_DOMAIN set to DONT, it has no choice but to open
! a socket to port 119 and issue the "IHAVE" command, and send the text
! that way (just like a remote newsreader).  This means that innd (not
! another nnrpd) has to be at the other end of the pipe.  If it opens the
! connection and sees a "nnrpd" you're hosed and you get "441 480
! Transfer permission denied".  To get innd to not hand off the
! connection to a nnrpd process, you must have the host's name in the
! hosts.nntp file.  (don't forget to do "ctlinnd reload hosts.nntp")
  
! If you have your host's name in the hosts.nntp file, then any
! newsreader running on your nntphost must be "INN-aware" (i.e. that they
! 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.
  
  
  - * The End * -
-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that  | Disclaimer:  I do not
they have new email.  I run '/bin/true'".   | speak for Mentor Graphics.
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