Re: [newbie] something like autoexec.bat??
Hi Ed, Thanks for a detailed explanation Much appreciated Johan - Original Message - From: ed tharp [EMAIL PROTECTED] To: newbie [EMAIL PROTECTED] Sent: Saturday, October 11, 2003 8:59 PM Subject: Re: [newbie] something like autoexec.bat?? On Sat, 2003-10-11 at 03:14, Michael Adams wrote: On Thu, 9 Oct 2003 22:05:10 +0200 Johan [EMAIL PROTECTED] wrote: snip Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] something like autoexec.bat??
On Sat, 2003-10-11 at 03:14, Michael Adams wrote: On Thu, 9 Oct 2003 22:05:10 +0200 Johan [EMAIL PROTECTED] wrote: Hi, Does linux use the same type of file as autoexec.bat in dos/win to perform some operations on startup. I would appreciate some input here please. Maybe some example? Thanks Johan Late post, sorry. The system loads the kernal and all its modules then runs init using the info it finds in /etc/inittab. This file is text and mostly human readable. As with most config files comment lines start with #. Once the system has read which mode (0 to 6) it is meant to start into then it goes to the relevant folder and reads each file in numeric order. - Thus if it is starting in graphics mode (5), it looks into /etc/rc.d/rc5.d/ and runs these files in order. Each is a shell script and mainly they each run further scripts found in /etc/rc.d/init.d/ Pay particular attention to the last one in the directory. /etc/rc.d/rc5.d/S99local Read this one if you wish to add to the startup. Also note that /etc/rc5.d/ is a link to /etc/rc.d/rc5.d/ (windows refugees read shortcut) and /etc/init.d/ is a link to /etc/rc.d/init.d/. These are not there for your convenience really but for backwards compatability. All taken together they equate to autoexec.bat and win.ini but allow more flexibility. You could if you wish have several new rcX.d directories which allow you to start / stop / restart in different modes. You only need to append the new ones to /etc/inittab in the apropriate place, create (or copy) the rc7.d directory and edit. To switch from one mode to another type init X with X being the mode you wish to switch too. The more useful ones are 0 = shutdown 1 = single user startup 3 = command line startup 5 = normal graphics startup 6 = reboot Most of the tricks performed by webmin and other config GUI tools rewrite these startup scripts. Also in a terminal type:- man man man init man dmesg Purists will probably have a far more thorough explanation but these are the main startup script files. Things that get loaded into the kernal during its boot phase enter into the realm of FM, and i don't pretend to understand this fully (read/var/log/dmesg to see what happens then). HTH a bit much for a newbie tho -- ++ Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] something like autoexec.bat??
On Thu, 2003-10-09 at 22:05, Johan wrote: Hi, Does linux use the same type of file as autoexec.bat in dos/win to perform some operations on startup. I would appreciate some input here please. Maybe some example? Look into /etc/rc.local. That is where you can add startup-stuff. Paul -- You are slower than a herd of turtles stampeding through peanut butter http://www.nlpagan.net - Linux Mandrake - Ximian Evolution Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] something like autoexec.bat
Many thanks to the respondents in this matter. Many ways to kill a cat?? Yep, and a whole lotta cats ... -- Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] something like autoexec.bat??
On Thu, 2003-10-09 at 16:37, Paul wrote: On Thu, 2003-10-09 at 22:05, Johan wrote: Hi, Does linux use the same type of file as autoexec.bat in dos/win to perform some operations on startup. I would appreciate some input here please. Maybe some example? Look into /etc/rc.local. That is where you can add startup-stuff. Paul and maybe /etc/rc.d/rc.local -- ++ Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] something like autoexec.bat??
On Thursday 09 October 2003 04:37 pm, Paul wrote: On Thu, 2003-10-09 at 22:05, Johan wrote: Hi, Does linux use the same type of file as autoexec.bat in dos/win to perform some operations on startup. I would appreciate some input here please. Maybe some example? Look into /etc/rc.local. That is where you can add startup-stuff. Also, the autostart folder if you use the KDE environment. Just in case you want to automatically start x apps or the like. -- Bryan Phinney Software Test Engineer Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com