Sunday, February 3, 2013

Basics of Zone

zonecfg -z zone01
>create -b
>set zonepath=/zones/zone01
>set autoboot=true
>add net
>>set address=10.0.0.11/18
>>set physical=e1000g2
>>set defrouter=10.0.0.1
>> end
>>verify
>>commit


>info
zonename: zone01
zonepath: /zones/zone01
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
net:
    address: 10.0.0.11/18
    physical: e1000g2
    defrouter: 10.0.0.1

Install zone
zoneadm -z zone01 install

Boot and complete installation
zoneadm -z rira01 boot
zlogin -C zone01



Saturday, February 2, 2013

Rename Solaris Host

/etc/hosts
/etc/nodename
/etc/hostname.*
/etc/inet/ipnodes

Some of them doesn't exist, so ignore them.

Reboot machine.

Monday, January 28, 2013

Solaris Boot/OK Prompt

To boot from cdrom and do admin task without mounted disk:

  • init 0
  • connect to system from sc
  • ok> boot cdrom -s or boor cdrom - nowin

Monday, January 21, 2013

Setting Up SSH Public/Private Key

Creating keys, if don't have it yet
ssh-keygen -t dsa
or
ssh-keygen -t rsa -b 4096

Copy public file content (id_dsa.pub) to ~/.ssh/authorized_keys on REMOTE site

ssh client uses id_rsa as private key
ssh server use authroized_keys as public key of client to check validity



  • The file $HOME/.ssh/authorized_keys  lists  the public keys that are permitted for logging in.
  • PuTTY key file formats seems not match with linux/solaris ssh, or need change to make it compatible



Solaris Hardware RAID

raidctl
List current raid configuration and setup

raidctl -c primary secondary
Make hardware mirrored volume
raidctl -c c0t0d0 c0t1d0

raidctl -c -r 0 disk1 disk2 ...
Make hardware striped volume

raidctl -l c0t0d0
Check existing raid volume


Use format->label to finalize and make it usabe

Physical Memory Size in Solaris

prtconf | grep Mem

Wednesday, July 4, 2012

RealVNC Password


  1. Use vnckeygen to generate private/public keys, you may see unexpected connection close or private key not found in logs.
  2. Enterprise version is using system authentication by default, to change it to vnc password, the straight way that I found is editing vncserver script and add  below line where cal the Xvnc.
$cmd .= " -UserPasswdVerifier VncAuth";