<div dir="auto"><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Sep 28, 2017 9:25 PM, "Hika van den Hoven" <<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hoi Ian,<br>
<div class="elided-text"><br>
Friday, September 29, 2017, 12:16:48 AM, you wrote:<br>
<br>
> On Thu, Sep 28, 2017 at 5:44 PM, Hika van den Hoven <<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</a>>wrote:<br>
<br>
> Hoi Ian,<br>
><br>
<br>
> Thursday, September 28, 2017, 11:14:36 PM, you wrote:<br>
><br>
>> On Thu, Sep 28, 2017 at 5:04 PM, Hika van den Hoven <<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</a>>wrote:<br>
><br>
>> Hoi Mark,<br>
>><br>
><br>
>> Thursday, September 28, 2017, 10:54:55 PM, you wrote:<br>
>><br>
>>><br>
>>><br>
>>><br>
>>> On 29 September 2017 5:03:03 am Ian Evans <<a href="mailto:dheianevans@gmail.com">dheianevans@gmail.com</a>> wrote:<br>
>>><br>
>>>> Doing the clean install method after upgrading my system to 16.04.<br>
> >>><br>
> >>> I ran the following command line to install the old database:<br>
> >>><br>
> >>> sudo -u mythtv /usr/share/mythtv/<a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_<wbr>restore.pl</a> --verbose<br>
> >>> --drop_database --create_database --directory /home/mythtv --filename<br>
> >>> mythconverg-1317-<wbr>20170928112702.sql.gz<br>
> >>><br>
> >>> It fails with an unable to connect to database and this environment:<br>
> >>><br>
> >>> Configuring environment:<br>
> >>> - username: mythtv<br>
> >>> - HOME: /home/ian<br>
> >>> - MYTHCONFDIR: /home/ian/.mythtv<br>
> >>><br>
> >>> Parsing configuration files:<br>
> >>> - checking: /home/ian/.mythtv/config.xml<br>
> >>> - checking: /usr/local/share/mythtv/mysql.<wbr>txt<br>
> >>> - checking: /usr/share/mythtv/mysql.txt<br>
> >>> - checking: /usr/local/etc/mythtv/mysql.<wbr>txt<br>
> >>> - checking: /etc/mythtv/mysql.txt<br>
> >>> - checking: /home/ian/.mythtv/mysql.txt<br>
> >>> - checking: mysql.txt<br>
> >>> - checking: /home/ian/.mythtv/mysql.txt<br>
> >>> - checking: /home/ian/.mythtv/backuprc<br>
> >>><br>
> >>> Doing a 'locate config.xml' it's only at these locations:<br>
> >>><br>
> >>> /etc/mythtv/config.xml<br>
> >>> /home/mythtv/.mythtv/config.<wbr>xml<br>
> >>> /usr/share/doc/mythtv-backend/<wbr>contrib/config_files/config.<wbr>xml<br>
> >>> /usr/share/mythtv/config.xml<br>
> >>><br>
> >>> How do I get the command line to ignore /home/ian and /home/ian/.mythtv?<br>
> >>><br>
> >>> Thanks!<br>
> >>><br>
> >>><br>
> >>><br>
>>><br>
>>><br>
>>> Set MYTHCONFDIR before you run your command line to the config file you want.<br>
>>><br>
>>> export MYTHCONFDIR=xxxxxxxxxx<br>
>>> echo $MYTHCONFDIR<br>
>>><br>
>><br>
>> Yes, that should work, if the ian user has r/w access there, which<br>
>> shouldn't as it is inside the mythtv home-directory.<br>
>><br>
><br>
><br>
><br>
><br>
><br>
>> Went to run mythtv-setup from a terminal on the local system (that<br>
>> is not using ssh) and after sudo -i -u mythtv. Have various X<br>
>> errors. Clicked on Mythbackend Setup in the Xubuntu applications<br>
>> menu and it offered to add the root user to the mythtv group and then ran.<br>
><br>
> You changed user in a terminal, but X is initialized as the original<br>
> user, so when trying to run an X program you probably end up in a kind<br>
> of mixed environment of the two users. I guess the mythtv group had<br>
> the missing rights in the other environment.<br>
> When you want to run an X program as a different user you better<br>
> log-out and then log-in as the needed user. Or start a second X<br>
> session as the other user. If your window manager does support that.<br>
><br>
<br>
<br>
<br>
> Thanks for your help. Database update happened, but now I'm<br>
> debugging why mythbackend is crashing just after login, why<br>
> mythfrontend isn't starting automatically, etc.<br>
<br>
<br>
> My first clean install with with a Mythbuntu ISO back in 2011 with<br>
> in-place upgrades. Went so smoothly and I was recording shows within<br>
> about 30 minutes. This installing Xubuntu, then myth has not been as smooth. :-(<br>
<br>
<br>
> Guess I'll be posting more shortly.<br>
<br>
<br>
</div>Things get more complex, so also more subject to itches. Log-in as<br>
your mythtv user and perform upgrades etc under that user and thing<br>
should go smooth. People often underestimate user and user-right<br>
related issues. But they are there to protect us! And as protection<br>
gets more important...<br>
<div class="elided-text"><br>I have to remember to su or sudo -i -u mythtv since the Ubuntu install doesn't create a mythtv user that you can log into with a password.</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks for the help this afternoon. I'm sure I'll be posting again soon. </div><div class="gmail_extra" dir="auto"></div></div>