Difference between revisions of "Proxy"

From MythTV Official Wiki
Jump to: navigation, search
(getting mythtv to use a proxy)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Proxy]]
+
[[Category:HOWTO]]
 +
==Using a proxy to grab XMLTV data with mythfilldatabase==
 +
Firstly, verify that the following command works (ie, fetches guide data and fills up your database) with your tv_grab_xxx script:
  
OK, this is a marker. Anybody (and there seem to be a lot of people) trying to get Myth to access the web via a proxy, should find this page.
+
<pre>
 +
http_proxy=http://<proxy>:<port> mythfilldatabase
 +
</pre>
  
With luck, somebody how really knows how this works will edit this page with the real answer.
+
Replace <proxy> and <port> with the appropriate values. If it doesn't work you should verify that you have configured your grabber correctly and set mythtv to use it with mythtv-setup.
  
For the present, I'd just like to say I've spent around 20 hours trying to get myth to access lots of stuff over the internet (XMLTV, mythbrowser, mythweather ...). I've seen lots of references to using http_proxy (even some HTTP_PROXY but that's long gone :-) ) but nothing seems to work. I can see the non-proxy access, as my firewall is logging them as spyware.
+
Once you have got that working, set up a cron job that runs daily by putting the following in /etc/cron.daily/mythtv-backend (or similar):
  
I can only guess that everybody is using transparent proxies, even so I would have expected some notes somewhere.
+
<pre>
 +
#!/bin/sh
  
All very frustrating, the initial Myth setup worked great but without internet access, it's all a bit 'flat' :-(
+
su mythtv -c "http_proxy=http://<proxy>:<port> mythfilldatabase --quiet"
 +
</pre>
 +
 
 +
This also assumes that 'mythtv' is the name user that should run mythfilldatabase (ie, has the configuration for tv_grab_xxx and ~/.mythtv/mysql.txt in place). Replace 'mythtv' above if you use another username.
 +
 
 +
==Using a proxy server with MythBrowser, MythNews, MythWeather and so on==
 +
As far as I am aware this is presently unsupported. There is a feature request for this [[Feature_Wishlist_(Plugin_Addons)|on this page]]

Latest revision as of 02:07, 15 October 2009

Using a proxy to grab XMLTV data with mythfilldatabase

Firstly, verify that the following command works (ie, fetches guide data and fills up your database) with your tv_grab_xxx script:

http_proxy=http://<proxy>:<port> mythfilldatabase

Replace <proxy> and <port> with the appropriate values. If it doesn't work you should verify that you have configured your grabber correctly and set mythtv to use it with mythtv-setup.

Once you have got that working, set up a cron job that runs daily by putting the following in /etc/cron.daily/mythtv-backend (or similar):

#!/bin/sh

su mythtv -c "http_proxy=http://<proxy>:<port> mythfilldatabase --quiet"

This also assumes that 'mythtv' is the name user that should run mythfilldatabase (ie, has the configuration for tv_grab_xxx and ~/.mythtv/mysql.txt in place). Replace 'mythtv' above if you use another username.

Using a proxy server with MythBrowser, MythNews, MythWeather and so on

As far as I am aware this is presently unsupported. There is a feature request for this on this page