Wednesday, November 29, 2006

Access a remote DAAP share by tunneling over SSH (Ubuntu/Edgy)

The mt-daapd wiki has a nice write up on how to access a remote DAAP (aka iTunes protocol) share by tunneling over SSH.

But the instructions are quite right for an Ubuntu/Edgy desktop. The short, short steps are:

$ ssh homeserver -N -f -L 192.168.118.33:6689:localhost:3689

Instead of using the default 3689 port, pick a high number. First of all it means you won't have to start the ssh tunnel as root and it won't confuse banshee which wants to use that port itself. Also you need to specify your local ip address (eg: 192.168.118.33)

$ avahi-publish-address -v -H UbuntuLaptop.local -s "my personal homeserver tunes" _daap._tcp. 6689 &

Avahi is not Apple based code, so there is no mDNSProxyResponderPosix command. The above line is the equivalent to "mDNSProxyResponderPosix 127.0.0.1 squeal "shareName" _daap._tcp. 3689 &"

$ banshee

To debug this, keep an eye on /var/log/mt-daapd.log on the system running mt-daapd.

It appears that Rhythmbox gets a little confused about trying to connect to localhost:6689. Now only banshee dies when closing.

5 comments:

  1. It appears that Rhythmbox gets a little confused about trying to connect to localhost:6689. Now only banshee dies when closing. really confusing????

    ReplyDelete
  2. Turns out I did not have avahi-publish-adress. However that is corrected by:

    apt-get install avahi-utils

    ReplyDelete
  3. [...] http://nozell.com/blog/2006/11/29/access-a-remote-daap-share-by-tunneling-over-ssh-ubuntuedgy/ [...]

    ReplyDelete
  4. Great, exactly what I needed - nowhere in tutorials wasn't mentioned needed local IP address in SSH tunel for DAAP. That went to working tunel for the first sight (working web Firefly management on DAAP server), but no cleint could really connect to it.

    I spent about 3 days of testing before I found this page!!!
    Thanx once more and have great rest of your life;-)

    ReplyDelete
  5. [...] a Linux client, instructions can be found here and here: ssh my@daap.server.no-ip.org -N -f -L local.ip:6689:localhost:3689 avahi-publish-address -v -H [...]

    ReplyDelete