<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-western">Sorry I have again used the
reply button in thunderbird. This wouldn't have happened with pan
:-P<br>
<br>
<br>
On 07/19/2011 05:02 PM, Michael T. Dean wrote:
<br>
<blockquote type="cite" style="color: rgb(0, 0, 0);">On 07/19/2011
09:28 AM, Ramon Hofer wrote:
<br>
<blockquote type="cite" style="color: rgb(0, 0, 0);">Ah, thanks
for the explanation!
<br>
So the frontends can have dynamic IPs if they can be resolved
somehow in
<br>
the network, e.g. from bind9.
<br>
And the backends do always have to have static IPs.
<br>
</blockquote>
Or, more specifically, we don't generally store any IP address
<br>
information about frontends in the database, so the closest we
could do
<br>
is piggyback off the backend IP address setting. However, this
would
<br>
also require you to configure your DHCP server to assign static
IP
<br>
addresses to the frontend hosts.
<br>
</blockquote>
<br>
My dhcpd.conf already contains all my frontends and assigns them
static IPs.
<br>
So I'll just have to make it possible that my hostnames can be
resolved and mythweb will be able to connect to all my frontends?
<br>
<br>
It works now when I write the frontend machines into /etc/hosts
from the backend machine.
<br>
<br>
But I'd like to be able to configure a new machine in the
dhcpd.conf and then witchcraft is used to make the resolving in
the LAN.
<br>
I think the keyword here is dynamic dns which is described here:
<br>
<a class="moz-txt-link-freetext"
href="http://www.semicomplete.com/articles/dynamic-dns-with-dhcp/">http://www.semicomplete.com/articles/dynamic-dns-with-dhcp/</a>
<br>
<br>
Unfortunately I haven't had luck with that yet since I don't have
the time to get into bind9 and dhcpd3 now.
<br>
I'll have to wait until september to really get into it...
<br>
<br>
But I think this is the key to be able to resolve the hostnames?
<br>
<br>
<br>
<blockquote type="cite" style="color: rgb(0, 0, 0);">
<blockquote type="cite" style="color: rgb(0, 0, 0);">If I
understand you correct you want me to patch mythweb that it
looks
<br>
in the mysql database to resolve the frontend IP adresses?
<br>
</blockquote>
Exactly.
<br>
</blockquote>
<br>
I'm just about to start a master study in electrical engineering
with computers and networks as the main subject.
<br>
So it may be an interesting semester thesis.
<br>
And I hope this won't be an impossible task for a non professional
programmer...
<br>
<br>
But there's a little confusion here: On top you wrote that IPs
aren't stored but still they are stored in the DB?
<br>
Are only the backend IPs stored and not the frontend's?
<br>
This must be your point... <span class="moz-smiley-s1"
title=":-)"><span>:-)</span></span>
<br>
Sorry my English isn't good enough to understand piggyback, etc <span
class="moz-smiley-s3" title=";-)"><span>;-)</span></span>
<br>
<br>
Nevertheless it seems that I'm the only one that has difficulties
to resolve linux hostnames.
<br>
I usually read in guides that it should be possible to point the
browser to the address containing the hostname (e.g. <a
class="moz-txt-link-freetext"
href="http://mythtv-hostname:80/mythweb">http://mythtv-hostname:80/mythweb</a>
as written in the mythweb wiki page: <a
class="moz-txt-link-freetext"
href="http://www.mythtv.org/wiki/MythWeb">http://www.mythtv.org/wiki/MythWeb</a>)
<br>
<br>
Then it would be more interesting to be able to extend the remote
controllability with other functions.
<br>
E.g. the possibility to choose a recording from mythweb and
directly play it on a frontend. When I do this now it only jumps
to the Watch Recordings page and doesn't really play the
recording.
<br>
Maybe I'm just doing something wrong?
<br>
<br>
In the end it would be great to have a nice way to use any device
with a browser like a laptop, tablet, smart-phone etc. to control
the frontend with mythweb.
<br>
Maybe with some kind of OSD in mythweb... I think it's not
necessary to have the whole screen mirrored in mythweb especially
when watching something (I only get a picture and nothing is
moving).
<br>
And at the same time it would be nice be be able to control more
than one frontend. Well this is possible now but when they don't
start at the same place the commands create random results. E.g.
when one frontend is in mythvideo and the other in mythmusic and I
use mythweb remote control to choose a video with the direction
keys from mythweb it's very unlikely that they will play the same
thing.
<br>
<br>
<br>
<blockquote type="cite" style="color: rgb(0, 0, 0);">
<blockquote type="cite" style="color: rgb(0, 0, 0);">But I still
don't understand how I could run mythtv-setup on the
<br>
frontend since there's no mythtv-setup on my frontends?
<br>
I must understand it wrong that I have to set my frontends to
<br>
backend/frontend combos?
<br>
<br>
Sorry for my slow understanding.
<br>
</blockquote>
You'd need to install mythtv-setup (from whatever package your
packager
<br>
makes it available). This may well mean installing mythbackend,
too.
<br>
However, you won't make your frontend into a backend/frontend
<br>
combo--that would imply you would actually <i
class="moz-txt-slash"><span class="moz-txt-tag">/</span>run<span
class="moz-txt-tag">/</span></i> mythbackend. Instead,
<br>
you will only install mythtv-setup, run it on your frontend
host, then
<br>
use that to set the IP address setting--as if you were
configuring a
<br>
backend on the host.
<br>
</blockquote>
<br>
Ah, I see! Backends are of course only the machines that run
mythbackend.
<br>
<br>
Do I get it right: I have to install mythbackend on my frontends,
run mythtv-setup on each of them to set their IP addresses that
they'll be stored in the DB? Then I can patch mythweb that it'll
look the IP adresses up in the DB and uses them instead of the
hostnames to connect.
<br>
<br>
But wouldn't it be easier and more logical to solve my hostname
resolving problem?
<br>
Or even write the hostnames and IPs directly into the DB?
<br>
<br>
<br>
Ramon
<br>
<br>
<br>
</div>
</body>
</html>