{"id":468,"date":"2009-01-14T17:13:49","date_gmt":"2009-01-15T01:13:49","guid":{"rendered":"http:\/\/www.laurenwood.org\/anyway\/?p=468"},"modified":"2009-01-29T14:14:56","modified_gmt":"2009-01-29T22:14:56","slug":"installing-opensolaris","status":"publish","type":"post","link":"https:\/\/www.laurenwood.org\/anyway\/2009\/01\/installing-opensolaris\/","title":{"rendered":"Installing OpenSolaris"},"content":{"rendered":"<p>Up till now I\u2019ve had a Linux box in the base\u00adment, run\u00adning Apache and serving up a couple of web\u00adsites, as well as act\u00ading as a fire\u00adwall. Giv\u00aden the box is an old Pen\u00adti\u00adum 3, bought some 12 years ago, I\u2019ve been nervous that it\u2019s about to die at any moment, leav\u00ading me fire\u00adwall-less and with a big job to migrate the web\u00adsites in a hurry (yes, they\u2019re backed up on a dif\u00adfer\u00adent box, just in case). Both are good reas\u00adons to upgrade. Since <a href=\"http:\/\/opensolaris.org\/os\/\">Sol\u00adar\u00adis<\/a> is meant to be robust, secure, and all those oth\u00ader good things, I figured I may as well see if it\u2019s ready for prime time for home use serving websites.<\/p>\n<p>First, the hard\u00adware. <a href=\"http:\/\/tbray.org\/ongoing\/\">Tim<\/a> had a spare <a href=\"http:\/\/www.sun.com\/desktop\/workstation\/ultra20\/index.xml\">Ultra 20<\/a> (what can I say? We seem to accu\u00admu\u00adlate com\u00adputers without really try\u00ading to). That should run Word\u00adPress a little faster than the old Pen\u00adti\u00adum&nbsp;3\u2026<\/p>\n<p>Next, the soft\u00adware. Installing <a href=\"http:\/\/opensolaris.org\/os\/downloads\/\">OpenSol\u00adar\u00adis 2008.11<\/a> was a snap \u2014 burn the <span class=\"caps\">CD<\/span> of the iso image, put it in, turn it on, fol\u00adlow the instruc\u00adtions. When Sol\u00adar\u00adis boots from the LiveCD, hit the \u201cinstall\u201d icon and wait a bit. Quick\u00ader and easi\u00ader than most oth\u00ader OSes I\u2019ve tried recently! I con\u00adsidered using zones, but then decided I was going to use the entire sys\u00adtem for serving a couple of web\u00adsites and for me there was\u00adn\u2019t much bene\u00adfit to secur\u00ading them from each oth\u00ader. If I were allow\u00ading oth\u00aders access to the web\u00adsites, or was\u00adn\u2019t sure what people would do with them, installing each in its own zone would be a good idea, but it would be overkill for me right now. I can always add a zone later (or a vir\u00adtu\u00adal <span class=\"caps\">OS<\/span>, for that mat\u00adter) if I want to play around with oth\u00ader stuff. I did turn on TimeSlider though, to make rolling back errors easier.<\/p>\n<p>Now to the fun stuff, set\u00adting up Apache. I\u2019m used to the Debi\u00adan way of doing things (Debi\u00adan always Has Its Own Way To Do Things), so I need to fig\u00adure out the Sol\u00adar\u00adis Apache way. First, I installed the soft\u00adware. That\u2019s easy, you just fol\u00adlow the instruc\u00adtions at <a href=\"http:\/\/dlc.sun.com\/osol\/docs\/content\/OSDEV\/gentextid-207.html\">Set\u00adting Up Your <span class=\"caps\">AMP<\/span> Devel\u00adop\u00adment Envir\u00adon\u00adment<\/a>, using <code>pfexec pkg install amp-dev<\/code>. I have no need to save disk space, so I installed the lot and ini\u00adtial\u00adized it per the instruc\u00adtions. Next, I wanted to make sure it was up to date. It looked much easi\u00ader than the last time I tried to update a Sol\u00adar\u00adis install\u00ada\u00adtion; there\u2019s a menu item under Sys\u00adtem called <code>Package Manager<\/code> which brings up a pro\u00adgram that looks easy enough to use. <code>Update All<\/code> should mer\u00adrily go off and update everything. First it announced it would cre\u00adate a boot image, which seemed to suc\u00adceed, and then it tried to install the rest, res\u00adult\u00ading in an error message:&nbsp;<\/p>\n<pre><code>\nAn unknown error occured while installing\nupdating or removing packages\n\nPlease let the developers know about this problem by filing\na bug at http:\/\/defect.opensolaris.org\n\nException value: \n[Errno 17] File exists: '\/tmp\/tmppGRerC'<\/code><\/pre>\n<p>(spelling mis\u00adtake theirs).<\/p>\n<p>Just to be sure that the \/tmp dir\u00adect\u00adory was cleaned out prop\u00aderly, and noth\u00ading weird was going on, I rebooted. And was presen\u00adted with what looks like a <span class=\"caps\">GRUB<\/span> menu with three items. Which should I choose? I don\u2019t know, so I picked the bot\u00adtom one, opensolaris\u20111, since that was\u00adn\u2019t there last time I booted. This time, the Update Man\u00adager announced that updates were avail\u00adable, if I clicked on the icon, which I did, but no updates appeared to be avail\u00adable, which was a little weird. So I went back to the Pack\u00adage Man\u00adager to try to install the updates I\u2019d down\u00adloaded last time, and it claimed there were no updates avail\u00adable either. <span class=\"caps\">OK<\/span>, maybe I\u2019ll believe it.<\/p>\n<p>Now it\u2019s time to read the doc\u00adu\u00adment\u00ada\u00adtion on <a href=\"http:\/\/wikis.sun.com\/display\/WebStack\/Web+Stack+Getting+Started+Guide\">set\u00adting up the web stack<\/a>. I know, real pro\u00adgram\u00admers don\u2019t <span class=\"caps\">RTFM<\/span>, but I nev\u00ader claimed to be a real pro\u00adgram\u00admer, so I\u2019m allowed to.<\/p>\n<p>More later\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Up till now I\u2019ve had a Linux box in the base\u00adment, run\u00adning Apache and serving up a couple of web\u00adsites, as well as act\u00ading as a fire\u00adwall. Giv\u00aden the box is an old Pen\u00adti\u00adum 3, bought some 12 years ago, I\u2019ve been nervous that it\u2019s about to die at any moment, leav\u00ading me fire\u00adwall-less and \u2026 <a href=\"https:\/\/www.laurenwood.org\/anyway\/2009\/01\/installing-opensolaris\/\" class=\"more-link\">Con\u00adtin\u00adue read\u00ading<span class=\"screen-reader-text\"> \u201cInstalling OpenSolaris\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[6],"tags":[20],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-technology","tag-opensolaris"],"_links":{"self":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":13,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":533,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/468\/revisions\/533"}],"wp:attachment":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}