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

Richard Shaw hobbes1069 at gmail.com
Sat Apr 11 17:00:31 UTC 2020


On Sat, Apr 11, 2020 at 11:31 AM DaveD <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200411/6400850e/attachment.htm>


More information about the mythtv-users mailing list