Archive for December, 2006
Today was a bit of a slow day–I still cannot get Media Center 11 to run under Wine–so I thought I might give a shot to get mt-daapd to serve up files to a daap enabled client on Windows. iTunes is the obvious choice for a client but the UI sucks so bad that I want to slam my hands in a drawer and staple my eyes shut but luckily a kind soul has made a plugin for Winamp which makes me happy.
Here’s how it went down:
Server Side:
- Make sure you are running SSH and if your not ask yourself why.
- Grab mt-daapd and take care of any dependencies:
libsqlite0
libsqlite0-dev
gawk
gcc (this will install gcc-4.0)
libid3tag0-dev
libgdbm-dev
- Edit /etc/mt-daapd.conf to your liking such as mp3_dir and servername
- Grab Avahi and take care of any dependencies:
avahi-daemon
avahi-utils
libnss-mdns
- Edit /etc/nsswitch.conf to ensure that mdns is on the hosts line:
hosts: files dns mdns
- Give dbus a kick: sudo invoke-rc.d dbus restart
- Get your avahi-daemon running: sudo invoke-rc.d avahi-daemon start
- Fire up mt-daapd: sudo mt-daapd
Client Side
- Get yourself a copy of iTunes, only if you are a masochist, or snag Winamp with the DAAP plugin if you love yourself.
- Install Rendezvous Proxy and configure it (you need this to fool the client into thinking that the mt-daap server is on the same subnet):
IP Address - 127.0.0.1
Port - 3689
Host Label - Your_DAAP_Server_Name_Here
Service Type - daap - Set up a tunnel with Putty for port 3689, which is just like doing it for TightVNC.
- Fire up iTunes or Winamp and wait for it to stumble onto your DAAP shares.
Well, that’s it in a nutshell.
Cribbed from James Henstridge’s write up about Avahi on Breezy, this thread, and this one.
**Update**
If Avahi seemingly won’t start check /etc/default/avahi-daemon and make sure it reads: AVAHI_DAEMON_START=1

Media Jukebox is a nice start but only if I could figure out how to keep Media Center 11 from endlessly crashing.
So yes, this is stupid simple and I’ve put it off far to long–world renown for my sloth–but here’s the quick lowdown for ddclient.
- Grab and install either from Synaptic or apt-get.
- Walk through the little install wizard then do it all over again: dpkg-reconfigure ddclient. You want to make sure it runs as a service and monitors changes in ppp–something that the install wizard doesn’t cover.
- Then tweak /etc/ddclient.conf:
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
pid=/var/run/ddclient.pid
protocol=easydns
use=web
server=members.easydns.com
login=yournamehere
password=’password’
*.your.domain - Restart the service: sudo /etc/init.d/ddclient reload
One of the things I noticed when fiddling with ddclient was that it doesn’t work so well with wireless cards. Sounds stupid, but I was testing in on my laptop and never got very far because it wouldn’t update the IP address so my sloth settled in and I never took the initiative to test it on a box with a wired connection.




