Share an iTunes Library Between 2 Macs
Having a Mac mini as a home theatre PC is great because it allows me to listen to my music collection on my living room sound system. Doing this requires an iTunes library though, so I’ve been looking for a way to synchronize the library on the mini with the library on my iMac.
This sounds a lot easier than it actually is. I have my music collection on a share on my server, so I don’t have to duplicate my music on both Macs, but it’s really the library files that need to be synced. The reason for this is that iTunes doesn’t have a function to monitor a directory for changes in content. If I add an album to my library from my iMac, the music gets copied to the server, but the mini won’t know about it, so that album will never get played there.
There’s an app called Syncopation that will keep two iTunes libraries in sync, but it requires the application to be open on both macs, and it costs $25. That’s too much to pay for something I should be able to do for free.
What I decided to try (and I suggest you back up your library files if you try this) was to share the iTunes directory on my iMac with my mini. Then, I just made an alias on my mini from ~/Users/username/iTunes to the iTunes directory on my iMac.
I’ve been successful with this so far. I’ve had music playing on both macs at the same time, and updates to the library appear to work properly although I haven’t really put this method through it’s paces yet. I imagine I’m going to run into trouble if both macs try to update the library at the same time, but hopefully iTunes will handle this gracefully.
All of this won’t work between a Mac and a PC. There are differences between the library files for Mac and Windows. I think it has to do with file paths, although you might have some success between two PCs (would Windows shortcuts even work?).
I’ve done something similar with iPhoto as well. I just opened iPhoto while holding the option key and chose the library on my iMac. This will only work if iPhoto isn’t open on the other Mac though since iPhoto locks the directory when it’s open.
Anyway, if there’s a better way to do this, I definitely want to know about it. Maybe there’s even a free app out there to do the job. If you know of a solution, please send me an email, or better still, leave a comment for all to read.








May 6th, 2008 at 4:44 pm
This is something that I’ve looked into in the past but never really had a need to implement, but I have always thought that one day I will end up needing to do this, so every article I come across on syncing/sharing libraries I save. And thanks to delicious they are all right here: http://del.icio.us/sean_w_mcgrath/itunes
There is some non-syncing stuff in there, but there is only 9 or so links so it isn’t hard to sift through.
I hope this helps!
May 9th, 2008 at 11:28 am
For the PCs, my solution was to use a shared server and map both machines to the same drive location. I never tried letting two machines update using iTunes and see what happens (never thought about it really…), I would simply add new music to the repository and then force the update to the iTunes library manually without making any physical changes to structure, etc.
I can’t test it right now, because I have converted the other machine to a Ubuntu Linux box, and I doubt I will ever bother getting another PC, I will likely go Linux and/or Mac from now on anyway. I get laptops with Windows through work for when I want to get frustrated…
I don’t use iTunes to manipulate my music/directories, iTunes on a PC is too kludgy! I only use iTunes because my iPod Touch and Shuffle need it to survive…
May 11th, 2008 at 7:56 pm
Hey Chris,
Thanks for the comment. The big part of what I wanted to do was keep the iTunes meta data synced across two machines. This way, my playlists, new songs, podcasts, etc… would be accessible from both Macs without any intervention on my part.
So far, just pointing both Macs at the same iTunes xml files has worked without incident, and I hope it stays that way because it’s actually the simplest solution too.
August 15th, 2008 at 2:24 am
Christopher,
I have been trying to do this same exact thing and have tried to follow your directions but are unclear as to the line where you say you created an alias on your mini. Could you explain that part for me in detail please? Any help would be greatly appreciated.
September 24th, 2008 at 12:41 pm
Hi Chris:
would you have any idea why this doen’t work the other way round? My setup is this: Mac Mini as media center, MacBook Pro as workstation. Music and library reside on different shares on the Mac Mini server. Access from the MBP is all good, but when I try to use those same library files using the Mac Mini’s own iTunes copy, the library opens all right – but as soon as I click on a title to play, I get that “please access the volumes and files locally” message.
Is there a way to make this work? It seems the problem is that the library, originally created on the MacBook Pro, (correctly) references the media files as being on a network share and cannot open them because that share is local on the Mac Mini…!!!!
I don’t want to use iTunes sharing, as I would like to manage the library mainly (but if possible not exclusively) from the MBP.
Thanks a lot in advance for any input!
October 6th, 2008 at 8:40 am
@Harold: I’m not sure why you might be having a problem like this. I’ve had a setup like that in the past where my music was on a server, but I never had a problem with iTunes refusing to use the share. Good Luck though.
Chris