PDA

View Full Version : MythTV - mythtv-setup as which user?



Carrot Cruncher
28th July 2015, 04:56 PM
Hi. I'm installing MythTV for the first time and I'm following the instructions at:

https://www.mythtv.org/wiki/Installing_MythTV_on_Fedora

I'm still getting to grips with all the processes but, could someone please confirm that I'm supposed to run the mythtv-setup utility as root?

The MythTV backend systemd service runs as the mythtv user, but this user is set to nologin so I can't run the mythtv-setup utility as this user.

The /etc/mythtv/ directory is owned by root:root.

If I use a non root (non mythtv) user I get various permission issues to the TV adapter device, the storage directories (which I manually created and made owned by mythtv:mythtv), etc.

Even after running the mythtv-setup utility as root, the /etc/mythtv/config.xml is empty and starting the mythbackend systemd service throws the following errors:

2015-07-28 16:14:06.930988 E [13266/13266] CoreContext configuration.cpp:67 (Load) - Error parsing: /etc/mythtv/config.xml at line: 1 column: 1
2015-07-28 16:14:06.930993 E [13266/13266] CoreContext configuration.cpp:69 (Load) - Error Msg: error occurred while parsing element
2015-07-28 16:14:06.931036 E [13266/13266] CoreContext mythdbparams.cpp:39 (IsValid) - DBHostName is not set in config.xml
2015-07-28 16:14:06.931046 E [13266/13266] CoreContext mythdbparams.cpp:39 (IsValid) - DBHostName is not set in config.xml
2015-07-28 16:14:06.941858 E [13266/13266] CoreContext configuration.cpp:117 (Save) - Could not open settings file /etc/mythtv/config.xml.new for writing

I'm probably doing something obviously wrong so any advice is much appreciated. Cheers.