This method is deprecated
Use This other method instead to sync iphone and ubuntu
http://www.mexlinux.com/how-to-sync-music-between-iphone-and-ubuntu-using-new-ifuse/
OK, now is beginig to be possible to sync your music from Ubuntu to your iPhone, thanks to the work of marcan and many others.
Disclaimer: This is very Alfa software, I didn’t invented any of the things I’m writing about, I just adpated the marcan instructions in the way they worked for me, to my personal systems, wich I’m sure many are using: Ubuntu Karmic Koala 9.10 and iPhone 3G with OS 3.1.2, by the way you need to have some music synced by iTunes before you can start.
Don’t cry if your iPhone melts:
1- update your system, either via synaptic or with
sudo apt-get update
sudo apt-get upgrade
2- Add the PPA repository with the needed packages :
deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu karmic main
Either adding it as root to your /etc/apt/sources.list file
Or with the GUI “Software sources”
Then add the key for the repo with this command:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F0876AC9
And update again with:
sudo apt-get update
3- Install the packages required for compilation, and the already packaged libraries:
sudo apt-get install git-core cmake autoconf libtool libglib2.0-dev intltool gtk-doc-tools libsqlite3-dev libxml2-dev libiphone-dev libplist1 libusb-1.0-0 libusb-1.0-0-dev libusbmux0 libusbmux-dev ifuse libiphone0 libplist0 libplist-dev
4-Get the libgpod code and compile it:
$ git clone git://gtkpod.git.sourceforge.net/gitroot/gtkpod/libgpod
$ cd libgpod
$ CFLAGS=”-g -O0″ sh autogen.sh –prefix=/usr
$ make
$ sudo make install
5-Create a folder to mount it, and mount it:
sudo mkdir /media/ipod
**connect your iPhone**
sudo ifuse /media/ipod
6-Create the needed directory and files:
cd /media/ipod/iTunes_Control
mkdir Device
Find your UUID with
lsusb -v | grep -i iSerial
grab your UUID wich is the 40 characters long text
and run the following command replaceing with yours:
ipod-read-sysinfo-extended /media/ipod
This has generated a needed file into the Device folder.
7-Thats it. Now you can open the gtkpod application and sync your iPhone.
Notes:
In order tu unmount your iphone first dissconect it via gtkpod and the you can use
sudo umount /media/ipod
And to mount it again just
sudo ifuse /media/ipod