Editing lilo.confForum: User Feedback Topic: Editing lilo.conf started by: Thunderer Posted by Thunderer on Jan. 21 2006,08:10
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? Posted by AwPhuch on Jan. 23 2006,23:20
Put in /opt/bootlocal the ifconfig infoifconfig 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 Posted by Thunderer on Jan. 25 2006,04:31
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?
|