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: Noob topic: Changing /etc/hosts file< Next Oldest | Next Newest >
underdone Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Aug. 2006
Posted: Aug. 23 2006,23:11 QUOTE

I have been working with DSL (very cool bit of kit) for about 2 days now and I am really struggling. I am getting the first of several linux boxes connected to a Windows server and I want to change the name of the box in the hosts file.

I have a DSL Frugal HDD install with the toram option enabled and I can't access the hosts folder. I know this a very basic question but how to I write to the hosts file?

Is it because the file is held in RAM and can't be altered whilst in RAM? I have tried changing the permissions but I can't seem to change anything. It just keeps coming up with read-only or permission denied.

Is there a work around or do I have to reinstall without the toram option and then reinstall once I have the thing up and running.

Many thanks for anyone helping out!!

Best wishes
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 24 2006,03:19 QUOTE

dsl 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 
underdone Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Aug. 2006
Posted: Aug. 25 2006,23:38 QUOTE

thanks for the reply - unfortunately I don't appear to be able to use cheat codes with a hdd install.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Aug. 25 2006,23:56 QUOTE

Uhh.. you say you are using a frugal installation on your hdd?
Just modify your bootloader's append line then.
Back to top
Profile PM 
underdone Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Aug. 2006
Posted: Aug. 26 2006,01:59 QUOTE

Thanks for the response - I tried that, reran lilo and it just won't stick. One thing I am not sure about is where to put the extra line in and what format it should be...

append = "host=mylinuxbox"

or

host=mylinuxbox (which never seems to work - just get a error message)

Thanks
Back to top
Profile PM 
6 replies since Aug. 23 2006,23:11 < 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: Noob topic: Changing /etc/hosts file

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