[mythtv-users] V31, switching to xmltv on fedora

John Pilkington johnpilk222 at gmail.com
Sat Apr 11 18:58:38 UTC 2020


On 11/04/2020 18:00, Richard Shaw wrote:
> On Sat, Apr 11, 2020 at 11:31 AM DaveD <mythtv at guiplot.com 
> <mailto:mythtv at guiplot.com>> wrote:
> 
>     Gawd!  It's a wonder I ever recorded anything!  But, until now, it
>     has been working really well!  I don't know how, though, because
>     I've always run mythtv-setup as root!  I don't know where I got the
>     idea I had to do it that way, but it always worked; until now.  My
>     /var/mythv directory is empty; no .mythtv, no config.xml, no tmp,
>     nothing!  That's all stored in /root/.mythtv, which I assume is useless!
> 
>     I don't think that $HOME should be in /etc.  Like you said, etc is
>     for configuration.  /var is where VARiable stuff (runtime stuff)
>     belongs; where services have their home directories.  AND, since
>     mythbackend is a service, it shouldn't have its $HOME in /home, either!
> 
>     Ok, so with all that in mind, I tried 'su -l mythtv -s /bin/bash -c
>     mythtv-setup'.  No dice.  Without the GUI environment (which
>     /bin/bash doesn't have), mythtv-setup won't run.  I have to run it
>     with sudo or nothing works.  I could do the xmltv stuff as mythtv,
>     but shouldn't I be running mythtv-setup as user mythtv?  The wiki
>     says I should be able to setup an xmltv grabber from mythtv-setup
>     and, in fact, it looks like I can.  The xmltv stuff, though, ends up
>     in /myusername/.mythtv.  How can I get mythtv-setup to run as
>     mythtv?  Is this where I'm stuck with symlinks?
> 
>     Another question:  in the xmltv configuration, it asks what kind of
>     ID I want to use and suggests that if I'm migrating from the old SD
>     format that it might be easier if I select option 2; a numeric ID. 
>     Does that mean they will assign the same xmltvid to the same
>     channel?  Or does it mean I still have to manually update them all,
>     just with numbers instead of alpha-numerics?  Can I do a command
>     line setup and retrieve a JSON file (or sqlite DB file) and take a
>     look before I commit to a change?  I'm still thinking that if I have
>     to change all the xmltvid's that I'll write a script to do it.
> 
>     Thanks, again, to you and all who have provided info and advice.
> 
> 
> I'm working on figuring out a few thing. I was able to get 
> mythfilldatabase to look at /etc/mythtv by running it this way:
> 
>   # su -l mythtv -s /bin/bash
> # MYTHCONFDIR=/etc/mythtv mythfilldatabase
> 
> So that's one down...
> 
> As far as needing the GUI I think you should be able to run mythtv-setup 
> either as a regular user OR root and then just copy the xmltv file to 
> /etc/mythtv when you're done OR take the same tactic with mythtv-setup:
> 
> # MYTHCONFDIR=/etc/mythtv mythtv-setup
> 
> In fact, what I may do is move mythtv-setup to /usr/libexec and then 
> replace it with a shell script in /usr/bin to do just that by default.
> 
> Thanks,
> Richard

I hope this doesn't confuse matters, but I'm running master on two 
rpm-based core2duo boxes, both around 10 years old.  The rpms are built 
locally and will differ from Richard's, but I'm not clear by how much.

All the mythtv components are run from tabs in a kde konsole.   No xmltv 
or services involved.

One box has an nVidia card, the other has just its original intel video 
system driving only a vga monitor.

On that box, mythtv-setup and mythfrontend will not have full graphics 
unless an environment variable has been set.  I use the command lines

$  MYTHTV_NO_EGL=1 mythtv-setup

and

$ MYTHTV_NO_EGL=1 mythfrontend

The box with the nVidia card doesn't need the preamble.

Maybe that will help.  Maybe not...

John P



More information about the mythtv-users mailing list