Up till now I’ve had a Linux box in the basement, running Apache and serving up a couple of websites, as well as acting as a firewall. Given the box is an old Pentium 3, bought some 12 years ago, I’ve been nervous that it’s about to die at any moment, leaving me firewall-less and with a big job to migrate the websites in a hurry (yes, they’re backed up on a different box, just in case). Both are good reasons to upgrade. Since Solaris 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 hardware. Tim had a spare Ultra 20 (what can I say? We seem to accumulate computers without really trying to). That should run WordPress a little faster than the old Pentium 3…
Next, the software. Installing OpenSolaris 2008.11 was a snap — burn the CD of the iso image, put it in, turn it on, follow the instructions. When Solaris boots from the LiveCD, hit the “install” icon and wait a bit. Quicker and easier than most other OSes I’ve tried recently! I considered using zones, but then decided I was going to use the entire system for serving a couple of websites and for me there wasn’t much benefit to securing them from each other. If I were allowing others access to the websites, 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 virtual OS, for that matter) 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, setting 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 figure out the Solaris Apache way. First, I installed the software. That’s easy, you just follow the instructions at Setting Up Your AMP Development Environment, using pfexec pkg install amp-dev
. I have no need to save disk space, so I installed the lot and initialized it per the instructions. Next, I wanted to make sure it was up to date. It looked much easier than the last time I tried to update a Solaris installation; there’s a menu item under System called Package Manager
which brings up a program that looks easy enough to use. Update All
should merrily go off and update everything. First it announced it would create a boot image, which seemed to succeed, and then it tried to install the rest, resulting 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 mistake theirs).
Just to be sure that the /tmp directory was cleaned out properly, and nothing weird was going on, I rebooted. And was presented with what looks like a GRUB menu with three items. Which should I choose? I don’t know, so I picked the bottom one, opensolaris‑1, since that wasn’t there last time I booted. This time, the Update Manager announced that updates were available, if I clicked on the icon, which I did, but no updates appeared to be available, which was a little weird. So I went back to the Package Manager to try to install the updates I’d downloaded last time, and it claimed there were no updates available either. OK, maybe I’ll believe it.
Now it’s time to read the documentation on setting up the web stack. I know, real programmers don’t RTFM, but I never claimed to be a real programmer, so I’m allowed to.
More later…
What spelling error? “Errno” is the name of a C variable that holds the error most recently reported by the kernel.
A comma after “installing” is mandatory, and one after “updating” certainly wouldn’t hurt, though.
“Occured” — it should be “occurred”. I guess I should have said “their spelling and grammar mistakes”.
That spelling error was the first thing I recognized/understood in the whole post. 🙂
I recently gave OpenSolaris for my new home server, but I just didn’t take to the too many, albeit subtle, differences from the FreeBSD I’ve grown to love over the years. I will say that OpenSolaris installed without any trouble using newer hardware with a SATA optical drive whereas FreeBSD took some extra effort; so, I’ll give it points for that. 🙂