{"id":2989,"date":"2013-04-10T02:12:24","date_gmt":"2013-04-10T02:12:24","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=2989"},"modified":"2013-04-10T02:32:37","modified_gmt":"2013-04-10T02:32:37","slug":"raspberry-pi-game-console-project-getting-an-os-to-run-on-it","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/raspberry-pi-game-console-project-getting-an-os-to-run-on-it\/","title":{"rendered":"Raspberry PI Game Console Project: Getting an OS to run on it."},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2013\/04\/8d8f488e9e5c11e2a3d822000a1f9be5_7.jpg?resize=612%2C612\" alt=\"8d8f488e9e5c11e2a3d822000a1f9be5_7\" width=\"612\" height=\"612\" class=\"alignnone size-full wp-image-2990\" \/><\/p>\n<p>(<a href=\"http:\/\/www.gubatron.com\/blog\/2013\/04\/04\/my-first-raspberry-pi-project-diy-video-game-console\/\">My previous post<\/a>)<\/p>\n<p>So now that we have a Raspberry PI we need an ARM based Operating system to go on it.<\/p>\n<p>My original idea is to run Jelly Bean on it, but I couldn&#8217;t quickly find an image for the Raspberry PI (which means I&#8217;ll either have to find harder or I&#8217;m gonna have to bust my ass and build one myself and add all the drivers necessary so that it runs like charm)<\/p>\n<p>At this point I just need to know that my hardware is good to go, so the quickest, easiest way to put an OS on the Raspberri PI that I found was to get a Debian based Linux on it called <strong>Raspbian<\/strong> &#8220;wheezy&#8221;.<\/p>\n<p>You can download the .zip file that contains the image file <a href=\"http:\/\/files.velocix.com\/c1410\/images\/raspbian\/2013-02-09-wheezy-raspbian\/2013-02-09-wheezy-raspbian.zip\">via http<\/a> or you can help <a href=\"http:\/\/downloads.raspberrypi.org\/images\/raspbian\/2013-02-09-wheezy-raspbian\/2013-02-09-wheezy-raspbian.zip.torrent\">seed a torrent of it<\/a> after you get it.<\/p>\n<p>Once you download that you will end up with a 493.6MB .zip file, unzip it, and you will see the 1.96GB 2013-02-09-wheezy-raspbian.img file.<\/p>\n<p>Now you have to put that .img file inside the <a href=\"http:\/\/www.amazon.com\/gp\/product\/B0014VY28A\/ref=as_li_ss_tl?ie=UTF8&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B0014VY28A&#038;linkCode=as2&#038;tag=httpwwwwedoic-20\" target=\"_blank\">SD card<\/a> that will go into the Raspberry PI.<\/p>\n<p>I&#8217;ll teach you how to do that on a Mac (on a linux box is quite the same, the file and mount locations are probably the only thing that&#8217;ll change)<\/p>\n<p>1. Stick the <a href=\"http:\/\/www.amazon.com\/gp\/product\/B0014VY28A\/ref=as_li_ss_tl?ie=UTF8&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B0014VY28A&#038;linkCode=as2&#038;tag=httpwwwwedoic-20\" target=\"_blank\">SD card<\/a> on the SD slot of your macbook.<br \/>\n2. On the Finder, Eject the <a href=\"http:\/\/www.amazon.com\/gp\/product\/B0014VY28A\/ref=as_li_ss_tl?ie=UTF8&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B0014VY28A&#038;linkCode=as2&#038;tag=httpwwwwedoic-20\" target=\"_blank\">SD card<\/a> as soon as it comes up.<br \/>\n3. Open a Terminal<br \/>\n4. Execute <strong>sudo diskutils list<\/strong>, you should see something *like* this (this is actually how it&#8217;ll look when you&#8217;re done)<\/p>\n<p>[bash]$ sudo diskutil list<br \/>\n\/dev\/disk0<br \/>\n   #:                       TYPE NAME                    SIZE       IDENTIFIER<br \/>\n   0:      GUID_partition_scheme                        *500.3 GB   disk0<br \/>\n   1:                        EFI                         209.7 MB   disk0s1<br \/>\n   2:                  Apple_HFS Macintosh HD            499.4 GB   disk0s2<br \/>\n   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3<br \/>\n\/dev\/disk1<br \/>\n   #:                       TYPE NAME                    SIZE       IDENTIFIER<br \/>\n   0:     FDisk_partition_scheme                        *2.0 TB     disk1<br \/>\n   1:                  Apple_HFS Time Machine            2.0 TB     disk1s1<br \/>\n\/dev\/disk2<br \/>\n   #:                       TYPE NAME                    SIZE       IDENTIFIER<br \/>\n   0:      GUID_partition_scheme                        *1.0 TB     disk2<br \/>\n   1:                        EFI                         209.7 MB   disk2s1<br \/>\n   2:                  Apple_HFS PICS_AND_MOVIES         999.9 GB   disk2s2<br \/>\n\/dev\/disk4<br \/>\n   #:                       TYPE NAME                    SIZE       IDENTIFIER<br \/>\n   0:     FDisk_partition_scheme                        *15.9 GB    disk4<br \/>\n   1:             Windows_FAT_32                         58.7 MB    disk4s1<br \/>\n   2:                      Linux                         1.9 GB     disk4s2[\/bash]<\/p>\n<p>I want you to notice the &#8220;<strong>\/dev\/disk4<\/strong>&#8220;, judging by the size, that&#8217;s our 16 GB SD card right?<\/p>\n<p>5. Now that we know where it is, let&#8217;s copy the image file into it. First make sure to unmount the partitions that are on the SD Card so you can write on it, for example, I have there a Windows_FAT_32 partition I don&#8217;t want to loose (disk4s1), you unmount it like this:<\/p>\n<p><strong>sudo diskutil unmount \/dev\/disk3s1<\/strong><\/p>\n<p>Then copy the image using the awesome <strong>dd<\/strong> utility, if the .img file was in your &#8220;Downloads&#8221; folder the command would look like this. (&#8220;if&#8221; stands for &#8220;input file&#8221;, make sure you put the full path to the file, or go to that folder and execute the command below)<\/p>\n<p><strong>sudo dd bs=1m if=~\/Downloads\/2013-02-09-wheezy-raspbian.img of=\/dev\/disk4<\/strong><\/p>\n<p>This will take a few minutes, be patient.<\/p>\n<p>Once done, take the SD card, put it in the Raspberry PI SD Slot, hook it up to a monitor and power, snap a mouse and keyboard, and boot. It should work. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>(My previous post) So now that we have a Raspberry PI we need an ARM based Operating system to go on it. My original idea is to run Jelly Bean on it, but I couldn&#8217;t quickly find an image for the Raspberry PI (which means I&#8217;ll either have to find harder or I&#8217;m gonna have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","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":[1208,30,1248],"tags":[],"class_list":["post-2989","post","type-post","status-publish","format-standard","hentry","category-gadgets-2","category-geeklife","category-raspberry-pi-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-Md","jetpack-related-posts":[{"id":2957,"url":"https:\/\/www.gubatron.com\/blog\/my-first-raspberry-pi-project-diy-video-game-console\/","url_meta":{"origin":2989,"position":0},"title":"My First Raspberry PI Project: DIY ARM Video Game Console.","author":"gubatron","date":"April 4, 2013","format":false,"excerpt":"I got everything on amazon, didn't pay for shipping (Prime member): So far I bought: - Raspberry PI ($48) - Raspberry PI case ($14) - Power adapter ($2.25) - SNES-like Controller with USB jack ($10.75) - SanDisk SDHC 16GB class 6 (30mb\/s) ($15) I first intend to install Ubuntu ARM\u2026","rel":"","context":"In &quot;Android&quot;","block_context":{"text":"Android","link":"https:\/\/www.gubatron.com\/blog\/category\/android\/"},"img":{"alt_text":"raspberry_pi_diy_game_console_nes_snes_sega_n64","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2013\/04\/raspberry_pi_diy_game_console_nes_snes_sega_n64.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2995,"url":"https:\/\/www.gubatron.com\/blog\/what-do-you-carry-in-your-backpack\/","url_meta":{"origin":2989,"position":1},"title":"What do you carry in your backpack?","author":"gubatron","date":"April 27, 2013","format":false,"excerpt":"I'm a software developer and this is everything I was carrying in my backpack today April 26th 2013 (from the top, left to right) A case for SD cards. Raspbery PI I'm toying with at the moment. A roll of #punsr stickers US Passport, you never know when you get\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":532,"url":"https:\/\/www.gubatron.com\/blog\/how-to-update-file-timestamps-in-python\/","url_meta":{"origin":2989,"position":2},"title":"How to update file timestamps in Python","author":"gubatron","date":"May 29, 2007","format":false,"excerpt":"Sometimes you can be real picky like me about timestamps of files, for example, during my wedding we had a few digital cameras, and one of the cameras had its internal clock 4 hours behind. So what better way for a lazy guy like you to change timestamps than writing\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2247,"url":"https:\/\/www.gubatron.com\/blog\/how-to-resize-a-virtualbox-vdi-fixed-size-virtual-drive-on-mac\/","url_meta":{"origin":2989,"position":3},"title":"How to resize a VirtualBox fixed size virtual drive (.vdi) on Mac","author":"gubatron","date":"August 29, 2011","format":false,"excerpt":"So you created a disk for your Windows or Linux VirtualBox VM and you made the mistake of not creating the drive as a dynamically expanding storage drive, you chose fixed size. Now you're running out of space and all your Google searches point you to stupid posts on the\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":254,"url":"https:\/\/www.gubatron.com\/blog\/create-base32-sha1-hashes-out-of-files-in-php-5\/","url_meta":{"origin":2989,"position":4},"title":"Create Base32 SHA1 hashes out of files in PHP 5","author":"gubatron","date":"February 9, 2006","format":false,"excerpt":"LimeWire and other Gnutella clients uniquely identify files by creating a SHA1 hash of the files. I thought that it might be useful to the gnutella network to have regular webservers sharing legal files. Usually regular Joe webmasters don't have permissions to run java programs or have tcp ports open\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":374,"url":"https:\/\/www.gubatron.com\/blog\/mac-os-x-on-dual-screen-ubuntu-kde-via-vnc\/","url_meta":{"origin":2989,"position":5},"title":"Mac OS X on Dual Screen Ubuntu (KDE) via VNC","author":"gubatron","date":"September 20, 2006","format":false,"excerpt":"mac_os_en_dual_screen_ubuntu_via_vnc.JPG Originally uploaded by Gubatron. So now I don't have to move my chair to the desk where I got the mac, my linux box is my control station. And I can even run windows, since the mac runs parallels. Sweet. 3 OS in one... I mean 2 screens. :)","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/2989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=2989"}],"version-history":[{"count":4,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/2989\/revisions"}],"predecessor-version":[{"id":2994,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/2989\/revisions\/2994"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=2989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=2989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=2989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}