HOWTO Convert from iTunes

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

[edit] This is woefully out of date. Most, if not all of this, is no longer valid

please provide reference or a link to what is valid. thanks.

[edit] Copy iTunes music

1. Copy all your iTunes music from your WinXP/MacOSX system to your Gentoo box. Example:

# mkdir /home/(yourusername)/Music
# cp -R "/fat-c/Documents and Settings/(yourusername)/My Documents/My Music/iTunes/" /home/(yourusername)/Music/

[edit] Obtain DeDRMS and FairKeys

If you don't have monodevelop, install it now. -- See the section on JusteTune if you dualboot and would rather not fuss with unmasking all the deps.

# emerge monodevelop

Download and extract the DeDRMS and FairKeys tarball files from here. On the command line, change to the extracted FairKeys directory and run the following:

# ./make.sh

Now the binary file FairKeys.exe will be in the build/bin/ subdirectory of the FairKeys directory. cd into that directory and run:

# mono FairKeys.exe <apple ID> <password>

If that works, your gentoo box is now outfitted with the necessary DRM keys (stored in ~/.drms/)

[edit] DeDRMS:

Change to the extracted DeDRMS directory and run:

# mcs -out:DeDRMS.exe *.cs

Now, whenever you want to remove the DRM protection on an m4p file, just run:

# mono ./DeDRMS.exe <filename>

[edit] KDE Tip

You can edit the m4p file type so that whenever you click on one of your music files (or a whole batch at the same time) KDE will automatically strip the DRM and give the file a new extension. Here's how to do it in KDE: Go to the Control Center --> KDE Components --> File Associations --> Audio, then add a new entry for files with an m4p extension. Add a program entry to the m4p file type that runs this command:

mono /.../DeDRMS.exe %f && rename m4p m4a %f

[edit] Play your iTunes AAC music

Make sure your music player of choice can play MPEG-4 audio files. Then proceed to enjoy your iTunes music in Linux! If you're craving a jukebox style player, just emerge rhythmbox or juk, both of which are excellent.

[edit] EASY Alternative: JusteTune

Just released by Jon Lech Johansen, the author of DeDRMS and FairKeys, comes [1], which is so aptly dubbed the "User-friendly version of FairKeys and DeDRMS." It too depends on the .NET Framework/Mono 1.1.8.

As you may have noticed, emerging monodevelop requires an inordinate amount of dependencies; all of which are hard-masked, keyword-masked, or sometimes both. In light of this, I decided to boot into Windows and run JusteTune off the .NET Framework.

Simply download the Framework if you haven't already, run the Windows Installer, start up JusteTune, Account->Authorize, enter appropriate data, then start dragging and dropping. The neat thing is, it directly modifies the protection part of the file, eliminating the need for this process to be repeated. Once you have stripped all your tunes, boot back into Gentoo and point your media player of choice to the same file you would have before -- only this time, they'll play (given the proper configuration of your media player).

Perhaps linux-specific instructions will come. Not until monodevelop isn't such a pain to merge, though.

Concerns or Compliments? Please use the Discussion section.

Personal tools