LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-23-2008, 12:13 PM   #1
mikedavid00
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Rep: Reputation: 0
Looking for Linux start-up tutorials. Help!


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.

I found this article:

http://www.luv.asn.au/overheads/linux-startup.html

And while it helps, I need a bit more info.

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.
 
Old 01-23-2008, 12:15 PM   #2
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
That is something that varies between distros, everyone has their own way of doing it.
 
Old 01-23-2008, 01:51 PM   #3
mikedavid00
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by elliott678 View Post
That is something that varies between distros, everyone has their own way of doing it.
Oh great..

I'm also noticing that I can't even find the files to even view. They seem to be in compressed files that only get unpacked at run time.

What would you say has the most documentation on these subjects?
 
Old 01-23-2008, 02:09 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by mikedavid00 View Post
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.
Check out the Hands on Guide at http://tldp.org/guides.html

You can also see how Slackware boots up. Slackware has some of the best readable startup scripts. Check them out.
 
Old 01-23-2008, 02:16 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 01-23-2008, 11:29 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Err, i think that's numerical order surely ?
 
Old 01-24-2008, 10:49 AM   #7
mikedavid00
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
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.
 
Old 01-24-2008, 01:51 PM   #8
stoobers
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Thumbs up How what boots is determined.

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.

Drop me a line if there are any questions.

Thanks!


--
stoobers@gmail.com
Christopher Stubban
 
Old 01-24-2008, 01:53 PM   #9
stoobers
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Thumbs up video resolution

You can find this in:
/etc/X11/xorg.conf

There is a program to determine it for you:
sax2 (run as root)
 
Old 01-24-2008, 08:02 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by chrism01 View Post
Err, i think that's numerical order surely ?
Alphabetical, as I understand it. e.g. everything beginning with "K" for kill runs before the ones beginning with "S" for start.
 
Old 01-25-2008, 01:23 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 01-25-2008, 08:09 AM   #12
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by chrism01 View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Suggestions for Tutorials - Where to start? RavenLX Programming 8 02-26-2007 07:17 PM
Linux tutorials bambolin General 2 03-18-2006 01:41 PM
linux tutorials inspiredbymetal Linux - Newbie 7 07-17-2005 08:11 PM
any quick start tutorials for mandrake? furtivefelon Mandriva 4 12-25-2004 03:38 PM
tutorials for linux ftcnt Linux - General 2 05-06-2004 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration