{"id":197,"date":"2008-08-19T02:28:10","date_gmt":"2008-08-19T02:28:10","guid":{"rendered":"http:\/\/www.reactivated.net\/weblog\/?p=197"},"modified":"2008-08-19T12:53:18","modified_gmt":"2008-08-19T12:53:18","slug":"regular-linux-desktops-on-the-xo","status":"publish","type":"post","link":"http:\/\/www.reactivated.net\/weblog\/archives\/2008\/08\/regular-linux-desktops-on-the-xo\/","title":{"rendered":"Regular Linux desktops on the XO"},"content":{"rendered":"<p>Me and <a href=\"http:\/\/wiki.laptop.org\/go\/User:Bobbyp\">Bobby Powers<\/a> have spent a few hours smoothing out the process of getting fully-featured Linux desktops to boot on the XO laptop. On the whole, OLPC developers have been pretty good at getting code upstream, so only a few fixups are needed to get things operational on the XO.<\/p>\n<p>The only caveat is that you need a 4GB (or larger) SD card. The XO itself only has 1GB of storage, which is not big enough for the standard installs of the distributions that we&#8217;ve been playing with.<\/p>\n<p>We&#8217;ve got Fedora 9 and Ubuntu Intrepid Alpha 3 working. Here is the process, using Fedora 9 as an example:<\/p>\n<p>First, download the regular CD\/DVD installation media for your distribution. For Fedora 9, you go to <a href=\"http:\/\/fedoraproject.org\/en\/get-fedora\">http:\/\/fedoraproject.org\/en\/get-fedora<\/a>. Burn that to CD\/DVD.<\/p>\n<p>Next, find a regular PC that is capable of reading SD cards. We&#8217;re using a standard desktop plus a USB card reader. Boot that PC from the CD\/DVD installation media that you burned earlier. Proceed through the installation as usual, but when asked where you would like to install the operating system, select the SD card.<\/p>\n<p>Choose to setup the disk partitions manually. Do not do any fancy partitioning, just choose one partition that fills up the card. You don&#8217;t need to add any swap space.<\/p>\n<div align=\"center\"><img decoding=\"async\" src=\"http:\/\/www.reactivated.net\/weblog-content\/20080818-partitioning.jpg\" \/><\/div>\n<p>Select the ext3 filesystem and choose to not install a bootloader.<\/p>\n<div align=\"center\"><img decoding=\"async\" src=\"http:\/\/www.reactivated.net\/weblog-content\/20080818-no-bootloader.jpg\" \/><\/div>\n<p>Wait for installation to complete, and shut down the system.<\/p>\n<p>Next, you need a PC running Linux. This can be the same PC as the one you used to install onto SD, assuming that one has Linux installed on it&#8217;s hard disk too. It doesn&#8217;t really matter which distribution, as long as you have git and regular development tools installed, and the SD card mounted at a known location.<\/p>\n<p>On this PC, run the following:<\/p>\n<blockquote>\n<pre># git clone git:\/\/dev.laptop.org\/users\/dsd\/XO-alt-distro<\/pre>\n<\/blockquote>\n<p>Next, become root and run the script.<\/p>\n<blockquote>\n<pre># sudo su -\r\n# cd ~dsd\/XO-alt-distro\r\n# .\/sd_fixup fedora-9 \/media\/disk<\/pre>\n<\/blockquote>\n<p>It will now download and compile the OLPC kernel, and perform a few other necessary tweaks to your SD card.<\/p>\n<p>When the script has completed, unmount the SD card and plug it into an XO. Boot the XO, and say hello to your fully-functional Linux desktop.<\/p>\n<div align=\"center\"><img decoding=\"async\" src=\"http:\/\/www.reactivated.net\/weblog-content\/20080818-fedora-boot.jpg\" \/> <img decoding=\"async\" src=\"http:\/\/www.reactivated.net\/weblog-content\/20080818-fedora-welcome.jpg\" \/><\/div>\n<p>In future, we plan to publish filesystem images of SD-installed distributions, so that you can avoid much of the above. To simplify further, we could also write a tool which runs on the XO which downloads said filesystem image and flashes onto SD.<\/p>\n<p>Update 19\/08\/2008: <a href=\"http:\/\/www.reactivated.net\/weblog\/archives\/2008\/08\/followup-notes-on-xo-alternate-desktops\/\">Posted some additional notes<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Me and Bobby Powers have spent a few hours smoothing out the process of getting fully-featured Linux desktops to boot on the XO laptop. On the whole, OLPC developers have been pretty good at getting code upstream, so only a few fixups are needed to get things operational on the XO. The only caveat is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,13],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-olpc"],"_links":{"self":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":0,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}