Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok I need a tutorial which describes the boot process of a Linux system. Sorry.. I should 'start-up' as boot articles seem to be fairly low level and not what I'm looking for.
For instance, video detection. I need to know the boot process, where X11 gets invoked, when the OS boots, etc. and mostly, what script controls the sequence of startup programs.
I'm having a lot of trouble with this. Any help would be great.
For instance, video detection. I need to know the boot process, where X11 gets invoked, when the OS boots, etc. and mostly, what script controls the sequence of startup programs.
go to /etc. and look at the rc directories. Somewhere, there will be names like rc4, rc5, etc. The scripts in these get called based on the runlevel specified. eg. for RL5, every script in rc5.d gets executed in alphabetical order. The script names are prefixed with K (kill) or S (start) to control what stuff gets shutdown, and what gets started for each runlevel.
On some systems, there is a file named "inittab" which defines various things including the default run level. I just looked in a Ubuntu system and could not immediately identify the equivalent.
Googling using something like "Linux startup" will find a lot more stuff.
go to /etc. and look at the rc directories. Somewhere, there will be names like rc4, rc5, etc. The scripts in these get called based on the runlevel specified. eg. for RL5, every script in rc5.d gets executed in alphabetical order. The script names are prefixed with K (kill) or S (start) to control what stuff gets shutdown, and what gets started for each runlevel.
On some systems, there is a file named "inittab" which defines various things including the default run level. I just looked in a Ubuntu system and could not immediately identify the equivalent.
Googling using something like "Linux startup" will find a lot more stuff.
Wow! That clears things up greatly! I've spent hours yesterday and this morning reading about this and peicing it together in my head. But I feel you summed it up best. I'm trying to use a version that is based off slackware 10.0 (it's uncompressed so I can brows folders and read these files while at work).
I've browsed all the files I can and cannot seem to find reference to the XFree/Xorg system. I would like to find the routine that gets the video reselution from the Xorg/XFree86/XVesa.
I see serveral files with several monitor resolutions, but I'm having so much difficulty finding at what point this file gets created and when it is used.
Any help would be greatly appreciated. I've spent about 10 hrs total reading since yesterday.
On Suse, all the start up scripts are in /etc/init.d/
If you copy a script into that directory, it has the potential to be picked up by a configuration tool which links the scripts into their respective rc directory.
Depending on what rc directory the link is in, the script will be called at that run level.
There is usually some kind of pleasant looking program that manages the copying / linking of the startup script to the appropriate rc.
in suse, they directory structure is as follows:
/etc/init.d/rc0.d
/etc/init.d/rc1.d <--run level 1
...
/etc/init.d/rc5.d <--run level 5
This should be similar in all distros, except for the init.d thing.
I think it's S for startup, K for shutdown, then (within either list), it's numerical order in order to satisfy dependencies eg networking before DNS on boot up.
I think it's S for startup, K for shutdown, then (within either list), it's numerical order in order to satisfy dependencies eg networking before DNS on boot up.
I believe we are both correct....
k01
k02
k03
s01
s02
s03
(alphabetical order...and numerical order after the first letter)
<<EDIT>>: In a typical rc.X directory, there can be several scripts (links, actually) that begin with K or S and the same number. eg these:
Quote:
S51avahi-daemon
S51fuse
S51netfs
S51portmap
get run in alphabetical order.
Last edited by pixellany; 01-25-2008 at 11:40 AM.
Reason: More information
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.