Solaris installation and customization (Under construction)

PrevUp

[ 10 | 9 | 8 | 7 | 2.6 | 2.5 ]


10

Prerequisites

A Solaris 10 system will take about 10GB. A DVD-ROM drive is advisable to avoid media swapping.

Base system

  1. Power Off/On, Stop-A (on an original Sun keyboard) gets you into Open Firmware console mode (ok prompt)
  2. Insert installation media,
    boot cdrom
    # or:
    boot dvdrom
    
    and answer the questions.

Additional Software

Basic customizations

  1. In /etc/inetd.conf disable all unnecessary services. If the machine should offer boot services, bootps and tftp must be enabled.
  2.  
    chmod o-x /usr/bin/ypcat 
    
  3. IP name and name resolution
  4. Name resolution:
    In /etc/inet/resolv.conf:
    nameserver 192.168.1.1
    domain localdomain
    
    and in /etc/defaultrouter:
    192.168.1.1
    
    and in /etc/nsswitch.conf:
    hosts:      files dns
    
    to define search path for host name resolution.
    Restart interface with
    svcadm restart network/physical
    

Additional local software

Check the software list for stuff to be preferrably installed locally on the system disk. Most of that stuff, however, comes already with the OS distribution kit. Typically it resides in /opt/sfw.
For convenience I've setup an installer script which unpacks and installs prepared packages, e.g.:
mount rs6kf:/swdepotfs/ /mnt
cd /opt/sfw
/mnt/SOLARIS/SPARC/10/installopt.sh

Installing SunStudio.

What's next ?

After installation you will need to customize your system.

9

(12/02)

Prerequisites

A fully loaded system (i.e. Solaris, companion, SunStudio, swap, user) will take about 5GB, so I'd use a 9GB disk minimum. For the system itself a 4GB disk might be sufficient.

Base system

  1. Power Off/On, Stop-A (on an original Sun keyboard) gets you into Open Firmware console mode (ok prompt)
  2. Insert Installation CD
    boot cdrom
    
    and answer the questions. On a 9GB disk I used 6GB for root, 512MB swap and 1GB /export/home. One may install just about everything. This will take about 2GB disk space and about an hour with several CD swaps.
  3. Insert the Software Companion CD and run the installer script, either from CDE or command line:
    cd /cdrom/cdrom0
    ./installer
    
    Again one may install just everything, which will take an additional 1GB of disk space.

Basic customizations

  1. Network connectivity:
    Some configuration already took place during installation. In addition, in /etc/resolv.conf define domain and nameserver:
    domain localdomain
    nameserver 192.168.1.1
    
    Define name resolution order in /etc/nsswitch.conf (copy from /etc/nsswitch.files if it does not yet exist):
    hosts:      files dns
    
    Define gateway to the outside world in /etc/defaultrouter:
    192.168.1.1
    
    On the fly commands (example):
    ifconfig -a
    ifconfig hme0 192.168.1.15 netmask 255.255.255.0 up
    route add default 192.168.1.1 1
    

Additional Software

Additional local software

Check the software list for stuff to be preferrably installed locally on the system disk. Most of that stuff, however, comes already with the OS distribution kit. Typically it resides in /opt/sfw.
For convenience I've setup an installer script which unpacks and installs prepared packages, e.g.:
mount rs6kf:/swdepotfs/ /mnt
cd /opt/sfw
/mnt/SOLARIS/SPARC/9/installopt.sh

Installing SunStudio.

What's next ?

After installation you will need to customize your system.

8

  1. Power Off/On, Stop-A (on an original Sun keyboard) gets you into Open Firmware console mode (ok prompt)
  2. Insert Installation CD
    boot cdrom
    
    and answer the questions. I found it useful to setup a networked system at this early stage because Solaris 8 makes it rather cumbersome to do that later. It clearly lacks an AIX-like smitty ;-)
    Furthermore I found it useful to choose "Custom Install" because it allows to partition the disk manually.
    Note: Solaris may refuse to install on erased disks w/o label ("corrupt label", "wrong magic number") The installation will abort in a console window which allows to correct for that. Enter
    format -e
    
    and select a disk. It is sufficient to just label it, i.e. no real formatting is needed. The latter might take nearly an hour.
    Quit and restart the installation.
  3. Insert Companion CD and install stuff from there (about 900MB going into system partition):
    ./installer
    
  4. Network configuration:
    files:
    /etc/hosts
    /etc/hostname.hme0
    /etc/nodename
    /etc/defaultrouter # 192.168.1.1
    /etc/resolv.conf
    /etc/nsswitch.conf 
    /etc/netmasks
    /etc/net/ticlts/hosts
    /etc/net/ticots/hosts
    /etc/net/ticotsord/hosts
    /etc/inet/ipnodes
    
    commands (example for a specific address):
    ifconfig hme0 192.168.1.52 netmask 255.255.255.0 plumb up
    
  5. If erroneously the SSP package has been installed, get rid of it by
    pkginfo | grep ssp
    pkgrm -n ...
    pkgrm    ...
    
Further Customization.

7

Prerequisites

