Skip to content

Installing OpenSolaris

Up till now I’ve had a Linux box in the base­ment, run­ning Apache and serving up a couple of web­sites, as well as act­ing as a fire­wall. Given the box is an old Pen­tium 3, bought some 12 years ago, I’ve been nervous that it’s about to die at any moment, leav­ing me firewall-less and with a big job to migrate the web­sites in a hurry (yes, they’re backed up on a dif­fer­ent box, just in case). Both are good reas­ons to upgrade. Since Sol­aris is meant to be robust, secure, and all those other good things, I figured I may as well see if it’s ready for prime time for home use serving websites.

First, the hard­ware. Tim had a spare Ultra 20 (what can I say? We seem to accu­mu­late com­puters without really try­ing to). That should run Word­Press a little faster than the old Pen­tium 3…

Next, the soft­ware. Installing OpenSol­aris 2008.11 was a snap — burn the CD of the iso image, put it in, turn it on, fol­low the instruc­tions. When Sol­aris boots from the LiveCD, hit the “install” icon and wait a bit. Quicker and easier than most other OSes I’ve tried recently! I con­sidered using zones, but then decided I was going to use the entire sys­tem for serving a couple of web­sites and for me there wasn’t much bene­fit to secur­ing them from each other. If I were allow­ing oth­ers access to the web­sites, or wasn’t 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­tual OS, for that mat­ter) if I want to play around with other stuff. I did turn on TimeSlider though, to make rolling back errors easier.

Now to the fun stuff, set­ting up Apache. I’m used to the Debian way of doing things (Debian always Has Its Own Way To Do Things), so I need to fig­ure out the Sol­aris Apache way. First, I installed the soft­ware. That’s easy, you just fol­low the instruc­tions at Set­ting Up Your AMP Devel­op­ment Envir­on­ment, using pfexec pkg install amp-dev. I have no need to save disk space, so I installed the lot and ini­tial­ized it per the instruc­tions. Next, I wanted to make sure it was up to date. It looked much easier than the last time I tried to update a Sol­aris install­a­tion; there’s a menu item under Sys­tem called Package Manager which brings up a pro­gram that looks easy enough to use. Update All should mer­rily go off and update everything. First it announced it would cre­ate a boot image, which seemed to suc­ceed, and then it tried to install the rest, res­ult­ing in an error message:


An unknown error occured while installing
updating or removing packages

Please let the developers know about this problem by filing
a bug at http://defect.opensolaris.org

Exception value:
[Errno 17] File exists: '/tmp/tmppGRerC'

(spelling mis­take theirs).

Just to be sure that the /tmp dir­ect­ory was cleaned out prop­erly, and noth­ing weird was going on, I rebooted. And was presen­ted with what looks like a GRUB menu with three items. Which should I choose? I don’t know, so I picked the bot­tom one, opensolaris-1, since that wasn’t there last time I booted. This time, the Update Man­ager announced that updates were avail­able, if I clicked on the icon, which I did, but no updates appeared to be avail­able, which was a little weird. So I went back to the Pack­age Man­ager to try to install the updates I’d down­loaded last time, and it claimed there were no updates avail­able either. OK, maybe I’ll believe it.

Now it’s time to read the doc­u­ment­a­tion on set­ting up the web stack. I know, real pro­gram­mers don’t RTFM, but I never claimed to be a real pro­gram­mer, so I’m allowed to.

More later…

{ 4 } Comments

  1. John Cowan | Jan 14, 2009 at 6:40 pm | Permalink

    What spelling error? “Errno” is the name of a C vari­able that holds the error most recently repor­ted by the kernel.

    A comma after “installing” is man­dat­ory, and one after “updat­ing” cer­tainly wouldn’t hurt, though.

  2. Lauren Wood | Jan 14, 2009 at 6:53 pm | Permalink

    Occured” — it should be “occurred”. I guess I should have said “their spelling and gram­mar mistakes”.

  3. yarnpiggy | Jan 14, 2009 at 7:57 pm | Permalink

    That spelling error was the first thing I recognized/understood in the whole post. :-)

  4. Patrick Gibson | Jan 27, 2009 at 5:25 pm | Permalink

    I recently gave OpenSol­aris for my new home server, but I just didn’t take to the too many, albeit subtle, dif­fer­ences from the FreeBSD I’ve grown to love over the years. I will say that OpenSol­aris installed without any trouble using newer hard­ware with a SATA optical drive whereas FreeBSD took some extra effort; so, I’ll give it points for that. :)

Post a Comment

Your email is never published nor shared. Required fields are marked *