🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2084

Finally! INN 1.4 working out of the box on Linux

#2084
From: Arjan de Vet
Date: Wed, 11 Aug 1993 20:10
69 lines
3367 bytes
Some time ago I made a patch kit with sample configuration files for INN
1.4 for Linux available as

	ftp.win.tue.nl:/pub/linux/ports/inn-1.4-linux.tar.gz

These patches made it possible to use UNIX domain sockets although their
implementation on Linux is not complete and bugfree. These patches were
based on INN 1.3 patches by Dave Gymer.

At that time I had tried several times to get INN 1.4 working without
Dave's patches. INN 1.4 compiles out of the box on Linux but did not work.

I noticed a recent addition to the INN FAQ concerning these UNIX domain
sockets. This evening I tried INN 1.4 again without UNIX domain sockets
and I finally have it working the way it should, thanks to the excellent
FAQ by Tom Limoncelli.

What I did (as user `news'):

1. I did a reversed patch with the patch file from inn-1.4-linux.tar.gz.
   This gave me the original INN 1.4 sources although with my config.data
   and site/* files intact.

2. In config/config.data I changed DO to DONT for HAVE_UNIX_DOMAIN:

	##  Do you have Unix-domain sockets?  Pick DO or DONT.
	#### =()<HAVE_UNIX_DOMAIN	@<HAVE_UNIX_DOMAIN>@>()=
	HAVE_UNIX_DOMAIN	DONT

3. I added my local hostname to hosts.nntp (see INN FAQ part 3 why this is
   necessary). It should be the host where innd will be running.

	##  $Revision: 1.4 $
	##  hosts.nntp - names and addresses that feed us news
	##  Format
	##	<host>:
	##	<host>:<password>
	##  <host> can be a name or IP address; no wildcards.  Any hosts not
	##  listed here are handed off to nnrpd.
	adv.win.tue.nl

4. make all

5. I shut down the running innd: ctlinnd shutdown ""

6. make install

7. be sure that you do NOT have a line for nntp in /etc/inetd.conf: innd
   controls the NNTP port and knows when to fork off the nnrpd daemon.  I
   think this is one of the main reasons why earlier attempts to get INN
   1.4 working without UNIX domain sockets didn't work for me :-(

8. as root(!): /usr/lib/news/etc/rc.news

NOTE: after this change NNTP news reading from the host where innd is
running is not possible anymore, unless the news reader knows the `mode
reader' command. See the INN FAQ part 3 for more information.

If there is interest I can make a new version of inn-1.4-linux.tar.gz
(which then also contains some small diffs for bugs in bash-1.12 which
cause news.daily to hang).

Arjan

--
Arjan de Vet                             <Arjan.de.Vet@adv.win.tue.nl> (home)
Eindhoven University of Technology, the Netherlands <devet@win.tue.nl> (work)
Technical Details
Message-ID: <24bjn7$39h@adv.win.tue.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!tuegate.tue.nl!svin09.info.win.tue.nl!adv.win.tue.nl!adv.win.tue.nl!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <24bjn7$39h@adv.win.tue.nl>
Subject: Finally! INN 1.4 working out of the box on Linux
Date: Wed, 11 Aug 1993 20:10:15 +0000
From: devet@adv.win.tue.nl (Arjan de Vet)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!tuegate.tue.nl!svin09.info.win.tue.nl!adv.win.tue.nl!adv.win.tue.nl!not-for-mail
Newsgroups: comp.os.linux,news.software.nntp
Organization: Eindhoven University of Technology, the Netherlands
Lines: 68
Distribution: inet
NNTP-Posting-Host: adv.win.tue.nl
Keywords: inn linux unix domain socket