Tony Houghton | 1 Sep 2004 15:14
Picon

Re: Re: Minimalist display manager

In <pan.2004.09.01.08.37.36.559852 <at> operamail.com>, Kim Carlsen wrote:

> > I've tried a script to run startx via su as the last init script, but for
> > some reason it doesn't work - something to do with Xauthority IIRC. On one
> > of my boxes I've got a similar script working from inittab, but I'd rather
> > have it as an /etc/init.d service like gdm.
> 
> *** Off topic ***
> I have tried doing something similar(but with a different approach), 
> I have tried moving the gdm to launch as the first thing in the
> background(moved it to be the first init.d script), since my desktop
> enviroment have no obvious dependencies on the rest of the system
> services, I figured it would be nice if the desktop was available
> instantly after the kernel has bootet.
> 
> This doesnt work at all since the keyboard then will be broken(not able to
> type anything). I havent been able to figure out why, is this the same
> that happens with your 'su startx'?
> If it is and you find a solution please post it.

I think your basic idea is good, a parallel boot sequence could really
speed it up. There's probably another init script to set up the keyboard
etc which you've missed, if you can just find what it is it might work.
I think Gentoo has a useful system where you can make one init script
depend on others, so if you run one before its dependencies have been
run, it will automatically run them first. I once laid awake for hours
thinking about combining the two ideas for a great new init system.

I did achieve a bit of parallelism when I was using a USB ADSL modem.
You had to initialise it first, by uploading the firmware IIRC, then run
(Continue reading)

Kim Carlsen | 1 Sep 2004 15:25

Re: Re: Minimalist display manager

> In my case with X something different happened. I got error messages about
> this user doesn't have permission to run the X server, or something along
> those lines.
I have an option in /etc/X11/Xwrapper.config, where you can set 
'allowed_users', this can be rootonly, console or anybody.

Best regards
Kim Carlsen

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

Gmane