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: Changing Hostname with HD Install, What config file controls the hostname?< Next Oldest | Next Newest >
dmoisan Offline





Group: Members
Posts: 3
Joined: Jan. 2004
Posted: Jan. 08 2004,22:18 QUOTE

I've got DSL 0.5.1.1 and I need to know how to permanently change the hostname on an already-installed system.

I can do hostname <whatever> or cat <whatever> > /etc/hostname but it will not stick.

What configuration file controls the hostname?

Regards,

Dave
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 09 2004,01:55 QUOTE

It is in the file /etc/init.d/knoppix-autoconfig   Search for "Set hostname"

# Set hostname
hostname box
Back to top
Profile PM WEB 
caulktel Offline





Group: Members
Posts: 185
Joined: Sep. 2003
Posted: Jan. 12 2004,04:03 QUOTE

Roberts,

    Thanks for the info on changing the hostname, I was wondering the same thing, and it worked great! Thanks again.

Joel
Back to top
Profile PM 
dmoisan Offline





Group: Members
Posts: 3
Joined: Jan. 2004
Posted: Jan. 22 2004,04:07 QUOTE

Worked for me.  Thanks!
Back to top
Profile PM 
markgamber Offline





Group: Members
Posts: 13
Joined: Jan. 2004
Posted: Jan. 22 2004,06:31 QUOTE

Dont't forget to change the hostname in /etc/hosts, too! The default, I believe is

127.0.0.1      box localhost
Back to top
Profile PM 
4 replies since Jan. 08 2004,22:18 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Changing Hostname with HD Install

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