Rebuilding "bean"

In the loft at home I’ve a SunFire V100 which acts as my home server and performs a number of tasks. Having just recently successfully upgraded to Solaris 10 11/06 via live upgrade I thought it time to have a re-org.

root@bean~$more /etc/release
Solaris 10 11/06 s10s_u3wos_10 SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 14 November 2006

Now, building applications off the net takes up a lot of time and to be frank I can’t be arsed anymore doing it. If it’s already in pkg format then I’d rather just install it and at least if it’s maintained correctly then I can upgrade without the hassle of rebuilding again. Thankfully other bods on the net have already thought of this and that’s where the nice people at blastwave come in. Following the howto there we’re able to install pkg-get and allow us the ability to install the packages I’m after and all their dependencies. This will allow me to remove the installations I’ve got in /usr/local and move to the pre-installed/pre-built ones that get installed in /opt/csw. Obviously once there installated I’ll need to configure the individual packages. So I’m going to do a series of posts detailing my migration over as a) it’ll allow me to remember if I have to do it again and b) someone else out there on the ether might be interested to know.

Bean was original build and installed using JET (Jumpstart Enterprise Toolkit) technology developed by the Sun Professional Services chaps at Sun to save time when building multiple systems using a template. This has grown over the years and now allows you to build complex configurations via boot net – install. I used it to install the base OS, mirror, patch using EIS standards.

Getting started

Ok first thing is to install pkg-get and install using the instructions from blastwave which I’ll shortcut here:

* modify /opt/csw/etc/pkg-get.conf and add UK mirror

# UK
url=https://www.mirror.ac.uk/mirror/blastwave.org/unstable

# Solaris 10: If you wish to limit pkg-get to installing packages
# ONLY to the global zone, then uncomment this line
PKGADDFLAGS=-G

* allow hands off installations

cp /var/pkg-get/admin-fullauto admin

* enable gnupg

/opt/csw/bin/pkg-get -i gnupg textutils
wget –output-document=pgp.key https://www.blastwave.org/mirrors.html
gpg –import pgp.key
pkg-get -U

add /opt/csw/bin to .profile

I then should be able to add all the services I require from the list of available software……more soon.