{"id":42,"date":"2007-08-05T21:36:00","date_gmt":"2007-08-06T05:36:00","guid":{"rendered":"https:\/\/www.wkiri.com\/today\/?p=42"},"modified":"2007-08-05T22:17:32","modified_gmt":"2007-08-06T06:17:32","slug":"linux-upgrade-installing-ubuntu","status":"publish","type":"post","link":"https:\/\/www.wkiri.com\/today\/?p=42","title":{"rendered":"Linux upgrade: installing Ubuntu"},"content":{"rendered":"<p><a href=\"http:\/\/www.ubuntu.com\"><img decoding=\"async\" class=\"floatRight\" src=\"photos\/ubuntulogo.png\"><\/a>It was time.  I had let my linux desktop machine (astra) languish at home for years, neglected and barely used since I bonded with my 15&#8243; Mac Powerbook (and then with its 15&#8243; MacBook Pro successor).  Astra&#8217;s linux distribution, Mandrake 8.2, fell further and further behind the pounding gallop of linux upgrades, until it was so out of date that I couldn&#8217;t even update its packages reliably.  I finally decided that it was time to do a full upgrade and install some modern flavor of linux.  After some discussions with friends and additional googling, I settled on <a href=\"http:\/\/www.ubuntu.com\/\">Ubuntu<\/a>.  Then the fun began!<\/p>\n<p><b>Step 1.<\/b> I wanted to make a full backup of astra&#8217;s hard drives before doing anything to the OS.  My backup drive (andromeda) can be accessed via firewire or USB 2.0.  Astra, a cutting-edge machine from the year 2000, has neither one (but it does have USB 1.0!).  So I connected astra to my Mac laptop (elysium) with an Ethernet cable and plugged andromeda into elysium&#8217;s firewire port.  Getting astra and elysium to talk together was as easy as `<tt>ifconfig eth1 192.168.0.3 up<\/tt>` on astra and entering a manual IP (192.168.0.2) on elysium (Macs are so smart that they automatically turn Ethernet cables into crossover cables when appropriate).  I then used <tt>rsync<\/tt> to make a full backup &#8212; interrupted intermittently when rsync failed due to two filenames on astra that differed only in case (like &#8220;Classes&#8221; and &#8220;classes&#8221;); the Mac filesystem has only a thin veneer of case-sensitivity that is easily scratched by these cases.  I renamed files as needed to proceed.<\/p>\n<p><b>Step 2.<\/b> I downloaded an Ubuntu 6.0.6 ISO from the Ubuntu website and burned it to a fresh CD-ROM.  (When downloading, the website forces you choose between &#8220;Ubuntu 7.0.4 with 18 months of free security updates&#8221; and &#8220;Ubuntu 6.0.6 with 3 years of free security updates.&#8221; I&#8217;m still perplexed by this, given that it&#8217;s a free and open-source OS.  But I really don&#8217;t need astra to live on the bleeding edge.)<\/p>\n<p><b>Step 3.<\/b> I fiddled with my BIOS boot settings to put the CD-ROM drive ahead of the hard drive, then booted up with the Ubuntu CD-ROM.  This was the first time I&#8217;ve used a &#8220;live CD&#8221;, and it performed exactly as expected.  Ubuntu uncompressed itself and came up in a &#8220;test&#8221; mode, meaning that you could play around with linux and see how you like it <b>before<\/b> making the full hard-drive commitment to an installation.  I wonder how many people convert to linux after playing with it running off a CD-ROM?  Now granted, astra runs at just 667 MHz, but even with a modern CPU, I can&#8217;t imagine that having your OS running off the CD drive is what you would describe as a speedy experience.  Astra also has only 256 MB of RAM, every bit of which I think was full of Ubuntu just to let it run without a hard drive.  <\/p>\n<p>Ubuntu comes with a folder called &#8220;Examples&#8221;, which includes some music, video, and Open Office (text, spreadsheet, presentation) documents.  I couldn&#8217;t resist trying to open one of the spreadsheets, at which point astra froze.  Out of memory?  I had to reboot, but I wasn&#8217;t worried &#8212; Ubuntu was running in its own space, so no possible damage from an unexpected reboot could be done to my own hard disks; they weren&#8217;t even mounted.  Therefore, imagine my surprise when I rebooted and the initial system check suddenly failed to find my primary hard drive.  No problem &#8212; a second reboot and the hard drive was back.<\/p>\n<p><b>Step 4.<\/b> I was ready to install.  I initiated the process, entering step 1 of a reassuringly small total of 6.  The first questions were easy: username, machine name, etc.  And then I came to the sweat- and nausea-inducing &#8220;set up your partition table&#8221; step.  Now, you can skip this step and let Ubuntu pick the &#8220;largest contiguous free space&#8221; in which to install itself.  But I didn&#8217;t have any free (unpartitioned) space because my old Mandrakian linux was still installed.  Beyond that, partitioning your drives just seems like one of those nitty gritty get-your-hands-dirty experiences that you have to suffer through to really feel like you&#8217;ve installed linux.  I mean, if you don&#8217;t develop a fiery, passionate opinion about the One Right Way to Partition, then how can you call yourself a geek?  I opted for separate partitions for \/, \/boot, swap, \/home, and \/usr, a selection that&#8217;s fairly low on the controversy scale.  I clicked my way through specifying these things, chanting &#8220;I have a full backup, I have a full backup&#8221; under my breath, especially when I was forced to check the &#8220;reformat partition&#8221; checkboxes next to&#8230; well&#8230; <b>all<\/b> of my new partitions.  I hit the final &#8220;Go&#8221; button and let Ubuntu run through my hard drive, zeroing everything out (conceptually), and then unpacking itself in its new, clean home.<\/p>\n<p><b>Step 5.<\/b> I rebooted.  And astra came up, all Ubuntu-ified!  It worked!<\/p>\n<p>Well&#8230; everything worked but the new wireless card I&#8217;d just installed, specially for astra&#8217;s new incarnation as my cutting-edge home workstation.  I&#8217;ll post about how I solved that problem later.  For now, here are some other interesting Ubuntu observations:<\/p>\n<blockquote>\n<li>One does not log in as root on Ubuntu.  In fact, the root user is &#8220;locked&#8221;.  There is no root password!  You do everything root-like via <tt>sudo<\/tt>.  This was a bit of a shock initially (no root on my own system?), but after googling around and reading a bit of the discussion, I can see some of the reasoning for it.  Interesting design choice.\n<li>What&#8217;s the first thing I want to do when I log in?  I want a terminal shell.  How do I get one?  It&#8217;s not on a mouse button context menu&#8230; where&#8230; where&#8230; oh!  It&#8217;s up under the &#8220;Accessories&#8221; menu.  For some reason, this cracks me up, like the terminal is somehow an &#8220;extra&#8221;, optional, unneeded.  For linux!  Have times changed that much?\n<li>Ubuntu does not install anything developer-friendly with its basic install.  Although I&#8217;ve encountered this before (with my Mac!), it&#8217;s still a shock to type <tt>gcc<\/tt> or <tt>make<\/tt> and get &#8220;command not found&#8221; back.  Because my wireless card wasn&#8217;t working, I had to drag my machine across the house to plug it in to my router via Ethernet so that I could install these basic packages.\n<\/p><\/blockquote>\n<p>But now astra is up and running and oh-so-proud to be of use once more!  Hooray!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I describe my experience installing Ubuntu 6.0.6 on my linux desktop machine.  Overall, a painless experience and a successful install!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/posts\/42"}],"collection":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":0,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}