Re: How to make hostname survive boot

Ben <[email protected]> Fri, 23 Apr 2010 21:30:18 -0500
Newsgroups gmane.linux.mandrake.newbie
Message-ID <[email protected]>
Len Lawrence wrote:
> The brain is beginning to congeal.  My Dell XPS 710 has just given up 
> the host so over to the laptop.  In the past I have successfully 
> changed the hostname such that it survived a reboot.  Cannot remember 
> the prescription.  Ran "hostname canopus" as root and aliased 
> localhost to canopus in the /etc/hosts file.
>
> viz:
> x.x.x.x canopus
> 127.0.0.1 localhost canopus
>
> It survives repeated logins but not a reboot.  According to what I 
> read on the web the initialization routines read /etc/hostname at boot 
> time.
>
> What else should be done?
>
> Len

 /etc/sysconfig/network to set hostname. 
/etc/sysconfig/network-scripts/ifcfg-eth0 (your ifcfg-eth0 file name may 
be different)  NEEDHOSTNAME=no if it doesn't stick. or the gui option is 
mcc>network/internet>hosts definitions or drakhosts from a console

hope that helps
benja

>
>
>
> ____________________________________________________
> Want to buy your Pack or Services from Mandriva? Go to 
> http://store.mandriva.com
> Join the Club : http://www.mandrivaclub.com
> ____________________________________________________
>

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________