Now that I have my HP Microserver running Ubuntu, I wanted to set it up as a CCTV digital video recorder. I've purchased some Foscam cameras and I am going to use Zoneminder. Zoneminder is a linux application for home or office CCTV use. It allows for recording, monitoring and alerting of video footage. Zoneminder's website at Zoneminder for more details.
I have installed zoneminder in the past, and had to compile it from source, as the version of zoneminder available for the distribution I was using, was out of date. This is not the case now, or least at the point of time I am writing this, Ubuntu 12.04 includes the current version 1.25 of Zoneminder, so now time to show how I installed it.
1. Install updates to Ubuntu
This will check for and perform an update on Ubuntu
2. Install Zoneminder
Install the zoneminder software using the Advanced Packaging Tool APT, this will install the required dependencies.
apt-get install zoneminder
3. Configure Apache webserver
We need to link in the apache configuration file now that zoneminder is installed.
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
4. Add required user accounts for zoneminder
Zoneminder requires these accounts to be created, for the application to function correctly.
sudo adduser www-data video
5. Modify the zoneminder startup script
we need to add a delay to ensure MYSQL has started, before starting zoneminder
create a new line with 'sleep 15' before 'zmfix -a'
6. (Optional) Install Cambozola
Cambozola is a Java plugin that decodes multipart JPEG streams. Firefox doesn't require this plugin, but if you are planning to use a browser like IE, then you'll want this module.
cd /usr/src && wget http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.tar.gz
tar -xzvf cambozola-latest.tar.gz
cp cambozola-0.92/dist/cambozola.jar /usr/share/zoneminder
7. Reboot and Test
A quick reboot and we'll then confirm everything worked as planned
shutdown -r now
Part 2 tomorrow, will be on setting up the Foscam camera I bought, so stay tuned.