Using the raspberry camera module to setup zoneminder run:
# apt-get install zoneminder
this takes about 2 hours. From a remote machine http wasnt working so I did this:
# sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
and restarted apache
# service apache2 restart
Now I can see the zm page at: http://192.168.2.21/zm/index.php
following instrucitons from
http://redlegoman.blogspot.co.uk/2013/05/using-raspberry-pi-camera-module-with.html
I downloaded vlc:
# apt-get install vlc
rebooted then streamed the video to a network port from a non privileged user:
$ raspivid -o - -t 9999999 -w 320 -h 240 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://192.168.2.21:8554/pi.sdp}' :demux=h264
In zoneminder set up a new monitor and add the following as the source path:
rtsp://192.168.2.21:8554/pi.sdp
In general the source type needs to be ffmpeg and the capture width and height is 320/240 resp.
I left everything else default