Ipod Touch Sync’ed to Amarok in Gentoo

First, as always, I am not responsible for any damages done to your equipment, if you choose to jailbreak and modify your device, that is on you!!

Now, you will need to obtain a version of the 2.x firmware, and your device will need to be jailbroken. After you have jailbroken the device, you need to install ‘OpenSSH’ and ‘Mobile Terminal’ from Cydia or Installer. These allow the obvious, ssh access and a terminal on the device.

On your linux box, you will need Amarok 1.4.10 or before, sadly, Amarok 2.0 will not work yet. You will also need sshfs and fuse.

# echo "media-sound/amarok ipod" /etc/portage/package.use
# emerge sys-fs/fuse sshfs-fuse =media-sound/amarok-1.4.10-r2

Set a static ip address on the device to match your the network your linux box is on.

Now, ssh into the device, the root password is defaulted to alpine.

$ ssh root@192.168.1.110

Edit the /etc/ssh/ssh_config on the device, and add the following lines:

iTouch# nano /etc/ssh/ssh_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

Next, you need to generate a ssh key for passwordless login into the device, and copy it to the device.

$ ssh-keygen
$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.1.110

Now to make sure that your permissions are set right for passwordless login:

iTouch # cd ~
iTouch # cp .ssh/authorized_keys .ssh/authorized_keys2
iTouch # chmod 755 /var/root
iTouch # chmod 700 /var/root/.ssh
iTouch # chmod 644 /var/root/.ssh/authorized_keys
iTouch # reboot

After your device has rebooted, test your connection to make sure that you can log into your device without a password.

$ ssh root@192.168.1.110

If all is well, mount the device to your desired directory, or you can use ipod-touch-mount or iphone-mount in Ubuntu.

$ mkdir ~/itouch
$ sshfs root@192.168.1.110:/var/mobile/Media ~/itouch

Next, we have to get and set the Firewire GUID:

$ cd ~/itouch/iPod_Control/Device
$ su
# lsusb -v -d 05ac: | grep iSerial | awk '{print $3}' | cut -b1-16 | xargs printf "FirewireGuid: 0x%s\n" > SysInfo

Reboot the device. Now, before we can continue with syncing and adding music to the device, we have to modify the database version. This will allow libgpod to recognize and sync your device to Amarok. Sadly, I haven’t gotten this to work with RhythmBox or Exile.

We are going to log into the device, and edit the checkpoint.xml file…

$ ssh root@192.168.1.110
iTouch # nano /System/Library/Lockdown/Checkpoint.xml

Search for the DBVersion Key, and change the value from 4 to 2.

iTouch # reboot

The last thing we have to do is add your device to Amarok so that it will populate your music and you can sync your device.

  • Launch Amarok, and go to Settings => Configure Amarok…
  • Click the ‘Media Devices’ botton at the bottom
  • Click ‘Add Device…’
  • Select ‘Apple iPod Media Device’
  • Name your Device
  • The mount point should be ‘/home/$USER/itouch’ (unless you are using ipod-touch-mount, then it is /media/ipod)
  • Click Ok, and your are all set. Once you are in Amarok, just go to the devices tab on the bottom left (printed sideways) and click the ‘Connect’ button on your device and your music will populate in that device window. You can drag and drop your music into that device from your Amarok music collection as well.

7 Responses to “Ipod Touch Sync’ed to Amarok in Gentoo”


  • this is absolutely brilliant. all the information needed in one place, with optimal settings. i have been looking for the pieces / parts for a while, but this has been the best quickstart i could have hoped for.

    just want to sync music with my 2G ipod touch on linux. my only issue to sort out is that it seems i have to reboot the ipod to see the uploaded songs. not sure if this is correct or not.

    now just need to figure out a good (gui) way to get everything done. i LOVED floola on my video 5G, but not an option here. may need to use a variety of apps to get all that functionality, unless i find a better suggestion.

    thanks!

    paul

  • Actually, you do not have to sync… just go to your music, and then hold the home button down until it soft-resets, after it returns to the dashbaord, just click music again, and the list should be updated.

    I will add that to the walkthrough above.

    I am glad this could halp you.

  • I can’t seem to find the directory /var/mobile/Media/iTouch/iPod_Control on my iTouch

    I have /var/mobile/Media/iTouch/iTunes_Control but it does not have a Device sub-directory…

  • ******** EDIT ************
    I can’t seem to find the directory /var/mobile/Media/iPod_Control on my iTouch

    I have /var/mobile/Media/iTunes_Control but it does not have a Device sub-directory…

  • hello
    i tried following your tutorial but i encountered a problem.
    i have no iPod_Control folder in /var/mobile/Media (just an iTunes_Control one).
    i tried creating it and following the rest, but when i try to connect through amarok i get “Media Device: No mounted iPod found”
    any help would be apreciate
    juan

  • I will look into this for you guys, with the recent firmware update though, I am trying to get the new 3.0 firmware to work with Amarok 2. They have made a lot of progress with A2, and I look forward to getting that working.

    I will update when I get it online.

  • Any update with getting this to work with the 3.0 firmware?

Leave a Reply