Re: Noffle with tin
Balas Mark <[email protected]> Fri, 2 Jul 2004 19:56:35 +0200 (CEST)
| Newsgroups | gmane.network.noffle.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2 Jul 2004, Jim Hague wrote:
> On 01-Jul-2004 Balas Mark wrote:
> >> If you're using inetd, you need to replace the 'nntp' line there with
> >> nntp stream tcp nowait news /usr/sbin/tcpd /usr/local/bin/noffle -r
> >>
> >> (assuming your noffle executable is in /usr/local/bin). If it's xinetd you
> >> use,
> >> edit packages/redhat/noffle-xinetd and change 'disable = yes' to 'disable =
> >> no', and copy it to /etc/xinetd.d and remove any file there that runs
> >> leafnode.
> >
> > I did it (which noffle said that the executable is in /usr/bin/noffle);
> > now tin connects to localhost, than gives the error message
> >
> > Connection to news server has timed out. Reconnect? (Y/n) Y
>
> Let's start by making sure that Noffle is installed and will work as a server.
>
> First, I think you said you'd done a 'noffle --query groups' and a 'noffle
> --fetch' to populate the news base with groups and some articles.
>
> Now try a quick server session run from the command line. Here's one I just
> did. The lines I typed to the server are indicated by '>'.
>
> jim@fluffy:~$ noffle -r
> 200 NNTP server NOFFLE 1.1.4
> > list active uk.comp.os.*
> 215 Groups
> uk.comp.os.win95 2317 2317 y
> uk.comp.os.linux 56726 56374 y
> uk.comp.os.win2000 4655 4655 y
> .
> > quit
> 205 Goodbye
> jim@fluffy:~$
>
> You may not get the same group list.
>
> Assuming that all works, the remaining problem is sorting out inetd or xinetd.
It seems it worked:
trychydts:~# noffle -r
200 NNTP server NOFFLE 1.0.1
list active uk.comp.os.*
215 Groups
uk.comp.os.linux 185354 185355 y
uk.comp.os.win2000 18083 18084 y
uk.comp.os.win95 52220 52221 y
.
quit
205 Goodbye
> The goal is to be able to do the same as above but via a network connection,
> like this:
>
> jim@fluffy:~$ telnet localhost nntp
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 200 NNTP server NOFFLE 1.1.4
> list active uk.comp.os.*
> 215 Groups
> uk.comp.os.win95 2317 2317 y
> uk.comp.os.linux 56726 56374 y
> uk.comp.os.win2000 4655 4655 y
> .
> quit
> 205 Goodbye
> Connection closed by foreign host.
> jim@fluffy:~$
[...]
> If you can do the above telnet session successfully, then Noffle is correctly
> installed as a server, and the problem is with the tin configuration.
There seems to be a problem here:
There is a problem here:
trychydts:~# telnet localhost nntp
Trying 127.0.0.1...
Connected to trychydts.
Escape character is '^]'.
200 NNTP server NOFFLE 1.0.1
list active uk.comp.os.*
503 Cannot init server
215 Groups
Connection closed by foreign host.
> Now, your system will be using inetd or xinetd, but not both. Most modern
> Linux
> distros use xinetd, but not all - Debian, for example, uses inetd by default.
> I'm guessing from what you said that you have xinetd. This is trickier for me
> to help with, 'cos I'm on Debian. Can you mail the contents of the noffle file
> you put in /etc/xinetd.d and we'll check for the problem.
I am on Debian, too, so my system most probably uses inetd.
I hope you meant to contents of the /etc/init.d/noffle file; it is this:
-------
#!/bin/sh
[ -f /etc/noffle/conf.debian ] || exit 0
. /etc/noffle/conf.debian
[ -x $NOFFLE ] || exit 0
PATH=/bin:/usr/bin:/sbin:/usr/sbin
case "$1" in
start)
echo -n "Initializing noffle: "
[ "$NOFFLE_FETCHMODE" = ppp ] && $NOFFLE --offline
[ "$NOFFLE_FETCHMODE" = cron ] && $NOFFLE --online
echo "done."
;;
stop)
echo -n "Stopping noffle: "
$NOFFLE --offline
echo "done."
;;
restart|force-reload)
$0 start
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop}"
exit 1
;;
esac
exit 0
# vim:set ts=8:
------
Thanks any help in advance,
Mark Balas
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com