[mythtvnz] Auto start with Gentoo

Robert Fisher mythtvnz@lists.linuxnut.co.nz
Fri, 10 Feb 2006 17:56:41 +1300


On Tue, 07 Feb 2006 6:20 pm, Tim, Donna & Erin Gibson wrote:
> If you've a dedicated boxn, like myself, then there's no need for GDM, KDM
> etcetera... follow this link...
>
> http://forums.gentoo.org/viewtopic-t-268192-highlight-autologin.html
>
> The last few posts are of relevance. No scripts just one line
> in /etc/conf.d/local.start, of course you still need to enter the
> appropriate info into your ~/.xinitrc to get you WM to load etc.

Thanks we have tried two methods successfully but slightly different results.

The first (from above link) allows us to exit mythtx and X.

Simply add: (USER = mythtv in my case)
su USER -c 'source /etc/profile;startx'
to /etc/conf.d/local.start
and add
mythfrontend
to ~/.xinitrc

The second method restarts X and mythfrontend when trying to escape.
(May be OK for inexperienced users so they do not accidentally turn it off)

Change /etc/inittab as follows:-

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
#comment out line above and uncomment line below for startx auto
#also have mythfrontend in /home/mythtv/.xinitrc
#c6:2345:respawn:/usr/bin/openvt -fwc 2 -- /bin/su - mythtv -c /usr/bin/startx 
>& /dev/null
#c7:12345:respawn:/sbin/mingetty --autologin=mythtv tty7



-- 
Regards, Robert

--------------------------------------------------------------
Robert Fisher
(aka - Rob, Bob, Robbie, Robbo, Fish)
FishNet Computer & Electrical Services
www.fisher.net.nz
Phone:	03 383 5807
Mobile:	027 477 3356