[mythtv-users] accessing 2 BE's from one FE questions
Michael T. Dean
mtdean at thirdcontact.com
Mon Apr 20 10:21:24 UTC 2015
On 04/20/2015 12:17 AM, Mark Perkins wrote:
>> On 20 Apr 2015, at 12:17 pm, "dennis" wrote:
>>> On your new box, I'd:
>>>
>>> mkdir ~/.mythtv.soon.to.be.retired
>>> cp ~/.mythtv/config.xml ~/.mythtv.soon.to.be.retired
>>>
>>> In the new config.xml, adjust the following to point at your old box:
>>>
>>> <Host>old-host-name</Host>
>>> <UserName>mythtv</UserName>
>>> <Password>your-old-host-SQL-Password</Password>
>>>
>>> Then, most likely, create a script to start the FE using
>>> the above e.g.
>>>
>>> . /etc/default/locale
>>> export LANG
>>> export LC_ALL=$LANG
>>> export MYTHCONFDIR=$HOME/.mythtv.soon.to.be.retired
>>> exec mythfrontend --quiet --logpath /var/log/mythtv
>>>
>>> Adjust as required. MYTHCONFDIR is the important part.
>>>
>>> On the new host, start the FE as you do now. Or, exit that
>>> and run the above script to access the old. You can do the
>>> same on your old host and allow it to access the new one.
>>> Just make something like ~/.mythtv.temporary.new.host.access
>> I'm doing similar with access to both a 0.27& 0.28 backends from one frontend. In the script below, my two backend systems are HTPC and POKEY. In my shell script I use zenity to give me a selection box of which system to connect to. When I launch the program it puts up a nice selection box so I can easily connect to whichever backend I want. I also modified the desktop file for mythfrontend to point to my script. Works real nice.
>>
>> ans=$(zenity --list --text "Choose Backend" --radiolist --column Pick --column Option TRUE POKEY FALSE HTPC) ; echo $ans
>> case "$ans" in
>> "HTPC")
>> export MYTHCONFDIR=~/.myth.htpc
>> export LD_LIBRARY_PATH=/mythtv/27/lib
>> export PATH=/mythtv/27/bin:$PATH
>> EXEC="/mythtv/27/bin/mythfrontend"
>> ;;
>> "POKEY")
>> export MYTHCONFDIR=~/.myth.pokey
>> export LD_LIBRARY_PATH=/mythtv/28/lib
>> export PATH=/mythtv/28/bin:$PATH
>> EXEC="/mythtv/28/bin/mythfrontend"
>> ;;
>> *)
>> $EXEC --syslog local7 -w -geometry 800x450
>>
>> _______________________________________________
> Dennis how do you handle the differences in the database between 0.27 and 0.28?
Same way he's handling differences between 0.27 and 0.28
libraries/executables--he has 2 installs in different locations and he
has 2 different databases. The 2 different databases is why he needs to
switch between the 2 different systems. Whatever show he plans to watch
is apparently in only one of the databases.
That said, Dennis, another option is to just stick with whichever
version of MythTV you have running and use Video Library to play the
other recording. You can use mythlink.pl to create well-named links to
the shows on the other system and then make those links (or a copy of
the file--whichever is easiest with your network/storage layout)
available to Video Library on the system you're using. I'm pretty sure
you can even do commercial detection on the Video Library videos.
Mike
More information about the mythtv-users
mailing list