rasti.hil@hilandco.com +41 79 367-9677

install grub on clone system

download vbox
create vm
download KNOPPIX
start vm with knoppix

create partition
mkdir /dev/sda1 /ora

on source system create tar's from

tar cvf /tmp/sles9.tar

scp oracle@source:/tmp/sles9.tar

tar xvf sles9.tar

chroot /ora
mkdir -p  /proc /sys /tmp /mnt  /boot
mount -t proc proc /proc
mount -t sysfs sysfs /sys
vi /etc/fstab

vi /etc/mtab
/dev/sda1 / ext3 rw,acl


grub-install --root-directory=/ora /dev/sda

demo ssl with openssl

set system32_folder=C:\WINDOWS\system32
set openssl_home="d:\Programme\Openssl-0.9.7e-Win32"
set csr_file=domain.csr
set key_file=domain.key
set cert_file=domain.cert
copy %openssl_home%\ssleay32.dll  %system32_folder%\
copy %openssl_home%\libeay32.dll  %system32_folder%\

cd "%openssl_home%"
openssl req -config openssl.cnf -new -out %csr_file%
openssl rsa -in privkey.pem -out %key_file%
openssl x509 -in %csr_file% -out %cert_file% -req -signkey %key_file% -days 365

Resize aws EC2 root partition

  1. stop  instance
  2. disassociate root volume
  3. snapshot root volume
  4. create new volume with larger size
  5. associate new root volume
  6. start instance
  7. resize2fs /dev/xvde1 
  8. delete snapshot
  9. delete old volume

Install NX on aws ec2 sles11


rpm -i nxclient-3.5.0-7.x86_64.rpm
rpm -i nxnode-3.5.0-9.x86_64.rpm
rpm -i nxserver-3.5.0-11.x86_64.rpm

Update hosts file with LB IP (AWS EC2)

export TS=$(date +%Y%m%d%H%M)
echo $TS
export hosts=/etc/hosts
export hname="soa.hilandco.com soa"
cp $hosts $hosts.$TS
sed /$hname/d $hosts.$TS > $hosts
export dnsalias="`curl` $hname"

echo $dnsalias >> $hosts
cat $hosts