{"id":361,"date":"2011-01-09T23:16:10","date_gmt":"2011-01-10T04:16:10","guid":{"rendered":"https:\/\/dillernet.com\/apple\/?p=361"},"modified":"2011-01-19T01:26:39","modified_gmt":"2011-01-19T06:26:39","slug":"ultimate-guide-to-plex9-on-appletv-2g-with-4-2-1","status":"publish","type":"post","link":"https:\/\/dillernet.com\/apple\/2011\/01\/09\/ultimate-guide-to-plex9-on-appletv-2g-with-4-2-1\/","title":{"rendered":"Ultimate Guide to Plex9 on AppleTV 2G with 4.2.1"},"content":{"rendered":"<p><strong>Update on Jan 12:<\/strong> You should use the <a href=\"http:\/\/blog.firecore.com\/3675\">SeasOnPass<\/a> app from fireCore &#8212; it does exactly what I outline below, only much more quickly and easily.<\/p>\n<p>After a few days of screwing around with a new AppleTV 2G that came from Apple with 4.2.1 pre-installed (so no going back to older firmware) and reading numerous blogs and forums (many which are just copying the original posts) I have Plex running on my AppleTV. <\/p>\n<p>Here is how I did it.<\/p>\n<p><strong>NOTE<\/strong>: When I use ATV in this post, I mean AppleTV 2G with firmware 4.2.1, the latest from Apple as of January 9th, 2011.<\/p>\n<p><strong>NOTE<\/strong>: This is a tethered-jailbreak (TJB), which means the ATV must be hooked up to your Mac via USB in order to BOOT it. Every time. <\/p>\n<p><em>Hopefully an un-tethered jailbreak will be released soon, so that you don&#8217;t need to do this.<br \/>\n<\/em><\/p>\n<p>This post will center on installing PLEX on the ATV, and so it assumes that there have been quite a few things already done to your ATV, in order to prepare it for PLEX.<\/p>\n<h1>Prerequisites:<\/h1>\n<h2>1. Jailbreak your ATV<\/h2>\n<p>At this time you must modify Pwnagetool in order to jailbreak the 4.2.1 ispw from Apple. A really good guide is over at <a href=\"http:\/\/www.funkyspacemonkey.com\/jailbreake-appletv-2g-running-ios-421-unofficial-bundle?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+FunkySpaceMonkey+%28Funky+Space+Monkey%29\">funkyspacemonkey.com<\/a>.  There is a slightly confusing post about how to this over on the <a href=\"http:\/\/www.appletvhacks.net\/2010\/12\/16\/how-to-jailbreak-apple-tv-2g-on-ios-4-2-1-with-pwnagetool\/\">Appletvhacks.net site<\/a> you can read that just to reinforce what is going on, however, the funkyspacemonkey.com is easier to follow.<\/p>\n<p>What worked consistently for me is this:<\/p>\n<ul>\n<li> Jailbreak using Pwnagetool with JUST USB connected to ATV\n<li> Restore Custom IPSW using iTunes with POWER and USB\n<li>  Boot ATV with POWER and USB (if you don&#8217;t have the power connected when you boot the ATV then you won&#8217;t have WIFI).\n<\/ul>\n<h2>2. Boot your TJB (tethered jailbroken ATV).<\/h2>\n<p>Here is a good guide at <a href=\"http:\/\/www.funkyspacemonkey.com\/jailbreake-appletv-2g-running-ios-421-unofficial-bundle?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+FunkySpaceMonkey+%28Funky+Space+Monkey%29\">funkyspacemonkey.com<\/a>.<\/p>\n<p>Booting my ATV consisted of:<\/p>\n<pre>\n$ cd Desktop\/tboot\/\n$ .\/tetheredboot -i iBSS.k66ap.RELEASE.dfu -k kernelcache.release.k66 \nInitializing libpois0n\nNo matching processes belonging to you were found\nWaiting for device to enter DFU mode\nopening device 05ac:1227...\nFound device in DFU mode\nChecking if device is compatible with this jailbreak\nChecking the device type\nIdentified device as AppleTV2,1\nPreparing to upload limera1n exploit\nResetting device counters\nSending chunk headers\nSending exploit payload\nSending fake data\nlibusb:error [darwin_transfer_status] transfer error: timed out\nExploit sent\nReconnecting to device\nWaiting 2 seconds for the device to pop up...\nopening device 05ac:1227...\nUploading iBSS.k66ap.RELEASE.dfu to device\n[==================================================] 100.0%\nlibusb:error [darwin_reset_device] ResetDevice: device not responding\nlibusb:error [darwin_close] USBDeviceClose: no connection to an IOService\nWaiting 10 seconds for the device to pop up...\nopening device 05ac:1281...\nSetting to configuration 1\nSetting to interface 0:0\nUploading kernelcache.release.k66 to device\n[==================================================] 100.0%\nlibusb:error [darwin_transfer_status] transfer error: device not responding (value = 0xe00002ed)\nExiting libpois0n\n\n<\/pre>\n<p>The output may look confusing, but it worked. The test is to try and ssh over to the ATV. Note that I had the Desktop\/tboot\/ directory setup and prepared according to the posted guides on what to do. <strong>It&#8217;s not just going to work<\/strong>. Read the guide.<\/p>\n<h2>3. Setup your ATV on your network<\/h2>\n<p>If you are using WIFI or wired and DHCP, you need to get on the ATV and find out what IP address it was assigned in order to complete the next step. To find the current IP of the ATV go here: [Settings\/General\/Network].<\/p>\n<h2>3. ssh into your ATV<\/h2>\n<p>It should be on the network and no longer connected to your mac via USB. Ssh in as root, the password is &#8216;alpine&#8217;.<\/p>\n<p><code>$ ssh root@192.168.251.106<\/code><br \/>\nNote: Use your local IP address&#8230;.<\/p>\n<h2>4. PLEX9<\/h2>\n<p>You should have a <a href=\"http:\/\/www.plexapp.com\/\">PLEX9<\/a> media server installed and a PLEX9 client running. I downloaded the latest version from Plex and installed on a MacMini and did nothing other than set it up to read my media from a local NAS, and then ran the client. I verified that it was working by purchasing and installing the <a href=\"http:\/\/itunes.apple.com\/us\/app\/plex\/id383457673\">Plex client<\/a> from the iTunes store. This also helps support the plex project.<\/p>\n<p>I also purchased and installed the <a href=\"http:\/\/www.ambertation.de\/en\/klexi\/\">Klexi<\/a> Plex <a href=\"http:\/\/itunes.apple.com\/us\/app\/klexi-hd\/id391096729?mt=8\">mobile client<\/a>, to support the people at ambertation.de who are the ones responsible for much of the ATV iOS client.<\/p>\n<hr>\n<h1>Installing PLEX on ATV<\/h1>\n<p>Now you can follow along to install PLEX and Nitro.TV. Nitro.TV is from <a href=\"http:\/\/wiki.awkwardtv.org\/wiki\/Main_Page\">AkwardTV<\/a> and adds a nice menu interface to install additional software like weather and some additional tools.<\/p>\n<p>AkwardTV&#8217;s wiki has a <a href=\"http:\/\/wiki.awkwardtv.org\/wiki\/AppleTV_2\">nice page on the AppleTV<\/a> &#8211; but note it&#8217;s slightly out of date.<\/p>\n<h2>Commands on ATV:<\/h2>\n<p>Note: you do not type the &#8216;$&#8217; in the commands below&#8230;.<\/p>\n<pre>wget -O- http:\/\/apt.awkwardtv.org\/awkwardtv.pub | apt-key add -\n\n$ echo \"deb http:\/\/www.ambertation.de .\/downloads\/PLEX\/\" > \/etc\/apt\/sources.list.d\/plex.list\n$ echo \"deb http:\/\/apt.awkwardtv.org .\/\" > \/etc\/apt\/sources.list.d\/awkwardtv.list\n$ apt-get update\n\n$ apt-get install com.nito.nitotv\n\n$ apt-get -f install\nYes, do as I say!\n\n$ apt-get install com.nito.nitotv\n$ apt-get install com.plex.client-plugin\n\n<\/pre>\n<p>Each of the lines above was entered into the ATV via my ssh connection in the ATV&#8217;s shell.<\/p>\n<p>Breakdown of the commands:<\/p>\n<p><em>Note: some of those lines wrapped, they should not wrap in the shell. Copy and paste them into a text editor before you paste them, if you intend to.<br \/>\n<\/em><\/p>\n<p>1. Get the key for awkwardt and install it<br \/>\n2. Add the repos for PLEX and Nitro.TV<br \/>\n3. Update apt<br \/>\n4. The command to install nitrotv, and the subsequence commands removed libxml2-lib and sqlite3-lib, however, installing the PLEX package made everything work again.<\/p>\n<p>This is what the command looked like in my shell:<\/p>\n<pre>Apple-TV:~ root# apt-get -f install\nReading package lists... Done\nBuilding dependency tree... Done\nCorrecting dependencies... Done\nThe following packages will be REMOVED:\n  libxml2-lib sqlite3-lib\nWARNING: The following essential packages will be removed.\nThis should NOT be done unless you know exactly what you are doing!\n  libxml2-lib sqlite3-lib\n0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.\nAfter this operation, 36.9kB disk space will be freed.\nYou are about to do something potentially harmful.\nTo continue type in the phrase 'Yes, do as I say!'\n ?] Yes, do as I say!\ndpkg - warning, overriding problem because --force enabled:\n This is an essential package - it should not be removed.\n(Reading database ... 820 files and directories currently installed.)\nRemoving libxml2-lib ...\ndpkg - warning, overriding problem because --force enabled:\n This is an essential package - it should not be removed.\nRemoving sqlite3-lib ...\n<\/pre>\n<p>5. The last 2 commands install NitroTV and PLEX. Installing the PLEX package restarted &#8220;AppleTV&#8221; the main application interface (it was called &#8220;Lowtide&#8221; before version 4.2.1 of the iOS).<\/p>\n<p>If you need to restart AppleTv just run:<\/p>\n<p><code>$ killall AppleTV<\/code><\/p>\n<p>from the shell and you should see the interface restart.<\/p>\n<p>After this, Plex worked and I could connect to my Plex client running on the Macmini and play movies over WIFI.<\/p>\n<p>Then I plugged in the USB cable to keep the ATV powered and moved it to my TV. Then I used the powercable to keep the ATV powered at my TV. I&#8217;m enjoying movies, and as long as there are no power interruptions, I&#8217;m ok.<\/p>\n<h1>Final Words, Troubleshooting and Links<\/h1>\n<p>Some links that I found helpful:<\/p>\n<ul>\n<li><a href=\"http:\/\/forums.plexapp.com\/index.php\/topic\/20051-plex-client-for-apple-tv-2g\/\">Plex Forum<\/a> (the original post that started it all)\n<li> <a href=\"http:\/\/www.appletvhacks.net\/2010\/11\/04\/how-to-install-plex-on-apple-tv-2g\/\">AppleTVHacks<\/a>\n<li> <a href=\"http:\/\/www.funkyspacemonkey.com\/jailbreake-appletv-2g-running-ios-421-unofficial-bundle?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+FunkySpaceMonkey+%28Funky+Space+Monkey%29\">FunkySpaceMonkey<\/a>\n<li><a href=\"http:\/\/iphoneblogr.com\/2010\/10\/how-to-save-shsh-blobs-using-tinyumbrella-tutorial\/\">iphoneblogger<\/a> (saving your SHSH blobs)\n<li> <a href=\"http:\/\/appletvblogr.com\/2011\/01\/how-to-get-plex-running-on-4-2-1-frappliance\/\">AppleTvHacker<\/a>\n<\/ul>\n<p>Notes on Jailbreaking &#8211; I tried dozens of times to jailbreak the ATV and almost all of them ended up with the iTunes error of 1600, which is a generic USB error. I think it may have to do with DFU mode.<\/p>\n<p>The only consistent way I could get the jailbroken ISPW to load was to use Pwnagetool to get the ATV into DFU mode, then switch to iTunes and alt-restore in the custom IPWS. Trying to get the ATV into DFU mode while in iTunes never worked. YMMV.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update on Jan 12: You should use the SeasOnPass app from fireCore &#8212; it does exactly what I outline below, only much more quickly and easily. After a few days of screwing around with a new AppleTV 2G that came from Apple with 4.2.1 pre-installed (so no going back to older firmware) and reading numerous [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[35,41,42],"tags":[45,103,44,46],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-apple","category-appletv","category-plex","tag-appletv-2","tag-jailbreak","tag-klexi","tag-plex-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3PE01-5P","jetpack-related-posts":[{"id":353,"url":"https:\/\/dillernet.com\/apple\/2010\/12\/29\/jailbreaking-appletv-2-with-ios-4-2-1\/","url_meta":{"origin":361,"position":0},"title":"Jailbreaking AppleTV 2 with iOS 4.2.1","author":"dillera","date":"December 29, 2010","format":false,"excerpt":"The key information is that PwnageTool dosen't have a release for 4.2.1 as of today (December 29th.). If you buy a AppleTV today you get iOS 4.2.1 on it. Go here to funkyspacemonkey.com for the directions on how to make Pwonage work. * Get the right ATV FW version here\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/dillernet.com\/apple\/category\/apple\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":357,"url":"https:\/\/dillernet.com\/apple\/2010\/12\/29\/installing-plex-on-appletv\/","url_meta":{"origin":361,"position":1},"title":"Installing Plex on AppleTV","author":"dillera","date":"December 29, 2010","format":false,"excerpt":"http:\/\/www.funkyspacemonkey.com\/install-plex-appletv-2g","rel":"","context":"In &quot;Interesting&quot;","block_context":{"text":"Interesting","link":"https:\/\/dillernet.com\/apple\/category\/interesting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":375,"url":"https:\/\/dillernet.com\/apple\/2011\/01\/11\/new-jailbreak-tool-designed-for-appletv\/","url_meta":{"origin":361,"position":2},"title":"New Jailbreak tool designed for AppleTV","author":"dillera","date":"January 11, 2011","format":false,"excerpt":"Looks like FireCore has just released Seas0nPass- a app that is targeted towards jailbreaking just the AppleTV 2nd generation. It doesn't do anything more than Pwnagetool and usbmux,and it doesn't give you un-tehered jb, but it looks like it helps provide a clean easy way to jb and boot your\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/dillernet.com\/apple\/category\/apple\/"},"img":{"alt_text":"Seas0nPass.jpg","src":"https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2011\/01\/Seas0nPass.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":390,"url":"https:\/\/dillernet.com\/apple\/2011\/02\/09\/plex-vs-xmbc-on-appletv\/","url_meta":{"origin":361,"position":3},"title":"Plex vs. XMBC on AppleTV","author":"dillera","date":"February 9, 2011","format":false,"excerpt":"So now that XMBC is available for AppleTV2 it's time to compare it to Plex. I've played around with them for the past few days and can say that: Plex is worth the extra complexity. I've been told (never having used XBMC) that Plex was 'just a port' of it,\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/dillernet.com\/apple\/category\/apple\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2011\/02\/Screenshot.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2011\/02\/Screenshot.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2011\/02\/Screenshot.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2011\/02\/Screenshot.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2011\/02\/Screenshot.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":379,"url":"https:\/\/dillernet.com\/apple\/2011\/01\/16\/upgrade-atv2-plex-to-0-6-4\/","url_meta":{"origin":361,"position":4},"title":"Upgrade ATV2 Plex to 0.6.6","author":"dillera","date":"January 16, 2011","format":false,"excerpt":"What I had to to get 0.6.6: it's worth it, since 0.6.6 has resume-on-watch, and trick play now works for forwards and reverse tricks! $ - shell commands I entered from the JB'ed ATV2. [ ] - output from the commands. The biggest deal was removing the symlink for Plex's\u2026","rel":"","context":"In &quot;AppleTV&quot;","block_context":{"text":"AppleTV","link":"https:\/\/dillernet.com\/apple\/category\/appletv\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":351,"url":"https:\/\/dillernet.com\/apple\/2010\/12\/29\/jailbreaking-appletv-you-need-itunes-10-1\/","url_meta":{"origin":361,"position":5},"title":"Jailbreaking AppleTV? You Need iTunes 10.1","author":"dillera","date":"December 29, 2010","format":false,"excerpt":"Get it from this link: http:\/\/appldnld.apple.com\/iTunes10\/061-9530.20101112.MSakc\/iTunes10.1.dmg","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/dillernet.com\/apple\/category\/apple\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":13,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts\/361\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts\/361\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/media?parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/categories?post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/tags?post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}