[mythtv-users] MythtTV on Gentoo: resources?

Rich Freeman r-mythtv at thefreemanclan.net
Wed Mar 25 00:40:04 UTC 2015


On Tue, Mar 24, 2015 at 12:25 PM, James Miller
<gajs-f0el at dea.spamcon.org> wrote:
>
> I'm very interested in the possibility of running MythTV without a WM. The
> machine in question will be a dedicated FE/BE and that will be its only use,
> so I see no point in having a WM on it. How is running MythTV in this way
> this accomplished? And how do I prevent Gentoo from dragging in a WM when
> installing MythTV?
>

There are a couple of ways to get it running.  The ebuild offers
USE=autostart which will get this working with evilwm if you're
running openrc.

I use systemd and just do this:
cat /etc/systemd/system/getty at tty1.service.d//autologin.conf:
[Service]
Type=simple
ExecStart=
ExecStart=-/sbin/agetty --autologin mythtv --noclear %I 38400 linux

cat cat home/mythtv/.bash_profile:
case "`tty`" in
        *tty1) startx; logout ;;
esac

cat home/mythtv/.xinitrc:
# .xinitrc
[ -x /usr/bin/nvidia-settings ] && /usr/bin/nvidia-settings -l
/usr/bin/xset s noblank
/usr/bin/xset s off
/usr/bin/xset -dpms
xrandr --output HDMI-0 --pos 0x0 --mode 1360x768
/usr/bin/evilwm &
# Configure arguments via /etc/conf.d/mythfrontend

I lied - looks like I am using evilwm after all.  :)

You could do something similar with openrc - just get tty1 to
autologin with sysvinit (should be trivial to do in inittab).  The
reason I launched it this way is so that mythtv owns the console
permissions.  If you exit mythtv it will re-launch automatically since
the getty will die and both sysvinit and systemd will respawn it.

--
Rich


More information about the mythtv-users mailing list