🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #119212

Re: [TIN] compiling tin

#119212
From: Dirk Nimmich
Date: Sun, 26 Jan 2003 19:52
186 lines
9362 bytes
Terry wrote in news.software.readers:
> running Tin is another story. I have to start with tin -r ,

 Where do I store command line options permanently?

  If you always invoke tin with the same command line options you
  may store these in the environment variable TINRC.

  Example for ksh and bash for use with -r -A to read news via NNTP
  and authenticate to the server when connecting:

    TINRC="-r -A"; export TINRC

  Example for (t)csh for use with -z so that tin only starts if
  there are new postings:

    setenv TINRC -z
    
  These commands should be part of the login script of your command
  shell so that the environment variables are set automatically
  when you log in. See them man page of your shell to find out how
  the script is (to be) named.

> it then asks for username and password.  

 How do I log in to my news server automatically when connecting?
 
  Some news servers require a login with username and password when
  you connect to them. However, by default tin only sends them upon
  request of the server. With the command line option -A you can
  force tin to send username and password immediately after
  connecting the news server.

  You may add the option -A to the environment variable TINRC as
  described above.

  Note: Some news servers do not like it if you send them usernames
  and passwords unrequested. Do only use this option if your news
  server needs this.
  

 The question for username and password sucks. Is there a
 possibility to remember them?

  Of course there is. The file containing these data is named
  .newsauth as has to reside in your home directory. Create it with
  an editor or change it so it contains
  
    newsserver.fqdn.de password username
  
  For newsserver.fqdn.de, password, and username you should use the
  internet name of your news server, your password, and your
  username, respectively. If the username at the news server is the
  same as your login name on your local computer you may omit it.
   
  The .newsauth file can hold an entry for each news server you
  have to authenticate to. Each entry has to be in its own line.

  Warning: Since the password is stored in plain text and
  unencrypted, the file should only be readable by you. Change the
  permissions of the file accordingly. Generally, you can do this
  with the chmod command, for example
  
    chmod 0600 .newsauth


> Reading Groups from Active file (about 3 to 4 minutes!!), then a couple 
> more attributes files which go very fast and finally Reading Newsgroups 
> File (again another 3 to 4 minutes). 

 Why does it take such a long to until tin shows the groups?
 
  When connecting to a news server, TIN reads its active and
  newsgroups files. The active file contains information about the
  available newsgroups and their status (not moderated, moderated,
  not writeable, renamed), the newsgroups file lists short
  descriptions of the newsgroups. Depending on how many newsgroups
  the server is carrying, the files may be very large.

  Example: The news server carries 10.000 newsgroups. Assuming that
  in average for every newsgroups 45 bytes are needed (and that's
  not much!) then this file would be 450.000 bytes long. To
  download this file with a 33.6 kbit/s modem would need ca. 110
  seconds -- under optimal circumstances. (It does usually take
  longer because of latency times.) The newsgroups file has
  aproximately the same size.
  
  Solution: TIN "knows" three command line options to speed up
  things at startup:
  
    -n  Don't read the active file but only newsgroups mentioned in
        the .newsrc file. In the .newsrc file, located in your home
        directory, TIN remembers to which newsgroups you are
        subscibed to and which articles you already read.
        
        This option has no effect if there is no .newsrc file or if
        it is empty. (Which is usually the case when you start tin
        for the first time.)
        
        The drawback of this option is that TIN is unable to tell
        which newsgroups are moderated. You are also unable to
        subscribe to newsgroups not listed in the .newsrc file.

    -d  Don't read the newsgroups file with the descriptions. If
        you use this option, you won't see the descriptions, of
        course. You may want to store a newsgroups file in your local
        .tin directory which will be used instead.

    -q  Don't check if there are new newsgroups on the server
        available.

  All three options are set by the -Q command line option.


> When it is finally finished my 4 groups appear that I subscribed to the 
> previous time appear with just a few messages ( I used the c = catchup 
> flag before). But when I select a group, Tin seems to be reading the 
> entire group as it takes about 3 or minutes for just a few messages to 
> appear in the list. 

 Why does it take such a long time to get into select level?

  When entering a newsgroup, TIN downloads information from the
  server to present proper threaded articles in it. This information
  is called "the overview" of the group. Every article consumes
  something between 250 and 400 bytes in the overview depending on
  the group and how deep threads are in general. If you have
  newsgroup with, say 5000 articles in it, this results in 1.25 - 2
  Mbyte data that has to be transfered to your computer. Assuming
  that you are using a modem at 33.6 kbit/s and have optimum download
  conditions, you'd have to wait at least 300 seconds -- that is, 5
  minutes.


 And how can I reduce the time to get into select level?

  You can tell TIN to cache the overview information it already
  downloaded from the server. This can be done from the option
  'M'enu in TIN. Search for the "Cache NNTP overview files locally"
  option and switch it ON. Alternatively, change the
  cache_overview_files variable the .tin/tinrc file to ON. The
  drawback of local caching, however, is that it consumes (possibly
  much) disk space in your home directory. (And it seems to be
  broken under certain circumstances.)

  Secondly, you can limit the number of articles TIN wants to
  download overview information for. The limit is controlled by the
  value of the "Number of articles to get" option or the
  getart_limit variable, respectively.

  If the value is positive, TIN always downloads the given number
  of overview entries, counting from the most recent article on the
  server backwards. This is normally not what you want, since if
  there are more new articles in the group than the number you
  entered here, you'll miss some articles. E. g., assume you left a
  group with the newest article numbered 1500, have getart_limit
  set to 100 and meanwhile 150 articles arrived in that group. When
  you re-enter the newsgroup, TIN will only read information for
  the latest 100 articles and you won't be able to read the first
  50 articles that showed up on your server after you left the
  group.

  Fortunately, you can set the value to a negative number. When TIN
  sees this, it will count backwards from the article number of the
  first unread posting, so you won't miss any article. A reasonable
  value seems to be between -100 and -500, depending on how many
  threads a newsgroup has and how many articles usually arrive
  until you re-enter the group. This helps TIN to do some
  threading.

  In order to get TIN using the limit, you must also switch the
  option "Use getart limit" to ON. The corresponding variable in
  the tinrc file is use_getart_limit. (So if you think you missed
  some articles, leave the group, set "Use article limit" to OFF
  and re-enter it.)

  There is also a command line switch -G num. num is the same
  number you would have entered in the option 'M'enu at the "Number
  of articles to get". If you use -G 0, you turn off this feature
  (i. e. getart_limit is set to 0 and use_getart_limit to OFF).


> Is part of the problem 1.5.9? Should I use a earlier release? -Terry

The current unstable version is 1.5.16.
Technical Details
Message-ID: <b11e8u$ade$00$1@news.t-online.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.online.be!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <awKY9.3775$U27.350174@newsread2.prod.itd.earthlink.net> <terry-9309C6.11001926012003@news.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <b11e8u$ade$00$1@news.t-online.com>
Subject: Re: [TIN] compiling tin
Date: Sun, 26 Jan 2003 20:52:00 +0100
From: Dirk Nimmich <nimmich@muenster.de>
References: <awKY9.3775$U27.350174@newsread2.prod.itd.earthlink.net> <terry-9309C6.11001926012003@news.newsguy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.online.be!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.readers,comp.sys.mac.apps
Followup-To: news.software.readers
Organization: T-Online
Lines: 185
Sender: Dirk Nimmich <dirk@roxel.ms.sub.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1043610720 00 10670 BVKaEumTSbAAlI 030126 19:52:00
X-Complaints-To: abuse@t-online.com
X-Sender: 340032227593-0001@t-dialin.net