wiki:howto/uucp/cnews

Version 8 (modified by welterde, 9 years ago) (diff)

--

Installation

Debian

aptitude install cnews
# Only up to debian lenny
aptitude install nntp
# Only up to debian etch

Cnews

/etc/news/mailname

Configure the hostname for mail(Make sure it's the same as the one used in the uucp configuration!)

sample_site

/etc/news/whoami

Configure the hostname for news(Make sure it's the same as the one used in the uucp configuration!)

sample_site

/etc/news/sys

Configure a simple outgoing feed.

# Accept everything
ME:all

# run a simple outgoing feed
foo:all,!to/all:f:
foo:to.foo/all:f:

/etc/cron.d/cnews

Default cron configuration.

# process incoming uucp batches
00,15,30,45     *    *   *   *   news   test -f /usr/lib/news/input/newsrun && /usr/lib/news/input/newsrun
# prepare outgoing uucp batches
40              *    *   *   *   news   test -f /usr/lib/news/batch/sendbatches && /usr/lib/news/batch/sendbatches
# searches for indications of problems
05,35           *    *   *   *   news   test -f /usr/lib/news/maint/newswatch && /usr/lib/news/maint/newswatch 3000 300 100

/etc/news/batchparams

Configure how to generate outgoing uucp batches.

# 500KB, after compress, is 4 minutes at 1000cps
# 20 batches is somewhat arbitrary, about 5MB per site

# site          class   size    queue   command
# ----          -----   ----    -----   -------
# defaults:  cunbatch header, transfer by uux
# /default/     u       500000  20      batcher | compcun | viauux

# small batches for slow modem (120cps), simple compression
# pluto         u       100000  10      batcher | compress | viauux

# system that wants 12-bit compress, cunbatch header, and grade "z"
# dewey         u       500000  20      batcher | compcun -b12 | viauux -gz

# use gzip, intensively -- this link is expensive and CPU is free -- and
#  set the upper limit for batch size to 3/4 meg rather than default
# huey  u       500000-750000   20      batcher | gzip -9 | viauux -d gunzip
foo             u       500000  20      batcher | gzip -9 | viauux -d gunzip

# NNTP link
# donald                n       40000   -       usenntpxmit donald.cia.gov

# sample ihave/sendme setup (you are not expected to understand this)
# louie.wehave  u       40000   20      batchih | viainews
# louie.ihave   u       40000   20      batchsm | viainews
# louie.sendme  u       40000   20      batchra