Prashant Srinivasan's Weblog
SMF manifest for Nginx
Here's an SMF manifest for Nginx. You'll need to tweak it for your location of Nginx. You can create an nginx user and group to run the web server as(highly recommended), or tweak my script to run as root(please don't do this).
The steps?
Posted at 10:45AM Apr 29, 2009 by prashant in Ruby | Comments[1]
Git is in OpenSolaris-dev.
I just noticed that git is available in the OpenSolaris dev repository. No more compiling from source. Very cool. All the volunteer work done to spruce up FOSS support in the OSOL community is paying off.
You can either get it by running "pkg image-update" on your OpenSolaris instance, or wait for the Ruby on Rails EC2 image which I'm creating right now, to get a preconfigured set of tools, gems, web servers etc.,
Posted at 11:14AM Apr 27, 2009 by prashant in Ruby |
To update Ruby, or any other application on OpenSolaris . . .
My recent post about updating Ruby on OpenSolaris can be summed up with the following steps:
(1) set the OpenSolaris developer repository as the package authority(pkg set-authority -O http://pkg.opensolaris.org/dev opensolaris.org)
(2) run "pkg image-update".
This raised questions about whether an image update was necessary just to update Ruby, which is a well behaved application with no direct ties to operating system internals.
The answer, quite simply, is a YES. This applies to any application that is provided by the main OpenSolaris (or dev) repositories, not just Ruby. One can only update the application to a level of the package that is delivered on the build of the OS that one is running.
Does that sound confusing?
Lets say your OS level is 101 ( use "uname -a" to find that out).
root@domU-12-31-39-02-F5-56:/var/ruby/1.8/gem_home/bin# uname -a
SunOS domU-12-31-39-02-F5-56 5.11 snv_101b i86pc i386 i86xpv Solaris
Now lets look at an application installed on this machine (gmake, for example). Use "pkg info" to get information about an installed package.
gmake 3.81 is installed, and this was built on build 101 of Solaris Nevada (build 101 is the value that corresponds to the "Branch" tag).
Now, what this means is that one will not be able to update gmake to a version higher than the one bundled with build 101 without running "pkg image-update". In this case, that is gmake version 3.81.
Updating individual packages is possible with the IPS framework, and that means that non Sun packages can be updated. The packages that are delivered by Sun, however, cannot be updated thus. These packages are listed as dependencies for the meta-package called "entire". "entire" imposes the restriction on what build number a package could be updated to.
The IPS team is working on loosening this (reboot required) restriction. But until then, please point your pkg command to http://pkg.opensolaris.org/dev (by uttering pkg set-authority -O http://pkg.opensolaris.org/dev opensolaris.org ) and then say " pkg image-update ".
This will bring up Ruby 1.8.7p72 and Rubygems 1.3.1. There is work happening to make Rails available too. stay tuned.
Posted at 06:34PM Apr 17, 2009 by prashant in General | Comments[1]
Today's Page Hits: 44