old-www/LDP/nag2/x-087-2-newsreaders.tin.html

298 lines
5.0 KiB
HTML

<HTML
><HEAD
><TITLE
>tin Configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="Linux Network Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="Newsreader Configuration"
HREF="x-087-2-newsreaders.html"><LINK
REL="PREVIOUS"
TITLE="Newsreader Configuration"
HREF="x-087-2-newsreaders.html"><LINK
REL="NEXT"
TITLE="trn Configuration"
HREF="x-087-2-newsreaders.trn.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Network Administrators Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x-087-2-newsreaders.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 24. Newsreader Configuration</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x-087-2-newsreaders.trn.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="X-087-2-NEWSREADERS.TIN"
>24.1. tin Configuration</A
></H1
><P
>The most versatile newsreader with respect to threading is
<B
CLASS="COMMAND"
>tin</B
>. It was written by Iain Lea and is loosely modeled
on an older newsreader named <B
CLASS="COMMAND"
>tass</B
> (written by Rich Skrenta).
It does its threading when the user enters the newsgroup, and it is
pretty fast unless you're getting posts via NNTP.</P
><P
>On a 486DX50, it takes roughly 30 seconds to thread 1,000 articles when
reading directly from disk. It would take more than 5 minutes over NNTP
to reach a loaded news server.<A
NAME="X-087-2-FNNR01"
HREF="#FTN.X-087-2-FNNR01"
>[1]</A
>
You may improve this time by regularly updating your index file by invoking
<B
CLASS="COMMAND"
>tin</B
> with the <TT
CLASS="OPTION"
>&#8211;u</TT
> option, so that when
you next start <B
CLASS="COMMAND"
>tin</B
> to read news the threads already exist.
Alternatively, you can invoke <B
CLASS="COMMAND"
>tin</B
> with the
<TT
CLASS="OPTION"
>&#8211;U</TT
> option to read news. When invoked this way,
<B
CLASS="COMMAND"
>tin</B
> forks a background process to build the index files
while you are reading news.&#13;</P
><P
>Usually, <B
CLASS="COMMAND"
>tin</B
> dumps its threading databases in the user's
home directory below <TT
CLASS="FILENAME"
>.tin/index</TT
>. This may be costly
in terms of resources, however, so you should keep a single copy of them in
a central location. This may be achieved by making <B
CLASS="COMMAND"
>tin</B
>
setuid to <SPAN
CLASS="SYSTEMITEM"
>news</SPAN
>, for
example. <B
CLASS="COMMAND"
>tin</B
> will then keep all thread databases below
<TT
CLASS="FILENAME"
>/var/spool/news/.index</TT
>. For any file access or shell
escape, it will reset its effective uid to the real uid of the user who
invoked it.<A
NAME="X-087-2-FNNR03"
HREF="#FTN.X-087-2-FNNR03"
>[2]</A
></P
><P
>The version of <B
CLASS="COMMAND"
>tin</B
> included in some Linux distributions
is compiled without NNTP support, but most do have it now. When invoked as
<B
CLASS="COMMAND"
>rtin</B
> or with the <TT
CLASS="OPTION"
>&#8211;r</TT
> option,
<B
CLASS="COMMAND"
>tin</B
> tries to connect to the NNTP server specified in
the file <TT
CLASS="FILENAME"
>/etc/nntpserver</TT
> or in the
<SPAN
CLASS="SYSTEMITEM"
>NNTPSERVER</SPAN
> environment variable.
The <TT
CLASS="FILENAME"
>nntpserver</TT
> file simply contains the server's name
on a single line.
</P
></DIV
><H3
CLASS="FOOTNOTES"
>Notes</H3
><TABLE
BORDER="0"
CLASS="FOOTNOTES"
WIDTH="100%"
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.X-087-2-FNNR01"
HREF="x-087-2-newsreaders.tin.html#X-087-2-FNNR01"
>[1]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>Things improve drastically if the NNTP server does the threading itself and
lets the client retrieve the threads databases; INN does this, for instance.</P
></TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.X-087-2-FNNR03"
HREF="x-087-2-newsreaders.tin.html#X-087-2-FNNR03"
>[2]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>This is the reason why you will get ugly error messages when invoking
<B
CLASS="COMMAND"
>tin</B
> as superuser. But you shouldn't do routine work as
<SPAN
CLASS="SYSTEMITEM"
>root</SPAN
>, anyway.</P
></TD
></TR
></TABLE
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x-087-2-newsreaders.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x-087-2-newsreaders.trn.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Newsreader Configuration</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-newsreaders.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>trn Configuration</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>