RSS feed

Solaris Core Install Recipe

February 8th, 2010 | Posted in Blog, Solaris | No Comments

This is a recipe I use when installing Solaris 10 (Core only). It’s easier to install the needed software than to trim down a full install and I like the fact that I have a clean server to start off with the minimal software installed.

For disk layout, you can do whatever your comfortable with or follow the software that will be running on your servers guides for setting up the disk slices etc.

Start by installing only the core product, If I remember correctly it’s around 1.2GB in size. Once this has been done, and you have logged into your machine install the following packages from DVD/CD-ROM;

mkdir /mnt/cdrom
mount -F hsfs /dev/dsk/c0t2d0s2 /mnt/cdrom
pkgadd -d /mnt/cdrom/Solaris_10/Product/*ssh*

This will install;

SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr and SUNWsshu

pkgadd -d /mnt/cdrom/Solaris_10/Product/SUNWbash

Generate host keys;

/lib/svc/method/sshd -c
svcadm enable ssh
svcadm restart ssh

Or another way of generating host keys;

cd /etc/ssh
ssh-keygen -t rsa -f ssh_host_rsa_key
ssh-keygen -t dsa -f ssh_host_dsa_key
svcadm enable ssh
svcadm restart ssh

Install openssl, wget either from DVD/CD-ROM or you can grab it from the sunfreeware.com FTP site.

vi get_files.sh

#!/bin/sh

cd /tmp

ftp -i -n -v ftp.sunfreeware.com << EOF
user "anonymous" "your@email.com"
cd pub/freeware/sparc/10
bin
mget gzip-1.4-sol10-sparc-local
mget wget-1.12-sol10-sparc-local.gz
mget libintl-3.4.0-sol10-sparc-local.gz
mget openssl-0.9.8l-sol10-sparc-local.gz
mget libiconv-1.13.1-sol10-sparc-local.gz
mget libgcc-3.4.6-sol10-sparc-local.gz
bye
EOF

:wq

chmod +x get_files.sh

./get_files

Once downloaded, install gzip first as you’ll need it to extract the rest of the archived packages you just downloaded;

pkgadd -d . gzip-1.4-sol10-sparc-local all
gunzip *.gz
pkgadd -d . <packagename> all

You now have a basic skeleton machine with SSH, bash and wget.



No Comments to “Solaris Core Install Recipe”

There are no comments yet, add one below.


Leave a Comment






Categories