Archive for May, 2009


LDAP backup and reload ..

May 12, 2009 in Linux

To backup:
— cd /etc/openldap
— slapcat -l backup.ldif

To reload:
— stop ldap (/etc/init.d/ldap stop)

— cd /var/lib/ldap

— mv world world0

— mkdir /var/lib/ldap/world

— chown ldap:ldap /var/lib/ldap/world

— /etc/init.d/ldap start

— cd /etc/openldap

— slapadd -l backup.blah

— chown -R ldap:ldap /var/lib/ldap/world

Download (and convert) videos from YouTube..

May 08, 2009 in Media

To download a video:

$ clive

“clive” will download the video as “mp4”.

To convert it to “mpg” (vlc 0.8 could not decode “mp4”):

$ ffmpeg -i xyz.mp4 -target ntsc-vcd xyz.mpg