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.



Solaris 10 Enable SSH

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

On Solaris 10, you can quickly enable SSH by performing the steps below;

svcadm enable ssh

svcadm restart ssh

If you need to login as root, remember to set PermitRootLogin to yes and restart the daemon.



Linux & Solaris enable/disable X on boot

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

Linux

Disable automatic startup of X on boot
Change the default run level in /etc/inittab to 3
id:3:initdefault:

Enable automatic startup of X on boot
Change the default run level in /etc/inittab to 5
id:5:initdefault:

Solaris 10

Disable automatic startup of X on boot
# /usr/dt/bin/dtconfig -d

Enable automatic startup of X on boot
# /usr/dt/bin/dtconfig -e



Solaris 10 text mode installation

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

To install Solaris in text mode, do the following from OBP;

boot cdrom - w

Your solaris installation will start in text mode.



How to find CDROM device on Solaris 10

May 7th, 2009 | Posted in Blog, Solaris | No Comments

I recently had to install Solaris 10 on a old Ultra 10 workstation and had trouble figuring out which device was the cdrom…

This is how I found it;

# iostat -En
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: IC35L060AVER07-0 Revision: ER6OA46A Serial No: SZPTZNM
Size: 61.49GB <61492838400 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c0t2d0 Soft Errors: 3 Hard Errors: 0 Transport Errors: 1
Vendor: SAMSUNG Product: CD-ROM SC-148F Revision: PS06 Serial No:
Size: 0.49GB <492834816 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 3 Predictive Failure Analysis: 0

I could then mount it;

mount -F hsfs -o ro /dev/dsk/c0t2d0s2 /mnt/cdrom



Solaris update CD-ROM alias

October 18th, 2007 | Posted in Solaris | No Comments

If you have an Ultra 5/10 with two IDE drives and a CD-ROM, then you need to update the cdrom device alias in the EEPROM as below;

Original;

devalias
cdrom /pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f

If the CD-ROM is a slave on the primary controller:

ok nvalias cdrom /pci@1f,0/pci@1,1/ide@3/cdrom@1,0:f

If the CD-ROM is a slave on the secondary controller:

ok nvalias cdrom /pci@1f,0/pci@1,1/ide@3/cdrom@3,0:f

You should now be able to boot from your cdrom.



Solaris shutdown/reboot

April 7th, 2006 | Posted in Blog, Solaris | No Comments

Shutdown

shutdown -y -i5 -g0

or

sync;sync;init 5

or

poweroff

Reboot

shutdown -y -i6 -g0

or

sync;sync;init 6

or

reboot




Categories