Re: Boot problem - hostname

From: gauthic (gauthic_at_cable.net)
Date: 06/17/04


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
>> work.
>
> 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.



Relevant Pages

  • Re: Boot problem - hostname
    ... >> I wanted to change the hostname of the machine, ... > I'll have to assume you are using SuSe 9.1. ... I tried YAST for about the third time and on that occasion it ... entire line didn't get rid of the unprintable characters. ...
    (alt.os.linux.suse)
  • Re: [SLE] Networkcard
    ... > Should the hostname be the IP address from my ISP? ... If the default gateway points to a local broadband ... router, based on the address assigned by dhcp, that should be good. ... SuSE user since 1998 ...
    (SuSE)
  • Mysterious change in hostname
    ... Since I started using Linux in my own PC (this was back in Suse 9.3 times) ... the hostname of my PC has always been "a8" which I had set manually when ... A few days ago I changed my ADSL modem. ... I did no modifications to OpenSuse ...
    (alt.os.linux.suse)
  • Re: [SLE] SUSE 9.1 hostname and domain
    ... > hostname -f will give you the long name, ... Redhat gives us the name with the full domain added on, ... understanding that hostname simple calls gethostname() to do it. ... it's the way the networking is configured by default by SUSE, ...
    (SuSE)
  • sux in SUSE 9.1 - unknown host and xauth error
    ... Though sux does appear to work I get the following dialog with xauth error. ... This is a clean install of SUSE 9.1 ... hostname: Unknown host ...
    (alt.os.linux.suse)