<div dir="ltr"><div dir="ltr">On Sat, Apr 11, 2020 at 11:31 AM DaveD <<a href="mailto:mythtv@guiplot.com">mythtv@guiplot.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
    <p>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!</p>
    <p>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!</p></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>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?<br>
    </p>
    <p>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.</p>
    <p>Thanks, again, to you and all who have provided info and advice.</p></div></blockquote><div><br></div><div>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:</div><div><br></div><div> # su -l mythtv -s /bin/bash</div><div># MYTHCONFDIR=/etc/mythtv mythfilldatabase</div><div><br></div><div>So that's one down...</div><div><br></div><div>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:</div><div><br></div><div># MYTHCONFDIR=/etc/mythtv mythtv-setup</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Richard</div></div></div>