Suck

You now need to configure something to pull news off the remote server and send it to your local server. If you're feeling adventurous you might like to try my perl NNTP transfer agent peer, otherwise suck is the canonical choice.

To run this with Innd 2.1 you'll need to edit the Makefile after you've run ./configure. Something like the following should work for the Innd installation directories set previously:

 
HISTORYF=/var/lib/news/history
CHKHISTORY=chkhistory_db.o
DB_TYPE=-DUSE_INN2
DB_LIB=-linn -lstorage
DB_INC_LOC=-I/usr/local/src/inn-2.1/include
DB_LIB_LOC=-L/opt/news/lib
PERL_LIB=-lperl -lcrypt -lm
PERL_CORE=/usr/lib/perl5/5.00502/i586-linux/CORE

Replace /usr/local/src/inn-2.1/ with whichever directory the Innd source is in and make sure /usr/lib/perl5/5.00502/i586-linux/CORE points to your perl include directory (generally the location of perl.h).

Once that is happily compiled and installed you need to create a spool directory for suck's config files and for storing articles in. Say, respectively, /var/lib/news/suck and /var/lib/news/suck/MSGS. Once you've created these directories you should be able to run suck as:

 
suck news.demon.co.uk -A -hl localhost -c -dd /var/lib/news/suck -dm
/var/lib/news/suck/MSGS -dt /var/lib/news/suck -M -bp

Now suck should attempt to download new news in every group in Innd's active file and send it to your local Innd. You can add groups to Innd's active file by doing (as root)

 
ctlinnd newgroup name.of.group y

If the group is moderated change the `y' to a `m' and if posting is prohibited change the `y' to a `n'.

When you post to one of these groups the article should appear locally and an entry will be created in the demon batch file (/var/spool/news/outgoing/demon). Running nntpsend when you connect will upload every article referenced in the batch file.

If you have groups in your active file which you don't want to download news for you can add them, one per line, to /var/lib/news/suck/active-ignore. Suck also has sophisticated killfile routines, you can read about them in the documentation.

Main


Home