Re: Boot problem - hostname
From: gauthic (gauthic_at_cable.net)
Date: Wed, 16 Jun 2004 23:44:16 GMT
On Thu, 17 Jun 2004 00:16:36 +0000, Brian D. Lees wrote:
> anc wrote:
>> Brian D. Lees wrote:
>>> I wanted to change the hostname of the machine, and tried using the
>>> command 'hostname' followed by the required name and this worked OK but
>>> whenever I rebooted I lost the hostname.
>>> I read that at bootup the hostname is taken from the /etc/hostname file
>>> so I
>>> edited /etc/HOSTNAME and changed the hostname. Now when I boot it says
>>> 'setting hostname to' and then 3 control characters followed by the
>>> hostname I put in the file. I can then only start a 'failsafe' session
>>> because the control characters cause problems to some of the processes.
>>> I have looked at the /etc/HOSTNAME file again and even vi does not show
>>> anything before the name I put in.
>>> Any suggestions, because at the moment I have to reset the hostname using
>>> 'failsafe' every time I boot in order to get into the machine!
>> I'll have to assume you are using SuSe 9.1. All I can say is have a look
>> in the admin handbook under the network chapter. With my version SuSe 8.2
>> the file is /etc/hosts not hostname and each host consists of an IP
>> address followed by the hostname
>> i.e 127.0.0.1 localhost
>> Perhaps it is the same in 9.1 for the file hostname. Try an IP address a
>> space then your hostname, you can always change it back if it doesn't
> You are right, it is 9.1. I managed to sort the problem out, but why I
> don't know! I tried YAST for about the third time and on that occasion it
> had the unprintable characters before the hostname and I was able to delete
> them. What I don't understand is that using a text editor and deleting the
> entire line didn't get rid of the unprintable characters. Still, one down
> to experience I guess!
Well I hope you used Vi or similar editor. 'casue if you used some GUI
based editor, it may have added some special characters that you saw.