setting the hostnameForum: HD Install Topic: setting the hostname started by: rhackenb Posted by rhackenb on Feb. 13 2004,22:36
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 Posted by cbagger01 on Feb. 14 2004,03:45
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 > Posted by pipo on Feb. 14 2004,22:02
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 Posted by rhackenb on Feb. 16 2004,04:41
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 |