iPhone 3G 3.1.3 sync with Debian

By | June 20, 2010

This post is mainly for my reference but hopefully it may help some of you. I am running CrunchBang Linux 10 which uses Debian Squeeze as a base. I changed my /etc/apt.conf from “squeeze” to “testing”.

This is how I got my iPhone 3G to sync in Debian.

Step 1 – Install needed packages.
apt-get build-dep libgpod gtkpod ifuse
apt-get install git libsqlite3-dev checkinstall

Step 2 – Install packages from Sid / Unstable.

libimobiledevice
libimobiledevice1
libplist1
libplist-dev
libusbmuxd-dev
libusbmuxd1
usbmuxd

sudo dpkg -i usbmuxd*.deb lib*.deb


Step 3 – Download and install ifuse
git clone git://git.sukimashita.com/ifuse.git
cd ifuse
./autogen.sh --prefix=/usr
make
sudo checkinstall -D make install

Step 4 – Download and install libgpod
git clone git://gtkpod.git.sourceforge.net/gitroot/gtkpod/libgpod
cd libgpod
./autogen.sh --prefix=/usr
make
sudo checkinstall -D make install

Step 5 – Download and install gtkpod
git clone git://gtkpod.git.sourceforge.net/gitroot/gtkpod/gtkpod
cd gtkpod
./autogen.sh --prefix=/usr
make
sudo checkinstall -D make install

Step 6 – Create mountpoint
sudo mkdir /mnt/iPhone
sudo chmod 777 /mnt/iPhone/
sudo useradd -G fuse <username>

Step 7 – Get iPhone ready
Plug in iPhone, then run.
ifuse /mnt/iPhone
mkdir /mnt/iPhone/iTunes_Control/Device/
sudo lsusb -v | grep -i iSerial (get the long iSerial number)
ipod-read-sysinfo-extended <iSerial number> /mnt/iPhone/

Now you should be able to load gtkpod and sync music to the iPhone.

  • Vaughan

    Nice! Thanks for posting this! Can’t wait to try this myself.