[mythtv-users] frontend can't login into backend

R. G. Newbury newbury at mandamus.org
Tue Apr 19 22:30:34 UTC 2011

On 04/18/2011 02:19 PM, Mike Bennett wrote:
> Okay I had to rebuild my mythtv box this past weekend. I moved from
> mythdora to fedora 14 running the latest mythtv .24-7.fc14. I have the
> backend/frontend combo PC running great but the two other frontend only
> boxes say they can't login. In the initial setup under the General setup
> page I put the the actual IP of the server for both the local backend
> and master backend and kept the default port 6543. But when I try to get
> access to the backend from another frontend box using the correct mythtv
> user and password it says it can't login. Any ideas?
> Also does someone have or tell me where to get the power button script
> like the one used in mythdora to start and stop mythfrontend?

Not sure if this is the same one as in mythdora, but it works for me 
with a Harmony 300 remote and iMon hardware.


# check for running mythfrontend
STATUS=`ps -ae | grep mythfrontend | grep -v grep | wc -l | awk '{print 
#echo "Running status = " $STATUS
# This should be re-directed to stderr but isn't
# check for proper Display
# only works on the local machine

count=`echo $DISPLAY | grep ":0" | wc -l `

if [ $count -ge 1 ] ; then
     #echo "Testing"
     # if no mythfrontend, then start one
     if [ $STATUS -eq 0 ] ; then
         echo "Starting Mythfrontend"

	# adjust for proper binary location and logging setting

         /usr/local/bin/mythfrontend -v playback,extra -l 
/var/log/mythfrontend.log &
         # kill all running mythfrontends
         echo "Killing Mythfrontend"
         pid=`ps -ae | grep mythfrontend | awk '{print $1}'`
         #echo "Running process is   "$pid
         kill -9 $pid;
	# well, kills at least one running mythfrontend
	# for all, use 'killall mythfrontend' and skip parsing ps output

It is called through lircrc, using a snippet like this:

	prog = irexec
	button = AppExit (substitute the name of the button you are using)

	config = /usr/local/sbin/mythpowerbutton.sh
(The version I have on the laptop does NOT have an '&' after 
..mythpowerbutton.sh' but I *think* there is one on the setup at home. 
You may have to fiddle.

ALSO, you need to remember to start irexec. A good spot is in 
/etc/rc.d/rc.local which will usually ensure that it is started after 
the lirc service is up and running. REMEMBER that when you are testing 
things and re-starting lirc. You may get odd results if lirc is started 
after irexec. It should work, but then, so should lots of things that 


              R. Geoffrey Newbury			

More information about the mythtv-users mailing list