How to create an encrypted partition on an usb stick or usb harddrive in 6 steps:

  1. Partition the stick/hard drive (we assume it is located under /dev/sdb)

    fdisk /dev/sdb

  2. Setup the encrypted partition with cryptsetup

    cryptsetup -c aes-cbc-essiv:sha256 -s 256 luksFormat /dev/sdb1

  3. Optionally add aditional keys

    cryptsetup luksAddKey /dev/sdb1

  4. Open the container

    cryptsetup luksOpen /dev/sdb1 some_name

  5. Create the file system

    mkfs.ext3 -L label -m 0 /dev/mapper/some_name

  6. Close the container

    cryptsetup luksClose some_name

Here is a simple recipe, to authenticate users against an LDAP directory, using the native ldap client of Solaris 10.

working with kvm images

| No Comments | No TrackBacks

A collection of short recipies on how to

  • enlarge
  • mount

kvm images.

git step by step

| No Comments | No TrackBacks

This article is a collection of notes on how I use git. It is mainly intended for my personal use. If you want to learn more about git, you should better read the tutorial, the manual or gitmagic.

logcheck step by step

| No Comments | No TrackBacks

This step by step recipe is probably only interesting to myself. It tells me the procedure how to

  • get logcheck from git,
  • develop and test its rules,
  • upload the modifications back to the repository, and
  • build an updated debian package

If you’re you want to help developing logcheck yourself, you probably better read this.