startx vs init 5

Brian R Smith brian at
Mon Jul 26 19:12:29 UTC 2004


Some output from the console while running 'startx' would be helpful. 
We'd like to see some of these error messages.  Init level 5 has, at the
end of the startup sequence, some script to start up gdm, the graphical
login manager.  This runs as the user gdm.  'startx' runs X and your
xsession as whoever you are logged in as so obviously there will be some
differences in the environment.

If you check out /etc/inittab you can see that this line
x:5:respawn:/etc/X11/prefdm -nodaemon
starts up gdm.  You might want to look at the /etc/X11/prefdm script.

Post some error messages and I'd be more than happy to help.


On Mon, 2004-07-26 at 14:57, Dwaine Castle wrote:
> If use init 5 as root to start the GUI the console is error free.  If I
> execute startx as either root or an ordinary user the console is littered
> with error messages mostly xorg config errors and python script errors.  I
> saw this in FC2 also.
> As an experiment I ran all the scripts in the /etc/rc.d/rc5.d and then ran
> startx.  The error messages were still there.  What else does the init 5
> command do that might set up the environment to eliminate the errors?  And,
> shouldn't startx use this environment?
> Thank you.
> Dwaine

More information about the test mailing list