Bootlocal.sh, how to start apps that require rootForum: Apps Topic: Bootlocal.sh, how to start apps that require root started by: olliraa Posted by olliraa on April 09 2005,13:48
How can I start apps that require root priviledges from bootlocal.sh -file. I would like to run pon dsl-provider, sshd and some wine related stuff at boot, but dont know how to do that. I have added the lines to the bootlocal.sh, but getting errors due to permission restrictions.
Posted by mikshaw on April 09 2005,13:53
are you sure the errors are permissions-related? /opt/bootlocal.sh is run by root during startup, so it should do anything you put in that file
Posted by olliraa on April 09 2005,14:16
Sure about that, but what I really mean is that how can I set the login to automatically be root at startup. Or have I understood totally wrong. I run server and want it to be totally automatic, so if I boot it remotely it will start all the necessary apps at boot.
Posted by mikshaw on April 09 2005,14:30
Use the "2" boot option to log in as root without X auto-starting. This is probably the ideal way for a server.
Posted by olliraa on April 09 2005,14:54
I am very sorry, but how do I do that. Thanks for your patience
Posted by mikshaw on April 10 2005,00:09
If you are running LiveCD, you should see a prompt at the beginning which says "boot:"Type in "dsl 2" and press enter to continue the boot process. If you have a harddrive install, you can add this to your boot string in either lilo.conf (Lilo) or menu.lst (Grub) Posted by olliraa on April 10 2005,05:59
Thank you Just one more: Do I just add "dsl 2" somewhere in lilo.conf, because there wasn't any "place" that would have been easy to "spot". There is the default boot coice and then the old linux image boot option, but where should I put this "dsl 2"?
|