Monday, September 26, 2005

Backing up a DVD to AVI with merged subtitle using Mencoder

  • Encode Audio
    • mencoder vob_03_005t.vob -ovc frameno -oac mp3lame -o frameno.avi
  • Encode Video 1st pass
    • mencoder vob_03_005t.vob -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1973:vhq:vqmin=2:vpass=1:autoaspect -oac copy -o /dev/null
  • Encode Video 2nd pass
    • mencoder vob_03_005t.vob -ovc lavc -sub subtitle.srt -lavcopts vcodec=mpeg4:vbitrate=1973:vhq:vqmin=2:vpass=2:autoaspect -af volumn=10db -oac copy -o video.avi

HOWTO Mencoder Introduction Guide - Gentoo Linux Wiki

HOWTO Mencoder Introduction Guide

Wednesday, September 21, 2005

Setting-up a Certificates Authority using OpenSSL

I forget this almost everytime, so write it down here just in case.

  1. Have OpenSSl install somewhere.
  2. Go to /share/ssl or sometimes ssl directory
  3. Fix openssl.conf. Change "demoCA" to "somethingCA" that's more appropriate.
  4. Change "-days 365" in misc/CA.sh to "-days 3650"
  5. misc/CA.sh -newca. A directory called "somethingCA" will be here.
  6. Now create a cert request
    1. misc/CA.sh -newreq for cert with passphrase
    2. To create a cert request without passphrase. "openssl genrsa -out newkey.pem 1024" then "openssl req -new -key newkey.pem -out newreq.pem"
  7. Sign the generated request with "misc/CA.sh -sign". It always looking for "newreq.pem" so be carefull. The new certificates will be in newcert.pem
  8. Copy key and cert to the machine which want to use these. Put it in appropriate directory (/usr/share/ssl/certs/{slapd-key.pem,slapd.pem} for OpenLDAP)
  9. Find the hash number of ca by "misc/c_hash somethingCA/cacert.pem". The printed value is the file name. Copy somethingCA/cacert.pem to /usr/share/ssl/certs/.0.
For OpenLDAP
  1. Need to fix /etc/openldap/ldap.conf and /etc/openldap/slapd.conf to accept the new CA
  2. Fix the following configuration
    1. "TLS_CACERT /usr/share/ssl/certs/fde68c33.0" in /etc/openldap/ldap.conf
    2. "TLSCACertificateFile /usr/share/ssl/certs/fde68c33.0" in /etc/openldap/slapd.conf
Hope that I'll never forget this again.

Monday, September 19, 2005

Wednesday, September 07, 2005

Adding driverdisk to Compute Node in ROCKS

This should be usefull for us. We can install compute node which required some driver disk. Just grab it from ROCKS mailing-list.


if you can PXE boot your compute nodes, then on your frontend, try:

# cd /home/install
# mkdir driverdisk
# cp /home/install/driverdisk/dd.img

# vi /tftpboot/pxelinux/pxelinux.cfg/default

change the line:

append ks initrd=initrd.img ramdisk_size=150000 lang= devfs=nomount headless pxe kssendmac selinux=0

to:

append ks initrd=initrd.img ramdisk_size=150000 lang= devfs=nomount headless pxe kssendmac selinux=0 driverdisk=http://10.1.1.1/install/driverdisk/dd.img