Thread View: news.software.nn
1 messages
1 total messages
Started by Aaron W. Hsu
Sun, 10 Aug 2008 06:56
Re: nn setup [was: Too lazy to re-learn TRN/TIN/SLRN?]
Author: Aaron W. Hsu
Date: Sun, 10 Aug 2008 06:56
Date: Sun, 10 Aug 2008 06:56
61 lines
4508 bytes
4508 bytes
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: >> On 2008-08-09, Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com> wrote: >>> In <20080809125625.646@ilium.andrews-corner.org>, on Sat, 09 Aug 2008 >>> 13:01:03 +1000, andrew, andrew@ilium.invalid wrote: >>> >>>> andrew@ilium~$ hostname --fqdn >>>> ilium.andrews-corner.org >>>> >>>> nn seems to be reading: >>>> >>>> andrew@ilium~$ hostname >>>> ilium >>>> >>>> Is there a way around this? >>> >>> I would think you'd want a line something like this >>> in /etc/hosts: >>> >>> 192.168.x.x ilium.andrews-corner.org ilium >> >> You would think that wouldn't you :-). Exactly what I have but nn seems >> to run from the actual 'hostname' command which returns 'ilium' on my >> Slackware system. > 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(). 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. 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. Aaron -- +++++++++++++++ ((lambda (x) (x x)) (lambda (x) (x x))) +++++++++++++++ Email: <arcfide@sacrideo.us> | WWW: <http://www.sacrideo.us> Scheme Programming is subtle; subtlety can be hard. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads