Slamd64

Please see www.slamd64.com for information on Slamd64.

Twitter

RSS Feed Available

permalink :: trackback

Using an iPod Touch (or iPhone?) with Amarok
(posted by Fred Emmott at 2007-11-26 19:57:53)

Well, there's a lot of partial instructions on the web, but not a consistent set all the way through, so here's my attempt - hopefully there's enough information here to find everything you need here. Also, this is going to involve resetting your iPod to factory settings, so you'll lose everything currently on it. These instructions should also work on an iPhone - of course, these instructions are for information only, do it at your own risk. Also, sorry, you need a Windows/OSX machine to do the initial setup, and, you need a wireless LAN where you want to sync (with internet connection for setup) - on the plus side, you'll have wireless sync, which even Windows and OSX users don't have :)

  1. Download the 1.1.1 and 1.1.2 firmware images for your iPod Touch/iPhone
  2. Open iTunes, go to your iPod's tab, and shift-click (option-click) "Restore", and select the 1.1.1 firmware image you downloaded earlier
  3. Go to JailBreakMe.com in Safari on the iPod, and click the install link at the bottom
  4. You now have an "Installer" application - run it, then click "Install" at the bottom; click "Tweaks (1.1.1)", then "OktoPrep", and click yes when it asks you if you want to install it
  5. Open iTunes, go to your iPod's tab, and shift-click "Update" (*NOT* "Restore"), and select the 1.1.2 firmware
  6. Download and run the touchfree jailbreak 1.1.2 software - tick "Enable SSH Server", change the password, and press the magic button
  7. Wait a long time for it to finish, and for your iPod to reboot a few times
  8. Click "Install", then "System", and "BSD Subsystem", and say yes when it asks if you're sure
  9. ssh to root@your.ipod.ip.address, and edit /etc/sshd_config (nano, vi, vim are available), enabling rsa public key authentication
  10. Make a passwordless rsa ssh key
  11. ssh-copy-id it to your root@your.ipod.ip.address
  12. restart sshd on it (from the "SSH" icon in the iPod's launcher)
  13. Install fuse, sshfs-fuse, and a recent build of libgpod onto the linux machine you want to sync it with
  14. sudo mkdir /mnt/ipod; sudo chmod 755 /mnt/ipod
  15. Mount the iPod's media area with "sshfs root@your.ipod.ip.address:/var/root/Media /mnt/ipod"
  16. cd to /mnt/ipod
  17. ln -s iTunes_Control iPod_Control
  18. cd iPod_Control/Device
  19. sudo lsusb -v -d 05ac: | grep iSerial | awk '{print $3}' | cut -b1-16 | xargs printf "FirewireGuid: 0x%sn" > SysInfo
  20. Leave /mnt/ipod
  21. fusermount -u /mnt/ipod
  22. Open Amarok, and open the page for configuring media devices (Settings->Configure->Media Devices)
  23. Add a new iPod device, at /mnt/ipod (or /media/ipod, depending on your distribution)
  24. Click the two cog wheels by your iPod in Amarok's list of Media Devices
  25. In the "Pre-connect command" box, type "sshfs -o workaround=rename root@ipod.ip.addres.here:/var/root/Media /mnt/ipod" ("workaround=rename" fixes issues with album art).
  26. In the "Post-connect command" box, type "fusermount -u /mnt/ipod"
  27. Use Amarok's "Devices" pane to sync music to and from it - remember that you have to exit and restart the Music app on the iPod after syncing (open it, and hold down the home button until it disappears)

If you're a user of a 64-bit distribution, you'll need a small patch for libgpod.

Trackbacks

No trackbacks for this post

Comments

Or for those with a day job...

Posted at 2007-11-26 21:00:04 GMT +0000 by "Tim"

1. Curse Apple. 2. Take back iPod Touch & wait for some company to surpass the iPod. Please? Anyone? I'll pay lots...

LOL

Posted at 2007-11-26 21:08:05 GMT +0000 by "Anonymous"

That sounds easy. Only 27 steps involved. Just another reason never to buy an ipod if it doesn't work well with the greatest music player. Wouldn't have bought one anyway though.

lol

Posted at 2007-11-26 22:57:34 GMT +0000 by "fish"

iPods? they can't even play ogg. I'll pass.

Nice Post

Posted at 2007-11-28 16:19:45 GMT +0000 by "Abhay"

I really like it. Its easy to follow. I am using it in my blog at abhay-techzone.blogspot.com. Of course I will fully acknowledge the fact that the orignal content is from you. If you have any issue with this, please leave a comment at my blog or mail me at srivastava[dot]abhay[at]gmail[dot]com

This *almost* works for me...

Posted at 2007-12-05 20:57:25 GMT +0000 by "not quite as geeky as i could be"

...except that my Touch doesn't wanna see that there's music on it, even after I restart the Music app (and/or after I restart the whole system). I can use Amarok to see -- and play -- tunes I've added to the Touch ... but only through Amarok. I can use Konqueror to see that there are, in fact, mp3s in the iTunes_Control folder-tree (which appear to be linked to via iPod_Control). But the Touch still thinks it's tuneless. Am I simply missing something obvious? TIA (and Thanks for all the help above, too, of course)

Almost works for me too

Posted at 2007-12-07 17:51:31 GMT +0000 by "Kevin Newman"

I get to this: $ cd iPod_Control/Device bash: cd: iPod_Control/Device: No such file or directory

Works now

Posted at 2007-12-07 18:17:13 GMT +0000 by "Kevin Newman"

I had to manually add that directory. Apple has changed something since these directions were posted. I made it work using the directions here: https://help.ubuntu.com/community/PortableDevices/iPhone

Photo and Video Management

Posted at 2007-12-30 18:51:09 GMT +0000 by "Rob S"

Excellent tutorial. Best I've found. Any idea on getting support for transferring Photos or Videos from Linux to your Ipod Touch?

problems w/ eee

Posted at 2008-01-26 08:13:00 GMT +0000 by "JAe"

Trying to get this running on my eee pc running xandros. @ "ssh to root@your.ipod.ip.address, and edit /etc/sshd_config (nano, vi, vim are available), enabling rsa public key authentication" how do i enable rsa public key auth in a seemingly empty file? many thanks =)

Small notes

Posted at 2008-05-11 11:56:03 GMT +0000 by "svu"

1. Probably it would make sense to include the command line for ssh-keygen, wouldn't it? Just for newbies, you know... 2. It helps hacking ~/.ssh/config with Host your.ipod.ip.address IdentityFile ~/.ssh/id.ipod 3. In my son's Ipod Touch the directory on ipod is not /var/root/Media but /var/mobile/Media. Would you put a note about it? AFAIK it starts with firmware 1.1.3

One more

Posted at 2008-05-11 12:04:26 GMT +0000 by "svu"

> sudo mkdir /mnt/ipod; sudo chmod 755 /mnt/ipod 755 makes it writeable by root only. 777 would be less secure but available to other users. Or 775 with appropriate group arrangements (for example, creating group ipod and using chown).

1.1.4 different directory structure

Posted at 2008-06-03 03:46:06 GMT +0000 by "Anonymous"

I'm using 1.1.4 firmware on my iPod Touch. The directory structure is a bit different. The core Media directory is: /private/var/mobile/Media I also had to create the directory /private/var/mobile/Media/iPod_Control/Device Amarok pre-start command: sshfs -o workaround=rename root@ipod:/private/var/mobile/Media /media/iPod_Touch So far can't get key based login to work without a password. Still trying...

problem to connect to my iphone by ssh

Posted at 2008-06-12 19:58:27 GMT +0000 by "stylee"

Hi Fred, I have the following message : [root@localhost stylee]# ssh root@192.168.1.21 ssh: connect to host 192.168.1.21 port 22: Connection refused How can manage ? Thanks for your response

goDOfbPbKFqAAiogbs

Posted at 2008-07-22 08:00:24 GMT +0000 by "flower1800"

fxANKD fdasjhgadghi hdagh iao hiasoh fgiash isafohsa

Submit a comment

Colour of an orange:
Name:
Subject:
Message:

Valid XHTML Valid CSS