[mythtv-users] What NOT to do to your Myth box...

Phill Edwards philledwards at gmail.com
Thu Jan 13 17:50:04 EST 2005


> Ok, so this is pretty tragic, it's also amusing if you're a sick bastard
> like
> me, I'm sure a few of you are and will get a laugh out of it so I
> thought I'd share
> my story of what _not_ to do with your mythbox...
> 
> For xmas santa claus bought me an Athlon 64 3000 to replace my refurb
> emachine
> mythbox. So I spend three days setting this thing up, I go out of my way to
> migrate my tv from the emachine to the new amd, moving the database, setting
> up all my remote controls, basically customizing the machine to my liking.
> Finally I get it up and running, life is good, really good...
> 
> I have just setup a smoothwall box with the red/green/orange interfaces,
> pretty cool stuff, now what to do with all this technology??? Well, I
> have the
> refurb emachine laying around, I should put that on the orange interface and
> set it up as my mail server/web server, what a good idea...
> 
> So now I have a web server but nothing to put on it... How about I replicate
> my mythweb interface on the web server realtime so I can see whats going on
> from work.. cool... So I hack up a little cgi script that looks like so:
> 
> #!/bin/bash
> cd /var/www/localhost/htdocs
> /usr/bin/wget -r http://vector/mythtv/status.php -q
> cat /var/www/localhost/htdocs/cgi-responses/mythtv-status.html
> 
> and boom, I can now see my mythtv status from outside without putting the
> machine on the internet, thats pretty cool, how about what I've
> recorded, that
> would be even cooler! so I hack up another cgi-script, but instead of
> status.php I get recorded_programs.php, should work right??
> 

FWIW, I achieved this by setting up a iptables port forwarding rule on
my internet facing box which forwards an incoming request on port xxxx
to the mythtv box. That way I can see mythweb from anywhere else.


More information about the mythtv-users mailing list