🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #224585

Re: nn setup [was: Too lazy to re-learn TRN/TIN/SLRN?]

#224585
From: Steve Ackman
Date: Sun, 10 Aug 2008 16:46
67 lines
4350 bytes
In <roednQ8sndieDAPVnZ2dnUVZ_qPinZ2d@giganews.com>, on Sun, 10 Aug 2008 
01:56:03 -0500, Aaron W  Hsu, arcfide@sacrideo.us wrote:
> Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com> writes:
>
>>In <20080809182158.203@ilium.andrews-corner.org>, on Sat, 09 Aug 2008 
>>18:27:58 +1000, andrew, andrew@ilium.invalid wrote:

>>  In FreeBSD, 'hostname' returns the FQDN while in 
>>Debian lenny/sid, it requires 'hostname -f'  
>>Possibly nn was written on a pre-Linux OS that behaved
>>the way FreeBSD does.
>
>>> I dug a little deeper and found I could place a
>>> 'domain' line in /etc/resolv.conf and this pacified nn and enabled me to
>>> start it.
>
>>  Whatever works I guess.  I suppose another option
>>might be
>>$ alias hostname='hostname -f'
>
> This won't really work because I believe NN uses gethostname(). 

  Does 'hostname' not use gethostname() then?

$ hostname
sorceror  
$ export NNTPSERVER=wizard
$ nn
---------
Release 6.7.3 (NOV)
  by Kim F. Storm, Peter Wemm, and Michael T Pins, 2005
...

$ wtf NOV
NOV: nothing appropriate

  I bet you know what NOV refers to here.

> It has 
> been a while since I worked with the Slackware package, but this problem 
> creeps in because I figured it was better to rely on people using a 
> proper hostname than to make people edit their hostname in a file. If 
> this turns out to be a real problem, then I might patch it. If you build 
> from source you can either specify a domain manually, or you can use 
> a file, or gethostname(), or uname. 

  Hmmm... no fqdn with uname either, yet nn still works.
$ uname -a
Linux sorceror 2.6.24-1-486 #1 Thu May 8 01:29:10 UTC 2008 i686 GNU/Linux

> In general, just adding a domain to the hostname should work. There seems 
> to be a good configuration option in the above text. 
>
> Actually, NN does realize that it is on Linux, but it is somewhat limited 
> by the behaviour of gethostname(). Adding a domain in resolv.conf isn't 
> a bad way of handling it. 

  <shrug>  Well, it works fine on FreeBSD (built 
from the default config in the ports collection) and 
Debian binary straight out of the box, so my interest 
was just idle curiosity.  As has been said by others, 
I already use the best newsreader anyway.  ;-)

-- 
☯☯ 

Technical Details
Message-ID: <slrng9u6r9.ggn.steve@sorceror.wizard.dyndns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!aioe.org!not-for-mail
References: <Jeff_Relf@Seattle.2008_Aug.6|3.18pm|V> <MPG.2304505ed025bba5989b07@66.250.146.159> <Jeff_Relf@Seattle.2008_Aug.6|6.16pm|X> <4hjk949bmhsiltcet892al4ls2vdo6net3@4ax.com> <g7dji9$qcp$1@registered.motzarella.org> <Jeff_Relf@Seattle.2008_Aug.6|8.13pm|a> <g7f110$7a1$1@blackhelicopter.databasix.com> <Xns9AF3622731811VeebleFetzer@127.0.0.1> <g7f7cg$8qa$1@blackhelicopter.databasix.com> <489b3314$0$81979$dbd4f001@news.wanadoo.nl> <slrng9migh.2pk.pjr@pjr.motzarella.org> <g7hlfk$9f3$1@blackhelicopter.databasix.com> <20080809075109.981@ilium.andrews-corner.org> <873alfkusd.fsf@ilium.andrews-corner.org> <lsadnUYYvP3TaQHVnZ2dnUVZ_hOdnZ2d@giganews.com> <20080809125625.646@ilium.andrews-corner.org> <slrng9qimt.ggn.steve@sorceror.wizard.dyndns.org> <20080809182158.203@ilium.andrews-corner.org> <slrng9ss86.ggn.steve@sorceror.wizard.dyndns.org> <roednQ8sndieDAPVnZ2dnUVZ_qPinZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrng9u6r9.ggn.steve@sorceror.wizard.dyndns.org>
Subject: Re: nn setup [was: Too lazy to re-learn TRN/TIN/SLRN?]
Date: Sun, 10 Aug 2008 12:46:20 -0400
From: Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com>
References: <Jeff_Relf@Seattle.2008_Aug.6|3.18pm|V> <MPG.2304505ed025bba5989b07@66.250.146.159> <Jeff_Relf@Seattle.2008_Aug.6|6.16pm|X> <4hjk949bmhsiltcet892al4ls2vdo6net3@4ax.com> <g7dji9$qcp$1@registered.motzarella.org> <Jeff_Relf@Seattle.2008_Aug.6|8.13pm|a> <g7f110$7a1$1@blackhelicopter.databasix.com> <Xns9AF3622731811VeebleFetzer@127.0.0.1> <g7f7cg$8qa$1@blackhelicopter.databasix.com> <489b3314$0$81979$dbd4f001@news.wanadoo.nl> <slrng9migh.2pk.pjr@pjr.motzarella.org> <g7hlfk$9f3$1@blackhelicopter.databasix.com> <20080809075109.981@ilium.andrews-corner.org> <873alfkusd.fsf@ilium.andrews-corner.org> <lsadnUYYvP3TaQHVnZ2dnUVZ_hOdnZ2d@giganews.com> <20080809125625.646@ilium.andrews-corner.org> <slrng9qimt.ggn.steve@sorceror.wizard.dyndns.org> <20080809182158.203@ilium.andrews-corner.org> <slrng9ss86.ggn.steve@sorceror.wizard.dyndns.org> <roednQ8sndieDAPVnZ2dnUVZ_qPinZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Aioe.org NNTP Server
Lines: 67
Reply-To: usenet2002@SNIP-THIS.twoloonscoffee.com
NNTP-Posting-Host: WhaQFweXC/duqPalqVgIgA.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
X-No-Archive: yes
X-Face: Zrm9At!%e{M_#Po+[-\; RFQih#L0/\!^6f8JS_1Nz,8`(@bR%|T,c)3:o6my`.sy$Rt)'
 ^)ec9cWp!MmeH^Gp|Afl)BkcH1GENCBqb&wZ$cdqN27uYfD=jU@1:vWXf|)LmuVKo?1wuS68KeDX&
 3,#wZP2$N1Ao!_'mZOws67
User-Agent: slrn/pre0.9.9-111 (Linux)