[mythtv-users] accessing 2 BE's from one FE questions
dennis
deg at outlook.com
Mon Apr 20 02:46:40 UTC 2015
> 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
More information about the mythtv-users
mailing list