Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-24-2004, 10:43 PM   #1
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Rep: Reputation: 30
Understanding X??

I was just curious to know, what happens when you load X from the console or a DM? I know startx is a frontend for xinit, but other than that I am clueless. Basically what is the steps (startx uses xinit, xinit uses...) from startx to a window manager?

A Slacker
Old 02-24-2004, 11:21 PM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Basically, the objective is to start the X server and the clients necessary or desired and take care of other administrative details. The X server can actually be started directly, but xinit is usually used to do so and startx is a wrapper to that, as you mention. 'startx' is invoked, it looks to ~/.xinitrc and various other files to see which servers and clients to run, while taking care of other details, and starts them. If you use xdm or the various other ?dms, you're doing something similar, but cutting 'startx' and '.xinitrc' out of the loop and using xdm's configs. But it still boils down to an Xserver and clients.

So startx>xinit>xserver+xclients - done.

My .xinitrc is basically providing values to variables while startx is providing others and invoking the binaries.

I think.

'man' for 'X', 'Xserver', 'xinit', 'startx', 'xdm' for better information. And you can read your '.xinitrc' and 'startx' directly, of course.
Old 02-25-2004, 03:07 AM   #3
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
the window manager is just another client, and every progrma under X must be able ro run without a windows manager ther (its just comon sence), the window manager asks the xserver to redirect all certain requests (you can pick what to let pass and what to redirect), to teh window amnager, the manager then usualy puts the window in a frame then passes it back to the server, and there as go, you got thsoe decorations and little bars and whatnot -- i think that sums up the window manager part


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help understanding ln dr_zayus69 Linux - General 3 01-14-2005 09:33 PM
A better understanding! nny0000 Slackware 1 04-14-2004 01:01 PM
Understanding X?? ++ bdp Linux - General 2 02-25-2004 06:47 PM
understanding dmesg shanenin Linux - Software 2 12-13-2003 04:00 PM
Understanding df -k itsjustme Linux - General 6 10-28-2003 01:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:56 PM.

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