Archive for the ‘Life in General’ category

Minimal OpenSolaris 2009.06

October 6th, 2009

os_fan_button_white_lrg_rndAfter toying around with OpenSolaris for a couple of months, I started wondering what it would take to slim down the default installation to something more appropriate for a server — You know, no X, GNOME, or any of the other good stuff. Some searching on Google lead me to some instructions for a minimal install of OpenSolaris 2008.11. Instead of starting out with a Live CD, I did a normal installation, booted in to that, and then followed these steps below (note: make sure to perform these tasks as either root or super-user).

Create new zfs volume and mount it in /a:

This will be the new root volume once we’re done installing our packages.

zfs create rpool/ROOT/opensolaris-minimal
zfs set mountpoint=legacy rpool/ROOT/opensolaris-minimal
zfs set canmount=noauto rpool/ROOT/opensolaris-minimal

mkdir /a
mount -F zfs rpool/ROOT/opensolaris-minimal

Create the install image:

export PKG_IMAGE=/a
pkg image-create -F -a opensolaris.org=http://pkg.opensolaris.org $PKG_IMAGE
pkg refresh

Once that’s setup, I use the same methodology from the guy mentioned in the above link:

Contents of pkg.txt:

SUNWcsd
SUNWcs
SUNWzone
SUNWcsl
SUNWlibsasl
SUNWlibms
SUNWpr
SUNWlxml
SUNWzlib
SUNWtls
SUNWopenssl
SUNWpool
SUNWzfs
SUNWsmapi
SUNWtecla
SUNWckr
SUNWpicl
SUNWmd
SUNWinstall-libs
SUNWwbsup
SUNWgccruntime
SUNWcar
SUNWcakr
SUNWusbs
SUNWusb
SUNWaudd
SUNWkvm
SUNWos86r
SUNWrmodr
SUNWpsdcr
SUNWpsdir
SUNWcnetr
SUNWesu
SUNWkey
SUNWnfsckr
SUNWnfsc
SUNWgss
SUNWgssc
SUNWbip
SUNWbash
SUNWloc
SUNWsshcu
SUNWsshd
SUNWssh
SUNWtoo
SUNWzfskr
SUNWipf
SUNWrtls
SUNWipkg
SUNWpython-pyopenssl
SUNWpython-cherrypy
SUNWadmr
SUNWadmap
SUNWadmlib-sysid
SUNWPython
SUNWbzip
SUNWxwrtl
SUNWTk
SUNWTcl
SUNWlexpt
SUNWperl584core
SUNWinstall-libs
SUNWbeadm
SUNWvim
SUNWscreen

Package installation:

for pkg in `cat pkg.txt`; do pkg install $pkg; done

And now for some initial configurations:

# seed the initial smf repository
cp $PKG_IMAGE/lib/svc/seed/global.db $PKG_IMAGE/etc/svc/repository.db
chmod 0600 $PKG_IMAGE/etc/svc/repository.db
chown root:sys $PKG_IMAGE/etc/svc/repository.db

# setup smf profiles
ln -s ns_files.xml $PKG_IMAGE/var/svc/profile/name_service.xml
ln -s generic_limited_net.xml $PKG_IMAGE/var/svc/profile/generic.xml
ln -s inetd_generic.xml $PKG_IMAGE/var/svc/profile/inetd_services.xml
ln -s platform_none.xml $PKG_IMAGE/var/svc/profile/platform.xml

# mark the new system image as uninstalled
sysidconfig -b $PKG_IMAGE -a /lib/svc/method/sshd
touch $PKG_IMAGE/etc/.UNCONFIGURED

# copy over the vfstab
cp -p /etc/vfstab $PKG_IMAGE/etc/vfstab

# copy over the current passwd, group, shadow, and user_attr to the new image
cp -p /etc/passwd $PKG_IMAGE/etc/passwd
cp -p /etc/shadow $PKG_IMAGE/etc/shadow
cp -p /etc/user_attr $PKG_IMAGE/etc/user_attr
cp -p /etc/group $PKG_IMAGE/etc/group

# copy of my existing host sshd keys
cp -p /etc/ssh/*key* $PKG_IMAGE/etc/ssh

# configure /dev in the new image
devfsadm -r $PKG_IMAGE
ln -s ../devices/pseudo/sysmsg@0:msglog $PKG_IMAGE/dev/msglog

# copy the grub files
rsync -avr --progress /boot/grub $PKG_IMAGE/boot/

# update the boot archive in the new image
bootadm update-archive -R $PKG_IMAGE

# update to the latest version of grub (this command generated
# some errors which i ignored).
$PKG_IMAGE/boot/solaris/bin/update_grub -R $PKG_IMAGE

# change our active boot environment
beadm activate opensolaris-minimal

Once that’s completed, I’ll also modify grub’s menu.lst file to disable the graphical boot sequences, here’s what the finished file will look like (/rpool/boot/grub/menu.lst):

#splashimage /boot/grub/splash.xpm.gz
#background 215ECA
timeout 30
default 0
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
#splashimage /boot/solaris.xpm
#foreground d25f00
#background 115d93
#---------------------END BOOTADM--------------------
title opensolaris-minimal
bootfs rpool/ROOT/opensolaris-minimal
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============

After that, I’ll umount the volume (/a) and reboot the system. Once as soon as I know that everything installed properly, I’ll use the beadm command to destroy the old boot environment, leaving me with a minimal(ish) install of OpenSolaris!

Holiday Barley Wine

August 23rd, 2009

So I’ve had a bit of a hiatus due to an interesting and tumultous past couple of months. At any rate, I’ve finally got around to posting on here and brewing again.

A couple of months ago, we found some of my earlier beers, namely my holiday Beligan Double that I brewed for Christmas 4 years ago. We opened it and I was amazed at the flavor of the now mature ale. Needless to say, I decided try to recreate the spice notes, but not in a Belgian Alte. So listed below is my attempt at brewing a barley wine.

» Read more: Holiday Barley Wine

It’s a Jeep Thing

April 1st, 2009

I never thought in my wildest dreams that yesterday would be the last day that I’d be driving my GTI. Raegan and I went over to the Jeep dealership down the road from my house and took a 2009 Wrangler out for a test drive. By the end of the day, I was driving home in a brand new blue Wrangler! The financing is in the same ballpark as my GTI and has an unlimited warranty! So now I’ve got to buy a new roof rack for the jeep, and get my head deck and subwoofer installed in the bad boy! Pictures will be posted soon!

Starting a Fire from the Top Down

February 5th, 2009

I was doing some research regarding my wood stove and ways to have it burn more efficiently, when I came across another method for starting fires: From the top down. Basically, it’s a pyramid: The small stuff is on top while the bigger stuff is on the bottom. At any rate, it’s apparently an old(er) method of starting fires that dates back to the 1800s. Curiosity has gotten the better of me, and I’m having a go at it right now with my wood burning stove. Boy, if this works, I think I too will be a convert!