Looking for info on X startup
I have been working on a new project building a dedicated MythTV box using Slackware 10.1. I am looking for info on how X starts up in runlevel 4.
I start runlevel 4, with GDM as my login manager. I have it set to automatically log in a user at boot-up. What I need to know is how X comes to be started. I notice that a ~/.xinitrc file seems to be ignored when booting runlevel 4. If I telinit 3 and startx, it seems that the ~/.xinitrc file is used, but that doesn't really help me, since I need to boot runlevel 4. (unless someone has a guide to logging in a user automatically and starting X in runlevel 3, thereby skipping the whole GDM route). I am planning on using fluxbox or blackbox to start, but I will later attempt using something more minimal (ie xinit with no WM), so what I am really looking for is a generic guide to the "process flow" of starting X in runlevel 4. Any links or anybody just know and care to describe it in detail? |
/etc/rc.d/rc.4 is called from /etc/inittab. If you use Slackware you should be famliar with the files in /etc/rc.d
|
Have a look at /etc/X11/gdm/Xsession. If the session is speficied when it runs then it executes /etc/X11/xinit/xinitrc without ever checking for a ~/.xinitrc. You could modify it to do what you want though.
With "startx" it first checks for the ~/.xinitrc file existance and parses it if it's there. It is also just a script, so check out /usr/X11R6/bin/startx to see how it does it. |
Quote:
Quote:
Quote:
Maybe I have not phrased my question clearly, I'll try again. It seems that starting X via startx and starting X via a display manager result in different sets of init files being used. I have been working almost exlusively with Dropline Gnome till now, and there appear to be some differences in the way that X is started with a Dropline system vs. a stock Slackware system. I can find plenty of info on the init files being used when starting X via startx, but I am at a loss for figuring out the exact route to take for adding startup programs to the startup sessions for window managers when calling them from GDM. I do not want DE or WM specific methods, as I will be experimenting with many different WMs adn would like something that works regardless of which I call. I can elaborate further if that does not make sense. ***EDIT*** Just saw your post, DaHammer. Thanks. That might be just what I need. I'll check it out and get back tomorrow. |
DaHammer-
Thanks for the tip. Quote:
Next step, create a custom /etc/X11/xinit/xinitrc.mythtv. For anyone looking at using MythTV, the default recommended desktop environment is KDE. I want to stay as trim as possible. There is a blurb about running rat poison or blackbox, but it looks to me like you can actually run without a window manager at all. Not good for debugging, but perfect for using as little system resources as possible. |
Yeah, if it's passed the option then it starts whatever. That's what I meant by specified. Also, /etc/X11/xinit/xinitrc is just a link to one of the other scripts in that folder in a default Slackware installation. So if changing that fixed your problem, then you could have just changed the link instead.
Anyway, glad you got it going. |
Quote:
|
Re: Looking for info on X startup
Quote:
Code:
su - gbonvehi -c 'source /etc/profile; source /home/gbonvehi/.bash_profile; startx&' You may also take a look at this thread that has some info about XDM configuration: http://www.linuxquestions.org/questi...hreadid=308765 As far as I understood (not used graphical login managers too much), they look for a ~/.xsession or ~/.Xsession file (the xsession files i've seen execute .xinitrc as their "latest choice") instead of the .xinitrc (actually XDM was the one that I used that readed this latest file..). |
Quote:
Quote:
Quote:
|
I'm a little confused. Doesn't everybody just change the default runlevel in /etc/inittab from 3 to 4? Why would you go through all this extra work to get X to start?
|
Quote:
|
Quote:
Running GDM allows auto-login. Running runlevel 3 with something like gbonvehi suggested also does an auto-login. This may be a better solution, because really, who needs an x display manager? Quote:
|
All times are GMT -5. The time now is 06:23 AM. |