[mythtv-users] Autostart MythTV on Raspberry Pi 3

Rajil Saraswat rajil.s at gmail.com
Sun Oct 15 20:31:02 UTC 2017


On 10/15/2017 11:42 AM, Rajil Saraswat wrote:
> On 10/15/2017 03:55 AM, Jeff wrote:
>> I've just documented my setup here:
>>
>> https://www.mythtv.org/wiki/Raspberry_Pi#Autostart_MythTV_on_boot
>>
>> Regards
>>
>> Jeff
> I believe there are some shortcomings of this approach compared to
> .xinitrc  which i use on my desktop documented here
> https://dev.gentoo.org/~cardoe/mythtv/autostart.html
>
> a) If frontend crashes, it will not respawn the frontend again. Also, if
> i do an 'Exit Mythtv' in the frontend, it will not restart the frontend.
> b) I have  autologin-user=pi set in /etc/lightdm.conf so on first-boot
> it autologs me in. However, if X dies (say killall Xorg), then it doesnt
> autologin instead shows up the login/passwd input box.
>
> It is not idiot proof yet :)
>
> Any comments?
>
> Thanks

I decided to use console based auto-login instead of graphics login.
Enabled autologin first using:

systemctl set-default multi-user.target
sed /etc/systemd/system/autologin at .service -i -e
"s#^ExecStart=-/sbin/agetty --autologin
[^[:space:]]*#ExecStart=-/sbin/agetty --autologin pi#"
ln -fs /etc/systemd/system/autologin at .service
/etc/systemd/system/getty.target.wants/getty at tty1.service

and then followed the instructions below. You need to replace tty8 with
tty1 for RPI.

https://dev.gentoo.org/~cardoe/mythtv/autostart.html



More information about the mythtv-users mailing list