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: Editing lilo.conf, trying static IP, can't add nodhcp...< Next Oldest | Next Newest >
Thunderer Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Jan. 21 2006,08:10 QUOTE

Hello all. I've successfully completed a frugal install of DSL on a Pentium 200 with a 2.5 GB HD and 64 MB RAM. It seems to work fine and I want to assign a static IP. I know this is in the FAQ, but the first part said "add "nodhcp" to the APPEND line in your bootloader" and I didn't know what this meant. After searching the forums I found a .couple of threads on this, all basically saying the same thing: Edit the /etc/lilo.conf file and run lilo. Easy enough I thought, so I did a "sudo su" just to be sure and tried it. Fired up vi, made the change and.....it told me the file was read only! Checked the permissions, and they are set to 640, so I should have write priviledges. Did a "whoami" and the answer came back "root". The command prompt looks like this:

bash-2.05b#

Which is different from the default. It changed after I did "sudo su". Tried again, still write protected. Tried beaver, opened lilo.conf read only. So my question is where exactly is the lilo.conf that you can actually change? I've been trying to edit this file for about 5 hours now with no luck. tried searching the forums and found this thread, which ends with the guy asking the same question and getting no reply.

So what exactly am I doing wrong?
Back to top
Profile PM 
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: Jan. 23 2006,23:20 QUOTE

Put in /opt/bootlocal the ifconfig info

ifconfig eth0 ip addy
ifconfig eth0 subnet mask
ifconfig eth0 default gateway
ifconfig eth0 up

or whatever command there is to set the ethernet device to it and it will set "/static"/ at boot time

Brian
AwPhuch


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
Thunderer Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Jan. 25 2006,04:31 QUOTE

Thanks for the reply. I already have the info in /opt/bootlocal.sh and it works.....for a while. After a few hours it always seems to change the IP address. Any way to make the change stick?
Back to top
Profile PM 
2 replies since Jan. 21 2006,08:10 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Editing lilo.conf

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