{"id":1646,"date":"2014-10-27T10:00:33","date_gmt":"2014-10-27T15:00:33","guid":{"rendered":"https:\/\/www.foell.org\/justin\/?p=1646"},"modified":"2022-11-28T08:50:32","modified_gmt":"2022-11-28T14:50:32","slug":"adding-music-ipod-nano-6g-ubuntu","status":"publish","type":"post","link":"https:\/\/www.foell.org\/justin\/adding-music-ipod-nano-6g-ubuntu\/","title":{"rendered":"Adding music to iPod Nano 6G in Ubuntu"},"content":{"rendered":"<p>With all new Apple i-devices moving to the lightning connector, I&#8217;ve found my alarm clock with it&#8217;s 30-pin dock connector has reverted to it&#8217;s 20th century radio-only state of use. I suppose I could use an adapter, but it seems like a great way to break something (by adding a longer lever).<\/p>\n<p>Then I remembered I have a 6th generation iPod nano sitting in a drawer. You know, the one that looks like this:<\/p>\n<figure class=\"wp-caption thumbnail alignnone\" style=\"width: 521px;\">\n\t\t\t\t<a target=\"_blank\" href=\"http:\/\/www.pcmag.com\/slideshow_viewer\/0,3253,l=254255&#038;a=254255&#038;po=2,00.asp\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www7.pcmag.com\/media\/images\/233917-apple-ipod-nano-6th-gen.jpg\" width=\"521\" height=\"365\" class \/><\/a>\n\t\t\t\t<figcaption class=\"wp-caption-text\">Image courtesy PC Mag<\/figcaption>\n\t\t\t<\/figure>\n<p>But with older iPods that exist outside of the &#8220;App&#8221; and jailbreak realm, there a beast to contend with: iTunes. <!--more-->And I&#8217;m not the only one who wants to avoid iTunes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1661\" data-permalink=\"https:\/\/www.foell.org\/justin\/adding-music-ipod-nano-6g-ubuntu\/itunes-worst\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2014\/10\/itunes-worst.png\" data-orig-size=\"709,327\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"itunes worst\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2014\/10\/itunes-worst.png\" src=\"https:\/\/www.foell.org\/justin\/files\/2014\/10\/itunes-worst.png\" alt=\"itunes worst\" width=\"709\" height=\"327\" class=\"thumbnail alignnone size-full wp-image-1661\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2014\/10\/itunes-worst.png 709w, https:\/\/www.foell.org\/justin\/files\/2014\/10\/itunes-worst-300x138.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/p>\n<p>Since I&#8217;m a <a href=\"https:\/\/www.foell.org\/justin\/category\/business\/ubuntu\/\" title=\"Category: Ubuntu\">Ubuntu Linux guy<\/a>, I did some searching to see what the &#8220;State of the iPod&#8221; is in the Linux world. I came across several references to <code>libhashab.so<\/code> and <code>franck78.ath.cx<\/code> &#8211; some hacky shit with an unknown level of trust. Time to dig in and find out what&#8217;s really going on.<\/p>\n<h2>libhashab.so binary &#8211; trusted?<\/h2>\n<p>libhashab is a library that calculates a Unique ID hash for iPods. This enables software to talk nicely so your iPod will be able to read the files that are sent to it. Most iPods have a 20-byte ID, iPod Nano 6G has an 8-byte ID, rendering it unusable with the old libhashab.<\/p>\n<p>According to <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1611473&#038;page=4&#038;p=12606043#post12606043\" title=\"Does gtkpod support iPod Nano 6th Generation yet?\" target=\"_blank\" rel=\"noopener noreferrer\">danwood76 in this post<\/a> the person who figured out the new hash for the Nano 6G released a binary, but wanted some cash for the source code.<\/p>\n<p>So the fix is available in a binary-only form, but it&#8217;s been somewhat reverse-engineered. Danny Wood figured out that only 3 bytes of the compiled library need to be changed to make it work with the iPod Nano 6G.<\/p>\n<h2>It Works<\/h2>\n<p>Sure there&#8217;s no source code so it&#8217;s less trusted, but it&#8217;s only 3 bytes and more importantly <em>it works<\/em>.<\/p>\n<p>Here&#8217;s a more trusted source than <em>frank78.ath.cx<\/em>, and the readme has a little back-story on the whole thing: <a href=\"https:\/\/github.com\/denydias\/libhashab\" title=\"libhashab on GitHub\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/denydias\/libhashab<\/a><\/p>\n<p>I installed it and used <a href=\"http:\/\/banshee.fm\/\" title=\"Banshee Music Player \" target=\"_blank\" rel=\"noopener noreferrer\">Banshee<\/a> to drag and drop MP3s to my iPod Nano &#8211; works like a charm. Be warned that the computer with this &#8216;hacked&#8217; library will no longer be able to talk to the other iPods that previously worked. You&#8217;ve been warned \ud83d\ude0e<\/p>\n<div class='kindleWidget kindleLight' ><img decoding=\"async\" src=\"https:\/\/www.foell.org\/justin\/wp-content\/plugins\/send-to-kindle\/media\/white-15.png\" \/><span>Send to Kindle<\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>With all new Apple i-devices moving to the lightning connector, I&#8217;ve found my alarm clock with it&#8217;s 30-pin dock connector has reverted to it&#8217;s 20th century radio-only state of use. I suppose I could use an adapter, but it seems like a great way to break something (by adding a longer lever). Then I remembered&hellip; <a href=\"https:\/\/www.foell.org\/justin\/adding-music-ipod-nano-6g-ubuntu\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1,8],"tags":[116,193,14,75,166,127,94],"class_list":["post-1646","post","type-post","status-publish","format-standard","hentry","category-business","category-ubuntu","tag-apple","tag-fix-repair","tag-git","tag-github","tag-linux","tag-mp3","tag-music"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/1646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/comments?post=1646"}],"version-history":[{"count":14,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/1646\/revisions"}],"predecessor-version":[{"id":3582,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/1646\/revisions\/3582"}],"wp:attachment":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/media?parent=1646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/categories?post=1646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/tags?post=1646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}