<div dir="ltr">Alright, thanks again for your patience answering dumb questions. I have installed the OS (18.04 since I had problems with 20.04) and mythtv. I have not yet run mythtv-setup. There is a config.xml in /home/mythtv/.mythtv but not in /home/steve (in fact there is no .mythtv there either). I am to the point where I'm going to restore the mythconverg from my old machine (which I have the idea I should do before running mythtv-setup). The docs say I should<div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>echo "DBBackupDirectory=/home/mythtv" > ~/.mythtv/backuprc<br></div></blockquote><br></div><div>But if I do that the backuprc will wind up in /home/steve/.mythtv (which like I said doesn't exist) Shouldn't this go in /home/mythtv/.mythtv instead?</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div></blockquote></div></div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 26, 2020 at 11:23 AM Jim Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><br>
</p>
<div>On 7/26/20 2:02 PM, DryHeat122 wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Jul 26, 2020 at
10:49 AM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<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">[snip]<br>
<br>
> Bill thanks for all the advice. I'm really
grateful. I have started over just to get back to
square one and undo anything I have screwed up. <br>
> I have two questions about xmltv I will post on
the other thread. Re installation: Should I run
everything--i.e. mythtv-setup, xmltv <br>
> config--as user mythtv rather than as user
steve? I'm thinking the answer is yes and this is
where I started developing problems before.<br>
<br>
mythtv-setup is always to be run as user mythtv, but
in reality, it probably isn't. In the past, that meant
that<br>
things like Storage Directories can't be read and the
tests for them fail (if proper 'normal' permissions
were<br>
used.)<br>
<br>
XMLTV adds a new reason for that. But I didn't use it,
rather did the configuration from the command line.<br>
And in that case also ran it as user mythtv.<br>
<br>
Being practical, or perhaps lazy/forgetful, I added a
line in my .bashrc so I can run mythfilldatabase<br>
without thinking too hard:<br>
<br>
alias mfdbrun='sudo --login --user=mythtv
mythfilldatabase'<br>
<br>
<br>
-- <br>
Bill<br>
</blockquote>
<div><br>
</div>
<div>Here's my problem with trying to run mythtv-setup
as user 'mythtv'. I just confirmed this on a fresh
Ubuntu 20.04 system. When the Ubuntu system was
installed the initial user was 'jim'. The mythtv
install created the 'mythtv' user but it is not a
normal login user so to run mythtv-setup as 'mythtv' I
had to give user 'mythtv' a password. If I do that I
have to logout and back in as user 'mythtv' and run
mythtv-setup otherwise I get some xhost error. </div>
<div><br>
</div>
<div>When you exit. mythtv-setup, it asks to start the
backend and if you say yes, it asks for a password
which will not work with user 'mythtv' unless you've
added mythtv to the sudo group.</div>
<div><br>
</div>
<div>To avoid all these issues, while user jim, I just
sudo su mythtv and create the recordings directory
with mkdir /home/mythtv/recordings and then it has the
right permissions. While I'm there I set up XMLTV
since I'm user mythtv. Once that's done I exit back to
user jim and run mythtv-setup.</div>
<div><br>
</div>
<div>Never had a problem. However if I have to run
mythfilldatabase manually, I sudo su mythtv and then
run it.</div>
<div><br>
</div>
<div>JIm A</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>OK so, just to make sure I understand the advice and I am
getting consistent advice....do run xmltv config as mythtv,
but run mythtv-setup as steve, not mythtv. Right? And also
I should make sure the permissions on my video storage
directory permit mythtv as well.</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<p>First let me say that we all have ways that work for us. I'm no
developer and I don't play one on TV. However, I've been using
mythtv for a really long time and have developed a process that
works for me. First since I observe Ubuntu as the Linux of choice
for mythtv, that's what I use. When I install I create the
initial user as me, 'jim'.</p>
<p>After mythtv is installed I know the backend will run as user
'mythtv' and since the backend kicks off mythfilldatabase
everyday then it will be run as user 'mythtv'. So I need my
directories that the backend uses for recordings, etc. to have the
right permissions. Hence the sudo su mythtv before I do the mkdirs
for the backend files. <br>
</p>
<p>As to XMLTV. the wiki says to run it as user 'mythtv' and that
is what I do. And by doing this I don't need a bunch of links to
keep it working a user 'jim' <br>
</p>
<p>As to mythtv-setup, since it needs to run with 'X' because of
it's gui, the easiest why is to run it as the initial user; 'jim'
for me. mythtv-setup also needs to be run by a user that is a part
of the sudo group (definitely in v31). Again easiest way is to run
as initial user; 'jim' for me.</p>
<p>As to mythfilldatabase, it needs to be run as user 'mythtv' if
run manually. However, during installation, after I complete
mythtv-setup and XMLTV, I just reboot. That starts up
mythtv-backend and after a few minutes, mythfilldatabase seems to
start on it's own. If nothing populates in the EPG after 10
minutes, I "sudo su mythtv" and then run mythfilldatabase.</p>
<p>Jim A<br>
<br>
</p>
</div>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>