iTunes everywhere

It was great to get the iTunes share to work from my Linux server, but I got thirsty for more! I wanted to be able to listen to my music collection wherever I was. Especially at work and while writing my thesis in the library. This meant that I had to share my music library as an iTunes share over the Internet – fascinating thought. I found some instructions on how to achieve this, but again they weren’t really crystal clear. So this is how I did it.

Everything was already set up on the server side. The rendezvous broadcaster ‘mDNSResponderPosix’, the sharing mechanism ‘mt-daapd’ and the SSH server were already running, so nothing to be done there. On the client side, however, I had to set up a few services.

SSH Tunnel Manager settingsFirst of all, I needed an SSH tunnel from port 3689 on my MacBook to port 3689 on my Linux server. This can be done with a fairly simple shell command, but the problem is that you’d have to kill it manually each time you want to close the connection. Instead, I wanted a nice GUI on my desktop with “connect” and “disconnect” buttons. This was accomplished by downloading and installing the SSH Tunnel Manager software. It took me a few iterations before I got the settings right (see screenshot), but when I did, it was smooth riding. Partly because I had earlier set up a passwordless login to my server, which made opening the tunnel a matter of one click.

Network Beacon settingsThe SSH tunnel wasn’t enough, however. The instructions were talking about the ‘mDNSProxyResponderPosix’, which I had compiled on my Linux box. I didn’t quite understand what that had to do with my MacBook, so again I opted for the GUI version: the Network Beacon application. Worked nicely on Leopard once the settings were there (see screenshot). Starting the Beacon will pop up a share in iTunes with the name you typed in “Service Name” in the Network Beacon settings dialog.

So now everything was set up. Assuming you have both the Network Beacon and the SSH tunnel running, your iTunes should load the library from the remote server when selecting the share in the iTunes sidebar. At the same time, the service name changes to whatever you have broadcasted your library as on the remote server.

Advertisements

4 Comments

Filed under Geek speak, Linux, Mac

4 responses to “iTunes everywhere

  1. Sachi

    How do you get the blog header image to change ? I notice that everytime I return to “blog” tab from “projects” tab or vice-versa, the image changes again. Is it a javascript ?

  2. Sachi, it’s a feature of the K2 theme I’m using with WordPress. I’ve uploaded a set of images and ticked the checkbox “Randomize Header Image” in the K2 Options page.

  3. I cannot say how right you are!!! These other people have failed to see your point. I am going to put a link on my blog back to you ok?

  4. Oh man that’s great!!! You’re so right, everyone to date has failed to even see that, kudos!!! I’m going to link to your blog from my site, ok?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s