Here's a more convoluted way: Don't use a graphical display manager.
1) copy this to autologinmythtv.c
/*----------------------- BEGIN ----------------------*/
int main(){
execlp( "login", "login", "-f", "mythtv",0);
}
/*----------------------- END ----------------------*/
2) then gcc -o autologinmythtv autologinmythtv.c
3) copy the resulting binary (autologinmythtv) to /usr/local/sbin
4) change /etc/inittab to autologin myth in run level 4
########################################################
replace: (in /etc/inittab)
1:2345:respawn:/sbin/getty 38400 tty1
with these two lines:
1:235:respawn:/sbin/getty 38400 tty1
myth:4:respawn:/sbin/getty -n -l /usr/local/sbin/autologinmythtv 38400 tty1
########################################################
5) change your initdefault thusly: (also in /etc/inittab)
########################################################
id:4:initdefault:
########################################################
6) Get rid of display managers in runlevels below 5
(they shouldnt be there anyway)
########################################################
rm /etc/rc[234].S99?dm
########################################################
7) Put this in the mythtv users ~/.profile (you will probably have to create it)
########################################################
/usr/bin/X11/startx
logout
########################################################
Now when the computer boots, It will go to run level 4, autologin mythtv,
start X-Windows and assuming you put mythfrontend in the mythtv users .xinitrc,
It will boot right into myth-frontend.
Then if you want to do maintenance chage the initdefault to 3 for text login
or to 5 for graphical logins.
--------------------------------------------------------------
James S. White GAPS Incorporated
james@jameswhite.org Electrical Engineer - Etc.
http://www.jameswhite.org Caffeine is my anti-drug.
--------------------------------------------------------------
I can picture in my mind a world without war, a world without hate.
And I can picture us attacking that world, because they'd never expect it.
-Jack Handy
On Wed, 6 Aug 2003, Mark Edwards wrote:
> > Interesting, but I presume that I must at least log in with your login
> and
> > password in xdm...
> >
> > How could I configure my system to let it start everything without any
> user
> > action ?
> >
>
> kdm will permit autologins
> don't ask me how to alter the config file, but on my system (gentoo) theres
> a "kde login manager" program so u can click the button...
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>