HD Install :: setting the hostname
When I do an hdinstall on a machine, the machine name defaults to 'box'. I would like to know how to set the desired hostname on bootup.
I have created a file /etc/HOSTNAME and put in it the name that I want the machine to have. Each time I boot up the machine, I have to type in
hostname -F /etc/HOSTNAME
This will rename the machine for the session but it doesn't stick.
Any suggestions?
thanks,
bob
My suggestion is to push the "Search" button located at the top of this forum and type the word "hostname" into the keyword search form.
Then choose "Search all open forums" and "Search from the begginning and newer".
Or instead you could also just click here:
http://damnsmalllinux.org/cgi-bin....ostname
Try to look at the file
/etc/hosts
Normally, you'll find a line like this :
127.0.0.1 hostname localhost
where hostname is the name you'll give to your hostname
As it turns out, the file that sets all kinds of things in DSL is
/etc/init.d/knoppix-autoconfig
There is a line in there that reads 'hostname box'. This gets changed to whatever you want it to be.
Thanks for the suggestion to do a search.
-- bob
original here.