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

Michael T. Dean mtdean at thirdcontact.com
Wed Nov 11 22:54:24 UTC 2009

On 11/11/2009 04:07 PM, Brian J. Murrell wrote:
> On Wed, 2009-11-11 at 15:29 -0500, Michael T. Dean wrote: 
>> Moving to mythtv-users, then.
> OK.
>> 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.
>> #
>> #LocalHostName=my-unique-identifier-goes-here
> Yeah.  I guess the real problem here is that this is a per-machine
> configuration item being stored in a per-user location.  Would you
> agree?
>> It sounds like you just want to use the machine's real hostname.
> Probably.  I guess it was my understanding that if this value was not
> set, no name would be used when fetching and storing values to the
> settings table and and all FEs would use a common set of options --
> which for different arrays of FE hardware, is just not viable.

No, if that override isn't set, it uses the same hostname value that you 
get when you run the hostname command.

> Thus the desire to set a name, per FE.  But really this should be set
> for the FE *machine*, not stored in the preferences for the user that
> "mostly" uses that machine.

But, as described in the comments from the mysql.txt, above, it's just 
an override for when your hostname isn't correct.  You don't want--nor 
need it.  Just comment or remove that line.

I'll admit that the comment doesn't explain how it works--but then 
again, doing so would require explaining how settings work and a lot 
more, so it probably doesn't make sense to make it more descriptive.


More information about the mythtv-users mailing list