Re: How to make hostname survive boot
Len Lawrence <lcl-s9phx+4gxdMG2Il/[email protected]> Sat, 24 Apr 2010 07:52:34 +0100
| Newsgroups | gmane.linux.mandrake.newbie |
|---|---|
| Message-ID | <[email protected]> |
Ben wrote: > 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 > ____________________________________________________ > Thanks benja I managed to fix it earlier but will keep a note of your recommendations. Bound to forget how the next time it comes up. I shall try that on the new machine if it ever sees the network. Cheers Len ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________