Mailing List Archive

Auto start with Gentoo
I just wondered what list members using Gentoo/MythTV use to auto start their
machines - so that mythtv automatically starts with user "mythtv"

--
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


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 2/7/06, Robert Fisher <robert@fisher.net.nz> wrote:
> I just wondered what list members using Gentoo/MythTV use to auto start their
> machines - so that mythtv automatically starts with user "mythtv"

I use gdm and have set it up to do a timed login of the mythtv user.
So after 10 seconds it logs that user in. That user has default
session that just runs mythfrontend in a loop. If I want to log in as
someone else I just hit ctrl-alt-del to restart X. It's not ideal but
it works well enough for me at the moment.

Steve

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
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.

Regards
Tim

On Tue, 07 Feb 2006 17:52, Steve Hodge wrote:
> On 2/7/06, Robert Fisher <robert@fisher.net.nz> wrote:
> > I just wondered what list members using Gentoo/MythTV use to auto start
> > their machines - so that mythtv automatically starts with user "mythtv"
>
> I use gdm and have set it up to do a timed login of the mythtv user.
> So after 10 seconds it logs that user in. That user has default
> session that just runs mythfrontend in a loop. If I want to log in as
> someone else I just hit ctrl-alt-del to restart X. It's not ideal but
> it works well enough for me at the moment.
>
> Steve
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz@lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

