Bekijk de volledige versie : Problem with save rc.local
joe12345
01-08-2008, 00:19
Hi,
i have a problem with "/opt/etc/rc.local".
I edit it with "sudo vi rc.local". Then I changed the hdparm... lines to "hdparm -S 60 ....". But I cant save this file now. I use in the vi editor ":w", but it doesnt save my file. Can some one help me?
Joe
Hi,
i have a problem with "/opt/etc/rc.local".
I edit it with "sudo vi rc.local". Then I changed the hdparm... lines to "hdparm -S 60 ....". But I cant save this file now. I use in the vi editor ":w", but it doesnt save my file. Can some one help me?
Joe
Look here: http://wl700g.homelinux.net/drupal/?q=node/134 :D
There is also a FAQ in it. I guess it should say that, before you try to edit rc.local, you should have read http://wl700g.homelinux.net/drupal/?q=node/187 :eek:
Maybe Kfurge can add this to his neat FAQ list.
Regards,
Marc
joe12345
02-08-2008, 09:31
Thank You.
It works very well!!! :D
I have only one question:
If I use "sudo bash -l" my system takes an error like "username is not in the sudoers file.....". Where can I found this file? Can I edit this sudoers file and how?
I have found this: http://wl700g.homelinux.net/drupal/?q=node/84
But I dont want to have my username with administrative functions, I want to make it like a normal user. How can I do that?
Hi,
Probably this contains the answer:
http://wl500g.info/showthread.php?p=42997&highlight=username+sudoers+file#post42997
Regards,
Marc
joe12345
05-08-2008, 12:22
Hi
Thanks. I m a linux noob so i have this noob questions. But thanks for answer this. :D
Best regards,
Joe
Maybe Kfurge can add this to his neat FAQ list.
Sorry, add what? I couldn't follow.
- K.C.
Sorry, add what? I couldn't follow.
- K.C.
Kfurge, I have answered so many questions like this (Goodness! I like to edit rc.local, and guess... it does not work! Verrry strange! How come?), that I think it would be nice to have this question (sort of) in your FAQ.
I always answer with some variety of this:
"before you try to edit rc.local, you should have read http://wl700g.homelinux.net/drupal/?q=node/187"
I don't think that the questions will disappear, but at least I could link them to the FAQ.
Thanks a lot,
Regards,
Marc
Maybe Kfurge can add this to his neat FAQ list.
How about this... Check out the latest revision of
http://wl700g.homelinux.net/drupal/?q=node/187
which now points you to the FAQ.
FWIW, The FAQ already had this in it: Q. I've really messed up my rc.local and now my router won't boot. How can I fix it?
- K.C.
How about this... Check out the latest revision of
http://wl700g.homelinux.net/drupal/?q=node/187
which now points you to the FAQ.
FWIW, The FAQ already had this in it: Q. I've really messed up my rc.local and now my router won't boot. How can I fix it?
- K.C.
Dear KFurge, I really appreciate your effort. But, pointing to the FAQ at the very place where it is described what to do to get a writable /opt directory, and having a FAQ-entry about a messed up rc.local is, i.m.h.o., a step too far.
The problem really is that some people like to mess up their rc.local, but can't update the rc.local, because they missed http://wl700g.homelinux.net/drupal/?q=node/187
Rather I would like to see a FAQ-entry about this:
"I can't edit my rc.local, how come?"
Just installing the firmware gives you a read-only version of /opt. If you want to change anything, you should start here http://wl700g.homelinux.net/drupal/?q=node/187
Or sort of.
regards,
Marc