apt-get install genisoimage wodim
To burn the directory /home/user/mydir to a CD, do:
BURNDIR=/home/user/mydir genisoimage -r $BURNDIR | wodim -v speed=16 dev=/dev/sr0 -