[mythtvnz] Mythbuntu 16.04 user experiences
Stephen Worthington
stephen_agent at jsw.gen.nz
Sat Jul 23 03:50:42 BST 2016
On Sat, 23 Jul 2016 07:47:21 +1200, you wrote:
>
>>
>> Restore the database before you adjust any settings that are stored in
>> the database, as restoring the database will overwrite anything you
>> already have in the existing database on the new system with what is
>> in the restored database. A restore of the database is a complete
>> restore - it literally deletes the existing database and installs a
>> full database from the backup copy. If the backup copy says it is an
>> older database schema, the first program to read the database and
>> discover that will automatically update it to the current schema.
>> However, mythfrontend can not do that - only mythtv-setup and
>> mythbackend can. So the best option after restoring a database with
>> an older schema is to run mythtv-setup as it has more control about
>> schema updates - it asks if it is to go ahead and do it. Running
>> mythbackend works, but just does the update automatically without
>> telling you about it. And if your database is large (like mine), do
>> not worry if the first run of mythtv-setup or mythbackend takes ages
>> before it is ready, because it will be taking that time doing the
>> schema update. You can keep track of what is happening by doing a
>> "tail -f" command on the relevant log file in /var/log/mythtv
>> (mythtv-setup.log or mythbackend.log).
>>
>> If necessary, you may need to set up the settings outside the database
>> before doing a restore of an older database, such as the mysql
>> settings to allow access outside the PC and the config.xml file(s).
>> This is especially necessary if you are using a backend that does not
>> also have a frontend on it to allow you access.
>>
>> And the users and permissions for access to the mythcoverg database
>> are not stored in the mythconverg database - they are stored in the
>> mysql database, so they do not get backed up and restored. So you may
>> need to set them up also to allow access from other than the local PC.
>> The MythTV manual has how to do that:
>>
>> https://www.mythtv.org/wiki/Build_from_Source
>>
>> See the "MythTV Database Setup" section.
>>
>
>The mythtv-setup you refer to is the utlity in the menus:
>System->Administration->MythTV Backend Setup correct?
>Not a script?
Yes and no. On Mythbuntu, mythtv-setup is a script
(/usr/bin/mythtv-setup) that is run from that menu entry. The script
calls the real mythtv-setup program which has the filename
/usr/bin/mythtv-setup.real. The script shuts down mytbackend before
running mythtv-setup.real, and restarts it afterwards. It also checks
to see if mythtv-setup is being run from an appropriate user account
(one in the mythtv group). If you just want to use the channel editor
in mythtv-setup, then you do not actually need to shut down
mythbackend, so quite a few people run mythtv-setup.real from the
mythtv user (not root) command line in order to do that.
So when someone says "mythtv-setup", they may mean the real
mythtv-setup program (which is all that exists on some distros). But
since the script runs the program, it does not matter most of the
time. The usual intention is that you run the program mythtv-setup,
however that is done on your distro.
More information about the mythtvnz
mailing list