[mythtv-users] [mythtv-commits] Ticket #7542: mythtv-setup should not use LocalHostName

Michael T. Dean mtdean at thirdcontact.com
Wed Nov 11 20:29:04 UTC 2009


On 11/11/2009 01:59 PM, Brian J. Murrell wrote:
> [ Michael, I doubt my posting to mythtv-dev will be allowed so I'm CCing
> you as well ]
>   

Moving to mythtv-users, then.

> On Wed, 2009-11-11 at 13:36 -0500, Michael T. Dean wrote: 
>   
>> mythtv-setup can only identify the installed capture devices and 
>> enumerate their inputs and verify storage locations if it's run on the 
>> machine that's being configured.
>>     
>
> Exactly, so we are in agreement about where mythtv-setup should be run.
>
>   
>> There's a plan for a major rework of settings/setup that may allow you 
>> to do some of what you want--i.e. configure things without having to run 
>> mythtv-setup directly on the host you're configuring (at least for the 
>> General settings).
>>     
>
> No no no.  You are completely misunderstanding me.  I have no desire at
> all to run mythtv-setup for different backends from the one backend.
>
> I'm simply reporting that when I do log into a given backend that is not
> the machine named in LocalHostName in my ~/.mythtv/mysql.txt the
> mythtv-settings tool on that machine is picking up the LocalHostName
> value in my ~/.mythtv/mysql.txt (home dirs are cross mounted to all
> machines) and making changes in the database for the wrong "host".  It's
> adding the values for the host named in LocalHostName rather than
> $(hostname), which of course is wrong.

The LocalHostName in mysql.txt is an override.  If you do not want to 
override the system hostname, do not set it.  That's why it's shown in 
the example mysql.txt distributed with mythtv as:

# Set the following if you want to use something other than the
# machine's real hostname for identifying settings in the database.
# This is useful if your hostname changes often, as otherwise
# you'll need to reconfigure mythtv (or futz with the DB) every time.
# TWO HOSTS MUST NOT USE THE SAME VALUE
#
#LocalHostName=my-unique-identifier-goes-here

Note the "if you want to use something other than the machine's real 
hostname".

It sounds like you just want to use the machine's real hostname.

If you're using the override because you changed your machine's real 
hostname, then just fix your DB: 
http://www.mythtv.org/wiki/Database_Backup_and_Restore#Change_the_hostname_of_a_MythTV_frontend_or_backend

Mike



More information about the mythtv-users mailing list