Solaris 10 Base Line Configuration

After the Solaris 10 install on the E3000 we need to do a  few things to get a  somewhat functional system.
During the install I’ve allowed all network services to be open. The E3000 is hidden away on a firewalled VLAN.

Commands are in Italics

  1. Create a user,  other then root…
    Whats that you say?? just log in as root..  no thats just dumb and if you can not understand why move away from your keyboard now
    Creating users in Solaris 10 is easey
    # useradd -m -G users USERNAME ( replace USERNAME with your username)
    This will have a whinge as /home is  controlled by the automounter and is not a “real” directory.
    Create the real user home directory ready for the automounter
    # mkdir  /export/home/USERNAME
    # chown USERNAME:GROUP /export/home/USERNAME
    as per normal replace USERNAME and GROUP with real entry’s
  2. Configure the automounter to pick up your new user. Yes you can disable the automounter for /home, lets just assume your really going to use this as networked system!
    # vi /etc/auto_home
    Do the following changes :-
    * Comment out the line “+auto_home”
    * Add this “USERNAME HOSTNAME:/export/home/USERNAME
    Save and exit vi
    Now make the automouter reread its config
    # automount -v
  3. Time to add some more disks!
    Since I added the disks after the install I need to make soalris rescan its H/W and update /dev
    # devfsadm -vC
    Use the “format” command to make sure we can see new disks. Unformated/Unlabed disks will appear at the top. You can also search the path /dev/dsk <- this is my preference
    # format
    Searching for disks…donec0t1d0: configured with capacity of 16.95GB
    c0t14d0: configured with capacity of 16.95GB
    c0t15d0: configured with capacity of 16.95GBAVAILABLE DISK SELECTIONS:
    0. c0t0d0 <COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254>
    /sbus@3,0/SUNW,fas@3,8800000/sd@0,0
    1. c0t1d0 <COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254>
    /sbus@3,0/SUNW,fas@3,8800000/sd@1,0
    2. c0t3d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
    /sbus@3,0/SUNW,fas@3,8800000/sd@3,0
    3. c0t14d0 <COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254
    /sbus@3,0/SUNW,fas@3,8800000/sd@e,0
    4. c0t15d0 <COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254
    /sbus@3,0/SUNW,fas@3,8800000/sd@f,0

    As you can see disk c0t1d0, c0t14d0, c0t15d0  are all unknown to the install.  c0t1d0, holds my Gentoo install so i know c0t14d0, c0t15d0 are the two new disks.

    OR

    # ls -la /dev/dsk
    __SNIP__
    lrwxrwxrwx   1 root     root          50 Mar 16 18:01 c0t14d0s1 -> ../../devices/sbus@3,0/SUNW,fas@3,8800000/sd@e,0:a
    lrwxrwxrwx   1 root     root          50 Mar 16 18:01 c0t15d0s1 -> ../../devices/sbus@3,0/SUNW,fas@3,8800000/sd@f,0:a
    __SNIP__
    So much nicer don’t you think :)

  4. Format and the new disks and remove any un-needed partitions. Some knowledge on how solaris “format” works here is assumed, if not read the MAN page.. works for me!
    # format
    format> format
    format> p
    partition> p
    Check now for any useless partitions and remove
    partition> 1
    ect..
    partition> m 0
    etc..
  5. So lets create a new ZFS pool with the two spare disks.
    # zpool create store c0t14d0s1 c0t15d0s1
    Note the above will create  “Raid 0” like pool, For its purpose I don’t care. My root volume is in mirror.
    Check it..
    # zpool status
    pool: boot_vol
    state: ONLINE
    scrub: none requested
    config:

    NAME          STATE     READ WRITE CKSUM
    boot_vol      ONLINE       0     0     0
    mirror      ONLINE       0     0     0
    c0t0d0s0  ONLINE       0     0     0
    c0t3d0s0  ONLINE       0     0     0

    errors: No known data errors

    pool: store
    state: ONLINE
    scrub: none requested
    config:

    NAME         STATE     READ WRITE CKSUM
    store        ONLINE       0     0     0
    c0t14d0s1  ONLINE       0     0     0
    c0t15d0s1  ONLINE       0     0     0

    errors: No known data errors

  6. Now we need to create a ZFS file-system on the new pool.
    # zfs create store/store (You can call this what ever you like)
    check to see if its mounted, it should auto mount if all is good.
    # df -h

    we’ll come back to this later, its for the netboot environment

  7. I like to have a few little extra  apps on my Solaris installs. I use blastwave.org for this. blastwave supports Solaris 8 and up on SPARC and x86.
    So lets get to installing it.
    Taken from this guide
    pkgadd -d http://blastwave.network.com/csw/pkgutil_`/sbin/uname -p`.pkg
    Select “all” when prompted
    Select “y” when prompted
    # mkdir /etc/opt/csw
    # cp -p /opt/csw/etc/pkgutil.conf.CSW /etc/opt/csw/pkgutil.conf
    # /opt/csw/bin/pkgutil –catalog
    # /opt/csw/bin/pkgutil –install gnupg textutils

    answer “y” to any questions here
    # /opt/csw/bin/pkgutil –install wget
    answer “y” to any questions here
    # /opt/csw/bin/wget http://www.blastwave.org/gpg_key.txt
    # /opt/csw/bin/gpg –import gpg_key.txt
    Note :- “Method 3” listed on the howto was not working for me at this time
    # /opt/csw/bin/gpg –edit-key A1999E90
    Now type “Trust” and select Option 5, then “y” , finaly type “quit
    Edit the following file to make use of the gpg key
    # vi /etc/opt/csw/pkgutil.conf
    Edit the following :-
    #use_gpg=true
    #use_md5=true
    Uncomment the two above entry’s, then save and exit vi.
    Last step! Re fetch the catalog
    # /opt/csw/bin/pkgutil –catalog
    Now you can use the follwoing command to install anything from blastwave
    # /opt/csw/bin/pkgutil –install PKGNAMEI like to update the path just to make my life a little easer..
    Edit the two below files :-
    * /etc/default/login
    * /etc/default/su
    Uncomment/change “PATH=” to the following
    PATH=/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/opt/csw/bin

This is just a real basic setup. Showing off ZFS and some of my basic tweaks. I’ve be setting up more  services in the next post.

You should be able to connect via SSH and XDMCP.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: