Differences
This shows you the differences between two versions of the page.
— |
nslu:mp3streaming [2009/11/27 17:54] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Web MP3 Streaming ====== | ||
+ | I now have all my music on the NSLU and use [[http://edna.sourceforge.net/|EDNA]] to stream to my native MP3 player. | ||
+ | |||
+ | ===== DDNS Configuration ===== | ||
+ | |||
+ | I configured the domain name mp3.dbzoo.com as a CNAME for dbzoo.dyndns.org which is a DDNS domain automatically updated by my router. | ||
+ | |||
+ | This way I don't have to remember the IP address of my home. | ||
+ | |||
+ | ===== Web Proxy ===== | ||
+ | |||
+ | Light HTTPD is small lightweight HTTP server very suitable for the task: | ||
+ | <code> | ||
+ | ipkg install lighttpd | ||
+ | </code> | ||
+ | |||
+ | I use Light http to listen on port 80 and transparently forward this request to the appropriate backend webservice. EDNA is also running on the SLUG. However if in the future I want to move EDNA I only need to adjust the proxy rule. | ||
+ | |||
+ | /opt/etc/lighthttp/lighthttp.conf - enable MOD_PROXY then add the following. | ||
+ | <code> | ||
+ | server.modules = ( | ||
+ | "mod_proxy", | ||
+ | ... | ||
+ | </code> | ||
+ | |||
+ | Setup up a Virtual hostname redirect | ||
+ | <code> | ||
+ | $HTTP["host"] == "mp3.dbzoo.com" { | ||
+ | proxy.server = ( | ||
+ | "" => ( | ||
+ | "mp3" => ( | ||
+ | "host" => "127.0.0.1", | ||
+ | "port" => 8082 | ||
+ | ) | ||
+ | ) | ||
+ | ) | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | ===== EDNA ===== | ||
+ | |||
+ | Download the EDNA distribution | ||
+ | <code> | ||
+ | cd /root | ||
+ | wget http://surfnet.dl.sourceforge.net/sourceforge/edna/edna-0.6.tar.gz | ||
+ | </code> | ||
+ | |||
+ | Modify the **edna.conf** file. You will need to at least configure: | ||
+ | <code> | ||
+ | auth = user:password | ||
+ | port = 8082 | ||
+ | dir1 = /public/music = Jukebox | ||
+ | </code> | ||
+ | |||
+ | Make sure you have python installed | ||
+ | <code> | ||
+ | # ipkg install python | ||
+ | </code> | ||
+ | |||
+ | Startup EDNA | ||
+ | <code> | ||
+ | # edna edna.conf | ||
+ | </code> | ||
+ | |||
+ | {{tag>nslu2 mp3}} |