X windows hostname

Ulrich Fahrenberg uli at math.auc.dk
Wed Nov 20 06:18:12 PST 2002

On Wed, 20 Nov 2002, Richard Pinnell wrote:

> When ever I start x windows on a LFS 4 based sytem it
> comes up with:
> hostname
> then after a delay of about 10 secs says:
> unknown host.
> later when kde is starting it says:
> Can't get hostname your system is serverly
> misconfigured
> if I type:
> hostname at the command prompt it returns
> Dark_Moon (my host name)

The startx script calls `hostname -f', not `hostname'. Try to do this
in a shell; it will probably give the same delay and output as startx.
See `man hostname' for the difference between `hostname', `hostname
-f' and `domainname'.

I recently had the same problem, and the cause was my /etc/hosts. It
looked like this:

	uli:~ $ cat /etc/hosts.old localhost.localdomain localhost uli.hedevej.home

I had another look in The Book and changed it to say

	uli:~ $ cat /etc/hosts localhost.localdomain localhost uli.hedevej.home uli

Note the extra `uli' in the second line.

This solved the problem.


> Do you Yahoo!?


Ulrich Fahrenberg -- http://www.math.auc.dk/~uli

Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list