<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/11/2018 14:58, James Abernathy
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:99DFE5D0-49B7-43B5-AC59-D838E61F3C9F@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div>
        <blockquote type="cite" class="">
          <div class="">
            <div class="">I do not recommend trying to add gksu back in.<br
                class="">
              <br class="">
              This how I handle the situation on  *Ubuntu
              16.04,16.10,18.04,18.10 etc.<br class="">
              <br class="">
              After installing mythtv, run "sudo adduser $USER mythtv"
              and then either logout or reboot for it to take effect.<br
                class="">
              <br class="">
              Always use terminal session to stop mythtv-backend  "sudo
              systemctl stop mythtv-backend" before using mythtv-setup<br
                class="">
              <br class="">
              Always use terminal session for  mythtv-setup, do not
              allow mythfilldatabase or start mythbackend when exiting
              mythtv-setup.<br class="">
              <br class="">
              Always use terminal session to start mythtv-backend "sudo
              systemctl start mythtv-backend"<br class="">
              <br class="">
              I use ssh -X ... when connecting to mythtv-backend machine
              from another *Ubuntu system.<br class="">
              <br class="">
              If you need to run mythfilldatabase  manually, there are
              two ways :<br class="">
              <br class="">
              Tip you can give user mythtv a bash shell to make life
              easier in a terminal session "sudo chsh -s /bin/bash
              mythtv"<br class="">
              <br class="">
              1. open a terminal session "sudo su mythtv" then
              mythfilldatabase, exit from session when finished back to
              the original user.<br class="">
              <br class="">
              2. Just run "sudo -u mythtv mythfilldatabase”<br class="">
              <br class="">
            </div>
          </div>
        </blockquote>
        If I do option #2 I notice that it must not set the $USER
        variable to ‘mythtv’ because if I look at the console log I see:</div>
      <div><br class="">
      </div>
      <div><font class="" face="Courier">“<date and time>” I XMLTV
          config file is :/home/jim/,mythtv/SD.xmltv</font></div>
      <div><font class="" face="Courier"> </font><br class="">
        If I run it doing option #1 it shows XMLTV config file is :
        /home/mythtv/.mythtv/SD.xmltv</div>
      <div><br class="">
      </div>
      <div>Jim A</div>
      <div><br>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Apologies, I missed -H so it should be:<br>
    </p>
    <p>sudo -u mythtv -H mythfilldatabase <br>
    </p>
    <p><br>
    </p>
    <p>Additionally, if your version of mythfilldatabase supports it
      (run mythfilldatabase --help to check), you may want to add
      parameter --no-allatonce after mythfilldatabase e.g.</p>
    <p>sudo -u mythtv -H mythfilldatabase  --no-allatonce <br>
    </p>
    <p>This minimises memory usage, by only grabbing 1 days worth of
      data at a time. <br>
    </p>
    <p>Some xmltv grabbers default to allatonce which due to the way
      mythfilldatabase is currently implemented can use huge amounts of
      memory, many gigabytes, leading to performance and possibly xmltv
      grabber failure.. <br>
    </p>
    <p><br>
    </p>
    <p>Mike<br>
    </p>
    <p><br>
    </p>
  </body>
</html>