Article View: news.software.readers
Article #189532Re: (was Re: setting FQDN in /etc/hosts)
From: Whiskers
Date: Sun, 20 Aug 2006 12:29
Date: Sun, 20 Aug 2006 12:29
106 lines
5472 bytes
5472 bytes
On 2006-08-20, Thufir <hawat.thufir@gmail.com> wrote:
> Whiskers wrote:
snip
>> Something happened that means that now Leafnode can detect an acceptable
>> hostname for the system. It should run happily now.
>
> Only because I uncommented the hostname setting of the
> /etc/leafnode/config file.
As I understand it, changes to the hostname setting within leafnode's
config should not have any effect on what leafnode reads as the hostname
of the system it is running on.
It would be easier to spot where your leafnode is getting the system
hostname from, if you put different values in /etc/leafnode/config and
/etc/hosts - you'll see from what I posted earlier that on my system, the
system's hostname is "tavy.mobile.private", which is set on boot-up by an
entry in /etc/sysconfog/network and is read thereafter from /etc/hosts.
The 'hostname' setting within my /etc/leafnode/config is
hostname = ID-107770.user.individual.net
which is used by leafnode only for constructing Message-ID headers (and
for the Path header which is usually dropped or re-labeled by the upstream
server, which allocates it's own starting entry for the Path header).
In my opinion, it is very unfortunate that the setting used by leafnode
for creating an FQDN that is different from the hostname of the system it
is running on, has been given the label 'hostname' in the config file; why
not use FQDN as the label, as that is what it is used for?
>> Curiously, the command prompt doesn't reflect the same hostname. Try
>> typing in this command (at a normal user prompt, not root for the time
>> being) and show us what happens to the prompt (it will be only temporary):
>>
>> PS1='[\h \t \u \w]$ '
>>
>> (PS1 is the system variable that tells your 'shell' what to put in the
>> prompt).
>
> [thufir@localhost ~]$ PS1='[\h \t \u \w]$ '
> [localhost 00:15:04 thufir ~]$ date
> Sun Aug 20 00:15:07 IST 2006
> [localhost 00:15:07 thufir ~]$
> [localhost 00:15:09 thufir ~]$
>
>
> (I changed the prompt after editing other files, FWIW.)
Your system is not picking up the hostname setting that you are trying to
establish. If it were, then that is the hostname that would appear in the
prompt where you have 'localhost'.
For comparison, I get:
[mark@tavy ~]$ PS1='[\h \t \u \w]$ '
[tavy 12:51:49 mark ~]$
(I wanted to make sure that the default setting for your shell prompt
wasn't '[\u@localhost \w]$ ' instead of '[\u@\h \w]$ ').
As I've suggested elsewhere, I think your file /etc/host.conf should
include the line
multi on
to make sure that all the possible hostnames in /etc/hosts are picked up,
rather than just one.
> [...]
>> For what it's worth, here are some shell commands and their output from my
>> system:
> [...]
>
> Thanks :)
>
> I didn't have a chance today, won't have time tomorrow, hopefully will
> have time on monday to research this thouroughly.
It's best to learn slowly and in your own time.
These are really 'Linux basics' rather than anything to do with newsreader
software. If you want to get involved in your operating system's inner
workings like this, rather than stick to using the latest and greated GUI
applications, then I suggest that you do some reading. I've found 'The
Linux Cookbook' by Micheal Stutz (publisher No Starch Press) to be very
helpful, along with 'Running Linux' (multiple authors, publisher
O'Reilly). There are also many on-line resources, including 'HOWTOs' eg
at 'the Linux documentation project' <http://www.tldp.org/>. Your own
system should have a manual file for most of the essential tools - just
type
man leafnode
at the command line, for example.
This highly-regarded book can be downloaded freely or read on-line, and may
even be on the installation CDs for your distro
<http://linux.2038bug.com/rute-home.html>.
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<t51mr3-7hc.ln1@ID-107770.user.individual.net>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1155922996.353013.89150@h48g2000cwc.googlegroups.com> <6lihr3-rpm.ln1@ID-107770.user.individual.net> <1155955717.407500.277610@m73g2000cwd.googlegroups.com> <e2fjr3-6lc.ln1@ID-107770.user.individual.net> <1156008712.141817.181590@h48g2000cwc.googlegroups.com> <alekr3-krk.ln1@ID-107770.user.individual.net> <1156054774.795134.259010@p79g2000cwp.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <t51mr3-7hc.ln1@ID-107770.user.individual.net> Subject: Re: (was Re: setting FQDN in /etc/hosts) Date: Sun, 20 Aug 2006 13:29:17 +0100 From: Whiskers <catwheezel@operamail.com> References: <1155922996.353013.89150@h48g2000cwc.googlegroups.com> <6lihr3-rpm.ln1@ID-107770.user.individual.net> <1155955717.407500.277610@m73g2000cwd.googlegroups.com> <e2fjr3-6lc.ln1@ID-107770.user.individual.net> <1156008712.141817.181590@h48g2000cwc.googlegroups.com> <alekr3-krk.ln1@ID-107770.user.individual.net> <1156054774.795134.259010@p79g2000cwp.googlegroups.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 106 X-Trace: individual.net 9p6nuPsgfduUo9/uhwAxDwgZjKnTu2TC3B2kOs/b9naaGP1w5D X-Orig-Path: ID-107770.user.individual.net!news X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p& g^8<z5>HA User-Agent: slrn/0.9.8.1 (Linux)