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
Pages: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: Changing Hostname, Changing Hostname< Next Oldest | Next Newest >
mrpgmr Offline





Group: Members
Posts: 3
Joined: Oct. 2006
Posted: Oct. 02 2006,23:16 QUOTE

Does anybody know how to automatically change the hostname in DSL linux?  I've been able to set IP addresses and change just about everything related to the network except the box name.  I'm running this on several computers (using the HD install) and modifying the /etc/hostname file seems to have no effect.  How do I do this in DSL?

Thanks
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 02 2006,23:31 QUOTE

use the boot option "host=newhostname"
http://damnsmalllinux.org/wiki/index.php/Cheat_Codes


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mrpgmr Offline





Group: Members
Posts: 3
Joined: Oct. 2006
Posted: Oct. 03 2006,00:49 QUOTE

I should have included that in my original post.  I tried the cheat codes, both through editing the menu.lst and manually editing it.  The boot loader I selected was GRUB.  Do I need to reimage the HD and select LILO for it to work?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 03 2006,01:23 QUOTE

no.  Adding boot options to grub is actually a lot easier to do than with Lilo, considering they can be added at boottime.

Are you editing the right menu.lst? I'm not sure about a traditional harddrive install, but in frugal the file is in the boot directory of your dsl partition


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mrpgmr Offline





Group: Members
Posts: 3
Joined: Oct. 2006
Posted: Oct. 03 2006,01:34 QUOTE

Actually I think you got me on the right track.  I edited the boot script in the /opt directory to include the entry

hostname my_host_name

and it worked.  I still have no idea why the cheat code would not work, but it looks like the HD install will always use that file.  Thanks for the quick response and the help.
Back to top
Profile PM 
5 replies since Oct. 02 2006,23:16 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Changing 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