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";

Tuesday, June 26, 2012

Directory of Running Batch [Windows]

To find out where a windows bat file is and most likely use it to adjust configuration, library, classpath, etc on the same folder use below
command to switch to that

cd /d %dp0


Monday, June 25, 2012

Touring Birthday Centennial

Happy Alen Touring  Birthday Centennial.