PDA

Bekijk de volledige versie : HOW-TO, newb friendly: use mt-daapd as the box's itunes server



n00ben
01-01-2007, 22:52
I'm using mt-daapd because it allows me to password protect the server and share the music with the wan address instead of lan which is the case with ASUS vanilla. And it gives you a nice web interface showing stats.

the following assumes that you have K.C's custom firmware installed and followed his installation instructions...

the process is pretty straight forward, but here goes.

Disable the asus media server in the web interface..
hook up to your box by using the the private key created in my other how-to :)
dropbear with keys (http://www.wl500g.info/showthread.php?t=7728)

first of install mt-daapd, type:

ipkg install mt-daapd

next add:

# Start mt-daapd server
if [ -x /opt/etc/init.d/S60mt-daapd ]; then
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
fi

to your rc.local file.

next edit mt-daapd.conf in /opt/etc/mt-daapd/

nano /opt/etc/mt-daapd/mt-daapd.conf

if you ain't have nano installed, checkout, nano (http://www.wl500g.info/showthread.php?t=7109&page=5&highlight=nano)

You want to change the admin_pw to something else.
Change the mp3_dir to a folder you can reach with ftp.
change servername to something more saying.
change runas to your username on the box (or rather to the one you want to have privs)
I think it is a good idea to password protect that 10gb+ collection of music you ripped from your own cd's so ppl don't have easy access. So remove the '#' before 'password' and change the password to something else than mp3...

by default mt-daapd checks your mp3 directory every 10 min. I prefer to disable the background scanning and just manually start the scan when I add new music (this can be done from a nice web interface), so change rescan_interval to 0

there are many more settings you can play around with, but I think I covered the most essential.

next reboot your router, and you should now have a functionally itunes server. there is a webserver running at:
http://192.168.1.1:3689/ (if that is your router ip),
username is 'admin'
OBS that site is also accessible from wan. From this site you can see how much music you are sharing and manually start the scanning process

/regards
Henrik

jeromv
13-01-2007, 16:42
Thanks for this excellent contribution ! Many users have this problem...
But I have a question :
How can i edit the rc.local file ?
with windows editor?
Thanks

n00ben
13-01-2007, 17:43
Thanks for this excellent contribution ! Many users have this problem...
But I have a question :
How can i edit the rc.local file ?
with windows editor?
Thanks

you can type 'vi rc.local' or the more userfriendly 'nano' (which you need to install)

/regards
Henrik