<div dir="ltr"><div dir="ltr">On Fri, Apr 10, 2020 at 11:55 PM DaveD <<a href="mailto:mythtv@guiplot.com">mythtv@guiplot.com</a>> wrote:<br></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">Fedora packages don't create a mythtv user in the usual sense: there is <br>
no /home/mythtv directory. mythbackend runs as user mythtv. I assume <br>
it spawns mythfilldatabase as the same user. Where is the xmltv data <br>
going to go? Where does the channel setup data go? I'm confused. All <br>
the pages I've read so far keep referring to mythbuntu and creating a <br>
mythtv user. Do I need to do that so I can run xmltv config as that <br>
user? Other stuff suggests running xmltv setup (and mythfilldatabase?) <br>
as any user, then creating symlinks, again to /home/mythtv/.mythtv. Do <br>
I have to have /home/mythtv/.mythtv for this to work? Would I be advised <br>
to create an actual profile with password and literally log in as mythv <br>
to run this stuff?<br></blockquote><div><br></div><div>You can also ask questions on the RPM Fusion mailing list for Fedora distro specific question but I'm on both. :)</div><div><br></div><div>System services often do have home directories, they're just not in /home. For the past decade or more the Fedora package has defaulted the mythtv user home to /var/lib/mythtv, and in general this is the way it should be for most services, however, because mythbackend looks for some stuff there in $HOME even though I have MYTHCONFDIR set to /etc/mythtv in the SystemD service file:</div><div><br></div><div># systemctl cat mythbackend | grep MYTHCONFDIR<br>Environment=MYTHCONFDIR=/etc/mythtv<br></div><div><br></div><div>Because of that I recently changed it to /etc/mythtv to be more intuitive. HOWEVER, once the user is created, package updates will NOT change this for obvious reasons.</div><div><br></div><div>To check try this as root (or sudo):</div><div><br></div><div># cat /etc/passwd | grep mythtv<br>mythtv:x:900:900:mythbackend user:/var/lib/mythtv:/sbin/nologin<br></div><div><br></div><div>Since my install is 10+ years old it's obviously on /var/lib/mythtv so I have a mix:</div><div><br></div><div># ll /etc/mythtv<br>total 50528<br>drwxr-xr-x. 3 mythtv mythtv 4096 Apr 13 2015 3rdParty<br>drwxr-xr-x 10 mythtv mythtv 4096 Dec 7 14:00 cache<br>drwxr-xr-x. 2 mythtv mythtv 57344 Mar 28 20:29 channels<br>-rw-r--r-- 1 mythtv mythtv 108 Oct 14 2018 Comcast.xmltv<br>-rw-r--r--. 1 mythtv mythtv 627 Nov 16 2013 config.xml<br>drwxr-xr-x 2 mythtv mythtv 4096 Feb 19 2016 HardwareProfile<br>-rw-r--r-- 1 mythtv mythtv 5502 Nov 5 2018 mythtv.conf<br>-rw-r--r-- 1 mythtv mythtv 108 Oct 14 2018 OTA.xmltv<br>-rw-r--r-- 1 mythtv mythtv 51634176 Apr 10 20:40 SchedulesDirect.DB<br>drwxr-xr-x. 2 mythtv mythtv 4096 Nov 16 2013 themes<br>drwxr-xr-x 4 mythtv mythtv 4096 Dec 26 07:09 tmp<br></div><div><br></div><div># ll /var/lib/mythtv/.mythtv<br>total 44<br>drwxrwxr-x 2 mythtv mythtv 4096 Dec 9 2018 3rdParty<br>drwxrwxr-x 2 mythtv mythtv 4096 Dec 9 2018 channels<br>-rw-rw-r-- 1 mythtv mythtv 629 Mar 11 17:30 config.xml<br>-rw-rw-r-- 1 mythtv mythtv 24482 Nov 4 2018 lossless_cut.cfg<br>drwxrwxr-x 2 mythtv mythtv 4096 Dec 9 2018 themes<br>drwxrwxr-x 3 mythtv mythtv 4096 Dec 9 2018 tmp</div><div><br></div><div>However, you can see my xmltv files in /etc/mythtv... I probably need to migrate my $HOME over and see if I can get rid of the need for /var/lib/mythtv/.mythtv. It's not ideal to be storing non-config files in /etc, but oh well.</div><div><br></div><div>Thanks,</div><div>Richard</div></div></div>