A full installation of the base OS will require slightly over 1GB. For Documentation and Workshop add another GB. So a 4GB disk should suffice and a 9GB disk would be more than enough.
  1. Power Off/On, Stop-A (on an original Sun keyboard) gets you into Open Firmware console mode (ok prompt)
  2. Insert Installation CD
    boot cdrom
    
    and answer the questions, it's straightforward. I found it useful to setup a networked system at this early stage because Solaris 7 makes it rather cumbersome to do that later. It clearly lacks an AIX-like smitty ;-)
    Note: Solaris may refuse to install on erased disks w/o label ("corrupt label", "wrong magic number") The installation will abort in a console window which allows to correct for that. Enter
    format -e
    
    and select a disk. It is sufficient to just label it, i.e. no real formatting is needed. The latter might take nearly an hour.
    Quit and restart the installation.
    One may use "auto-layout" of the system disk as a first guess, and subsequently modify the partitions.

    Example for a 4GB disk:
    Partition Size/MB Usage
    /dev/dsk/c0t3d0s0 256 /
    /dev/dsk/c0t3d0s6 512 /usr
    /dev/dsk/c0t3d0s3 512 /var
    /dev/dsk/c0t3d0s7 256 /export/home
    (assuming remote user fs)
    /dev/dsk/c0t3d0s5 1536 /opt
    /dev/dsk/c0t3d0s1 512 /usr/openwin
    swap 512+x /tmp

  3. Insert Documentation CD and run its Installer (+200MB in /opt)
  4. Insert Netscape CD and run its Installer (+50MB in /opt)
  5. If available/applicable:
    Insert Workshop (compiler) CD and run its installer script (+600MB in /opt)
  6. Network configuration:
    influential files:
    /etc/hosts
    /etc/hostname.hme0
    /etc/nodename
    /etc/defaultrouter # 192.168.1.1
    /etc/resolv.conf
    /etc/nsswitch.conf 
    /etc/netmasks
    /etc/net/ticlts/hosts
    /etc/net/ticots/hosts
    /etc/net/ticotsord/hosts
    /etc/inet/ipnodes
    
    commands (depend on NIC hardware, example for a specific address):
    ifconfig hme0 192.168.1.52 netmask 255.255.255.0 plumb up
    # or:
    ifconfig  le0 192.168.1.52 netmask 255.255.255.0 plumb up
    
  7. To allow remote admin access it may be convenient to enable remote root login
Further Customization.

2.6/2.5

Prerequisites

A full installation of the base OS will require slightly over 1GB. For Documentation and Workshop add another GB. So a 4GB disk should suffice.
Note: The Solaris 2.5 media seem to be sensitive to the blocking factor of the CD drive. I could only succeed with a Plextor drive's block jumper set.
  1. Power Off/On, Stop-A (on an original Sun keyboard) gets you into Open Firmware console mode (ok prompt)
  2. Insert Installation CD
    boot cdrom
    
    and answer the questions, it's straightforward. I found it useful to setup a networked system at this early stage because Solaris makes it rather cumbersome to do that later. It clearly lacks an AIX-like smitty ;-)
    Note: Solaris may refuse to install on erased disks w/o label ("corrupt label", "wrong magic number") The installation will abort in a console window which allows to correct for that. Enter
    format -e
    
    and select a disk. It is sufficient to just label it, i.e. no real formatting is needed. The latter might take nearly an hour.
    Quit and restart the installation.
    One may use "auto-layout" of the system disk as a first guess, and subsequently modify the partitions.

    Example for a 4GB disk:
    Partition Size/MB Usage
    /dev/dsk/c0t3d0s0 256 /
    /dev/dsk/c0t3d0s6 512 /usr
    /dev/dsk/c0t3d0s3 512 /var
    /dev/dsk/c0t3d0s7 256 /export/home
    (assuming remote user fs)
    /dev/dsk/c0t3d0s5 1536 /opt
    /dev/dsk/c0t3d0s1 512 /usr/openwin
    swap 512+x /tmp

  3. if one happens to have the Software Supplement CD, follow the README to install (+140MB in /opt)
  4. Insert Documentation CD and use the admintool to install (+200MB in /opt)
    (asks a gazillion times for confirmation, so be patient).
  5. Insert Netscape 3.03 CD and use the admintool to install (+5MB in /opt)
  6. If available/applicable:
    Insert Workshop (compiler) CD and run its installer script (+600MB in /opt)
  7. Network configuration:
    influential files:
    /etc/hosts
    /etc/hostname.hme0
    /etc/nodename
    /etc/defaultrouter # 192.168.1.1
    /etc/resolv.conf
    /etc/nsswitch.conf 
    /etc/netmasks
    /etc/net/ticlts/hosts
    /etc/net/ticots/hosts
    /etc/net/ticotsord/hosts
    /etc/inet/ipnodes
    
    commands (depend on NIC hardware, example for a specific address):
    ifconfig hme0 192.168.1.59 netmask 255.255.255.0 plumb up
    # or:
    ifconfig  le0 192.168.1.59 netmask 255.255.255.0 plumb up
    
  8. To allow remote admin access it may be convenient to enable remote root login
Further Customization.
Last updated: 17-Sep-2010, M.Kraemer