--
Regards
Tim, Donna & Erin Gibson

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
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


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
I also use GDM - set to log user mythtv in automatically. Insted of running
mythfrontend automatically, if you are using SVN or 0.19 (if that's out yet),
use mythwelcome - it stays up independent of the frontend, allows you to start
the frontend if it crashes, and uses the existing LIRC bindings for Myth.

A good wee programme, if you are using a recent enough version of Myth.

Quoting Steve Hodge <stevehodge@gmail.com>:

> On 2/7/06, Robert Fisher <robert@fisher.net.nz> wrote:
> > I just wondered what list members using Gentoo/MythTV use to auto
> start their
> > machines - so that mythtv automatically starts with user "mythtv"
>
> I use gdm and have set it up to do a timed login of the mythtv user.
> So after 10 seconds it logs that user in. That user has default
> session that just runs mythfrontend in a loop. If I want to log in as
> someone else I just hit ctrl-alt-del to restart X. It's not ideal but
> it works well enough for me at the moment.
>
> Steve
>
> _______________________________________________
> myt htvnz mailing list
> mythtvnz@lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 2/15/06, Duncan Kennington <zilla@paradise.net.nz> wrote:
> I also use GDM - set to log user mythtv in automatically. Insted of running
> mythfrontend automatically, if you are using SVN or 0.19 (if that's out yet),
> use mythwelcome - it stays up independent of the frontend, allows you to start
> the frontend if it crashes, and uses the existing LIRC bindings for Myth.

So you run mythwelcome automatically instead of mythfrontend
automatically? I think I'm missing the point...

Steve

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On Wed, 15 Feb 2006 19:20:42 +1300
Steve Hodge <stevehodge@gmail.com> wrote:

> On 2/15/06, Duncan Kennington <zilla@paradise.net.nz> wrote:
> > I also use GDM - set to log user mythtv in automatically. Insted of running
> > mythfrontend automatically, if you are using SVN or 0.19 (if that's out yet),
> > use mythwelcome - it stays up independent of the frontend, allows you to start
> > the frontend if it crashes, and uses the existing LIRC bindings for Myth.
>
> So you run mythwelcome automatically instead of mythfrontend
> automatically? I think I'm missing the point...
>
> Steve


gentlemen, read the output of the myth 0.19 ebuild :-)

pkg_postinst() {
einfo "Want MythFrontend to alway run? Run the following:"
echo " #crontab -e -u mythtv"
einfo "And add the following:"
echo "* * * * * /usr/bin/runmythfe &"
echo



_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 2/15/06, Nick Rout <nick@rout.co.nz> wrote:
> gentlemen, read the output of the myth 0.19 ebuild :-)
>
> pkg_postinst() {
> einfo "Want MythFrontend to alway run? Run the following:"
> echo " #crontab -e -u mythtv"
> einfo "And add the following:"
> echo "* * * * * /usr/bin/runmythfe &"
> echo

What if you occassionally want to log in as another user?

Steve

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 16/02/2006, at 9:41 AM, Steve Hodge wrote:

> On 2/15/06, Nick Rout <nick@rout.co.nz> wrote:
>> gentlemen, read the output of the myth 0.19 ebuild :-)
>>
>> pkg_postinst() {
>> einfo "Want MythFrontend to alway run? Run the following:"
>> echo " #crontab -e -u mythtv"
>> einfo "And add the following:"
>> echo "* * * * * /usr/bin/runmythfe &"
>> echo
>
> What if you occassionally want to log in as another user?

In KDE, you log in as myth, exit from the front end and then choose
'switch user'.

I would imagine Gnome has something similar?

Corrin

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 2/16/06, Corrin Lakeland <lakeland@go.org.nz> wrote:
> On 16/02/2006, at 9:41 AM, Steve Hodge wrote:
>
> > On 2/15/06, Nick Rout <nick@rout.co.nz> wrote:
> >> gentlemen, read the output of the myth 0.19 ebuild :-)
> >>
> >> pkg_postinst() {
> >> einfo "Want MythFrontend to alway run? Run the following:"
> >> echo " #crontab -e -u mythtv"
> >> einfo "And add the following:"
> >> echo "* * * * * /usr/bin/runmythfe &"
> >> echo
> >
> > What if you occassionally want to log in as another user?
>
> In KDE, you log in as myth, exit from the front end and then choose
> 'switch user'.
>
> I would imagine Gnome has something similar?

I'm talking specifically about that cron job - it's going to restart
the frontend as soon as you exit, isn't it?

Steve

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On Thu, 16 Feb 2006 09:56:52 +1300
Steve Hodge wrote:

> On 2/16/06, Corrin Lakeland <lakeland@go.org.nz> wrote:
> > On 16/02/2006, at 9:41 AM, Steve Hodge wrote:
> >
> > > On 2/15/06, Nick Rout <nick@rout.co.nz> wrote:
> > >> gentlemen, read the output of the myth 0.19 ebuild :-)
> > >>
> > >> pkg_postinst() {
> > >> einfo "Want MythFrontend to alway run? Run the following:"
> > >> echo " #crontab -e -u mythtv"
> > >> einfo "And add the following:"
> > >> echo "* * * * * /usr/bin/runmythfe &"
> > >> echo
> > >
> > > What if you occassionally want to log in as another user?
> >
> > In KDE, you log in as myth, exit from the front end and then choose
> > 'switch user'.
> >
> > I would imagine Gnome has something similar?
>
> I'm talking specifically about that cron job - it's going to restart
> the frontend as soon as you exit, isn't it?
>
> Steve

yes I guess so, no doubt this is designed for a dedicated machine! On my
myth box I generally log in via ssh if I want to do something as another
user.

the runmythfe script is very short and capable of adaptation:

#!/bin/sh

if ! pgrep mythfrontend >& /dev/null ; then
DISPLAY=":0.0" mythfrontend 2&> /dev/null &
fi

I have seen people run mythfrontend out of inittab with respawn, even
harder to kill LOL

--
Nick Rout <nick@rout.co.nz>


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 2/16/06, Nick Rout <nick@rout.co.nz> wrote:
> On Thu, 16 Feb 2006 09:56:52 +1300
> Steve Hodge wrote:
> > I'm talking specifically about that cron job - it's going to restart
> > the frontend as soon as you exit, isn't it?
> >
> > Steve
>
> yes I guess so, no doubt this is designed for a dedicated machine! On my
> myth box I generally log in via ssh if I want to do something as another
> user.

I usually do that stuff via vnc. But occassionally it is useful to be
able to get onto the box directly.

Steve

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
RE: Auto start with Gentoo [ In reply to ]
Yes - I run mythwelcome instead of mythfrontend because if the frontend
crashes you're not left with the X desktop and the wife hollering at you.
:-)

-----Original Message-----
From: mythtvnz-admin@lists.linuxnut.co.nz
[mailto:mythtvnz-admin@lists.linuxnut.co.nz] On Behalf Of Steve Hodge
Sent: Wednesday, 15 February 2006 7:21 p.m.
To: mythtvnz@lists.linuxnut.co.nz
Subject: Re: [mythtvnz] Auto start with Gentoo

On 2/15/06, Duncan Kennington <zilla@paradise.net.nz> wrote:
> I also use GDM - set to log user mythtv in automatically. Insted of
> running mythfrontend automatically, if you are using SVN or 0.19 (if
> that's out yet), use mythwelcome - it stays up independent of the
> frontend, allows you to start the frontend if it crashes, and uses the
existing LIRC bindings for Myth.

So you run mythwelcome automatically instead of mythfrontend automatically?
I think I'm missing the point...

Steve

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Auto start with Gentoo [ In reply to ]
On 2/17/06, Duncan Kennington <zilla@paradise.net.nz> wrote:
> Yes - I run mythwelcome instead of mythfrontend because if the frontend
> crashes you're not left with the X desktop and the wife hollering at you.
> :-)

But if you've got something automatically starting mythwelcome then
couldn't you just have that same thing start a script that repeatedly
runs mythfrontend? That's what I do...

Steve

> -----Original Message-----
> From: mythtvnz-admin@lists.linuxnut.co.nz
> [mailto:mythtvnz-admin@lists.linuxnut.co.nz] On Behalf Of Steve Hodge
> Sent: Wednesday, 15 February 2006 7:21 p.m.
> To: mythtvnz@lists.linuxnut.co.nz
> Subject: Re: [mythtvnz] Auto start with Gentoo
>
> On 2/15/06, Duncan Kennington <zilla@paradise.net.nz> wrote:
> > I also use GDM - set to log user mythtv in automatically. Insted of
> > running mythfrontend automatically, if you are using SVN or 0.19 (if
> > that's out yet), use mythwelcome - it stays up independent of the
> > frontend, allows you to start the frontend if it crashes, and uses the
> existing LIRC bindings for Myth.
>
> So you run mythwelcome automatically instead of mythfrontend automatically?
> I think I'm missing the point...
>
> Steve
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz@lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz@lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/