Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: setting the hostname< Next Oldest | Next Newest >
rhackenb Offline





Group: Members
Posts: 17
Joined: Jan. 2004
Posted: Feb. 13 2004,22:36 QUOTE

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
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Feb. 14 2004,03:45 QUOTE

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
Back to top
Profile PM 
pipo Offline





Group: Members
Posts: 16
Joined: Jan. 2004
Posted: Feb. 14 2004,22:02 QUOTE

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
Back to top
Profile PM 
rhackenb Offline





Group: Members
Posts: 17
Joined: Jan. 2004
Posted: Feb. 16 2004,04:41 QUOTE

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
Back to top
Profile PM 
3 replies since Feb. 13 2004,22:36 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: setting the hostname

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code