Does iTunes work (well) on Ubuntu?
Is there an alternative to iTunes where I can buy music/back up phone?
Solution 1:
iTunes is a closed-source program like Skype. So, there is no source code to compile from for Linux or any *nix based system. Also, Apple does not provide any binaries for Ubuntu, or even for any *nix based system. You have 4 options:
Option 1: Use a Windows emulator
Open a terminal (
Ctrl+Alt+T
), and runapt-get install wine
.Get iTunes for Windows at apple.com
Go to the terminal again (
Ctrl+Alt+T
) and runwine ./NAME_OF_EXECUTABLE.exe
and replaceNAME_OF_EXECUTABLE.exe
with the name of executable.Install as needed and when needed, run
wine ./NAME_OF_APPLICATION.exe
.
Disclaimer: Sometimes, wine will not work and use it at your own risk. You also may have issues and bugs with the installed application (iTunes)
Option 2: libimobiledevice
Go to Ubuntu Software Center, and check that
libimobiledevice4
is installed and latest version.Plug in device, and let the device mount automatically.
Open Nautilus, and find your device in the left column.
-
Select all the files, and copy to a directory in your home directory. Here's a script to do that:
#!/bin/bash [ -d ~/PhoneBackup ] || mkdir ~/PhoneBackup PATHOFPHONE=
df -h|tail -n 1|awk '{print $6}'
read -p "Is $PATHOFPHONE the location of files (yes/no)?" yesorno if [[ $yesorno == "yes" ]]; then echo Copying if diff $PATHOFPHONE $HOME/PhoneBackup|grep -iv common 2> /dev/null then difference=diff $PATHOFPHONE $HOME/PhoneBackup|grep -iv common
if [[echo $difference
== "" ]]; then echo "Nothing to do... already backed up" else rm -rf ~/PhoneBackup;mkdir -p ~/PhoneBackup; cp -r $PATHOFPHONE/* PhoneBackup/. fielse echo Everything already backed up exit fi fi
On all the tests, this script has worked. Feel free to post any bugs. As a workaround, just cp PHONEDIRECTORY ~/BACKUP
.
Option 3: Music Syncing
- Use Banshee or Amarok Player to sync your music. Use the Ubuntu Software Center to get those.
- To sync, follow instructions on many other guides. By far, this is the easiest idea out of the four.
Option 4: Run a Windows VM
- If you have a copy of Windows lying around, put it in a Virtual Machine, and use iTunes from there.
- Install kvm from the Ubuntu Software Center. Load the iso from the menu.
- Install iTunes from the Virtual Machine. For more info, do a Google on virtual machines for Ubuntu.
BTW, I use option 2 almost every month with no issues. Of course, there are some bugs, but I made it really quickly. FWIW, option 4 is just too hard to do and hogs your CPU and RAM. However, it's your choice on what you want to do.
HTH, James