Installing iTunes in Wine

*Update* 18/09/2009

Hey guys! Looks like the current Source code of WINE already has the patches installed. So ignore the commands between the “*{” and “}*

Thanks

Sol ^_^


My 3h of hell – or How I got iTunes installed in Ubuntu….

This is my first tutorial So i’m sure their will be a few things i’ve missed or not explained clearly. I’ve tried to aim the instructions at a beginner level (apologies if it’s overly simplistic.)

If you have any comment’s suggestions or questions please post a message below.

OK *Warning*. This is going to be ”Command line” and Time heavy.

Now the “command line” is not as scary as you might think, Just take a deep breath and when in doubt copy ‘n’ paste rather than type ^_^

I’m running Ubuntu 9.04 (This should work in other versions of Linux but you might need to change a few of the commands.)

In reality it took me 3 to 5 hours or searching and compiling then removing then compiling again to get his to work. Hopefully this post will help shave off a few hours for you…

Part 1

Getting things ready

There are 2 ways to get the required files for this install.

a) Synaptic (easy to use interface)

or

b) Terminal (lots of typing and does not look as nice)

A) Synaptic

First thing you need to do is open Synaptic Package manager

System / Administration / Synaptic Package Manager.

1) Remove the Ubuntu version of WINE (Might not be required but helpful to be as clean as possible) Use “ search” within Synaptic to find “WINE”.Then click on the shaded box next to it and select “Mark for Removal” You might find a few packages, if in doubt only remove WINE and WINE-dev

2) Next use the “Search”to find the following packages and make sure they are installed:

build-essential, git-core, gitk

This might take a few mins to install these packages.

B) Terminal

Open the terminal (Applications / Accessories / Terminal)

Type or copy paste the following (pressing return after every line and selecting “y” when required):

sudo apt-get update && sudo apt-get upgrade

sudo apt-get remove WINE

sudo apt-get autoremove

sudo apt-get install build-essential git-core gitk

sudo apt-get build-dep wine

Line 1: Updates you’re install so you have everything upto date (This might take a few seconds or mins depending on connection speed and how many updates you require.)

Line 2: This removes and current installation of wine (This will save all user files and windows programs already installed.)

Line 3: This cleans up any installed software no longer required (their might be a few items or nothing listed.)

Line 4: This installs the essensial files required to get WINE to compile and run.

Line 5: This installs any software that WINE will require to run properly (These are known as dependences.)

Part 2

Getting and Compiling WINE

Now you need to get the source code for WINE

Now Copy and paste the following in to the command line:

(Now depending on your connection it can take a while since you are downloading 200Mb of information)

git clone git://source.winehq.org/git/wine.git wine

Explanation of the above line:

git = it’s a program used for storing and controlling large Projects/Programs

clone = just as it sounds; take an exact copy form the following location

git://source.winehq.org/git/wine.git = this tells the git program where to look on the internet

wine = where to put all the files (it will create the folder for you)

*{

Next download the “wine-itunes-hacks.tar” file and extract it to the /wine/ directory

in Terminal go to the wine directory and run the following commands

git apply “colpatch.txt

git apply “firewallhack.txt”

git apply “ituneshack.txt”

This changes (patches) a few files in the Wine source code to let iTunes to install.

}*

Now it’s the long boring bit!

Compiling “wine”

(basically taking all that source code you downloaded and making it into a program that your machine can use and run.

To make sure you are in the wine directory, type the following in the terminal:

cd ~/wine/

Then type the following:

./configure && make depend && make

This will take 10 mins to an hour depending on the speed of your machine)

Hopefully the above will run without errors (If it has an error let me know). Once it’s finished type the following

sudo make install

This will install wine into your machine.

Part 3

Installing iTunes

Now download iTunes form the apple website. Save it to somewhere you can easily find you’re home or Desktop folder will do. In Terminal go to the folder where you saved ”iTunesSetup.exe” Then type the following:

wine iTunesSetup.exe

Follow the instructions in the installer (Note The terminal will scroll up a lot of information, you can just ignore it.) once the install is finished you can safely close the terminal window.

You can now go to Applications / Wine / Programs / iTunes / iTunes

Give it a few seconds or two and iTunes should not be started….

There that was not so hard was it?

—–



Tags: , ,

5 Responses to “Installing iTunes in Wine”

  1. [...] This post was Twitted by s0l_uk [...]

  2. [...] This post was Twitted by lhgreene [...]

  3. [...] Installing iTunes in Wine « S0l-UK s0l-uk.com/wordpress/2009/08/installing-itunes-in-wine – view page – cached S0l-UK » Installing iTunes in Wine Comments Feed S0l-UK Welcome to: S0litaire – United Knowledge Finally got iTunes to run in Ubuntu… — From the page [...]

  4. raymond says:

    im having a problem with this part i downloaded this part the wine-itunes-hack.tar what do you mean by extract it? and i cant find the /wine/directory can someone help me well please let me know any help thnx

    *{

    Next download the “wine-itunes-hacks.tar” file and extract it to the /wine/ directory

    in Terminal go to the wine directory and run the following commands

    git apply “colpatch.txt“

    git apply “firewallhack.txt”

    git apply “ituneshack.txt”

    This changes (patches) a few files in the Wine source code to let iTunes to install.

    }*

  5. admin says:

    When you get the wine source code it creates a Directory called /wine/ and that is where you shoud be.

    *note*
    This guide is outdated. Improvements listed here to the Wine program have already been included so you should not require to apply the patch files.

    If you are have any other issues please let me know.

Leave a Reply