Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7391 - Alter docs to stop users cocking up /etc/hostname
Summary: Alter docs to stop users cocking up /etc/hostname
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 All
: Normal minor (vote)
Assignee: Sherman Boyd (meekrob) (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-02 15:36 UTC by Alistair McDonald
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair McDonald 2002-09-02 15:36:55 UTC
I followed the excellent gentoo 1.2 installation guide at 
http://www.gentoo.org/doc/build.html. However, in the section entitled "Final steps: 
/etc/hostname ", I missed the fact that the hostname should be in a file with a single line. I added a 
CR (or is that a LF) on the end. 

Oh, the woe this caused me! Apache failed as mod_unique 
complained about hostname resolution. Worse, kde failed to start as the DCOP server complained 
too (though neither of them actually told me there's a CR (or was it a LF) in the hostname. They let me 
wade through masses of google and forums.gentoo.org searches before I came to the correct 
result.

Other people have fallen over this, see the URL in the subject or at least one other 
post on this subject on the gentoo forums (plus my woes).

Suggestion: either make it REALLY, 
REALLY obvious that there should be NO CR/LF  in the hostname file, or if the hostname command is 
available, tell the user to  use that instead.

(Just trying to make gentoo a better place, I 
lost a lot of hair through my own stupidity, I don't want anyone else to do the same :)
Comment 1 SpanKY gentoo-dev 2002-09-02 16:22:41 UTC
maybe a good solution is to do a code listing that says:
# echo mymachine.mydomain.com>/etc/hostname
and then put at the end 'make sure the /etc/hostname' file does not have a CR 
or LF at the end of the file
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2002-09-06 00:10:26 UTC
Fixed in the 1.4 install guide.

//ZhEN