After reading many articles looking for a way for recording IP cameras, I've found Zoneminder looks awesome. So I've just set up a computer with W10 and a virtual machine (HyperV) with Ubuntu server and Zoneminder.
Why like this? One program I need to use is just for Windows, and feel more comfortable (easier for me) do most of the things with Windows and the VM just for the Zoneminder service.
So, my idea is to put in a HDD the VM and the recorded files (folders events and images) outside the virtual driver. I don't want to manage a huge 500GB virtual driver, it's easier to backup a 15GB file.
The steps I already did:
- Install Ubuntu Server 16.04 LTS with LAMP => Following the Installation Guide: https://zoneminder.readthedocs.io/en/st ... untu-16-04 (so it's the latest update)
- Create a user in Windows for the shared folder. Set permissions (shared and NTFS) for that user.
- Mount the windows shared folder, following: https://help.ubuntu.com/community/Mount ... ermanently
Until here, everything is fine. With my user and with root, I can create and delete files in the mount folder /mnt/DATA/
After that, I followed this guide to change Zoneminder events and images location: https://wiki.zoneminder.com/Using_a_ded ... Hard_Drive
(I didn't put "/dev/sdX1 /newdrive ext3 defaults 0 2", is it necessary? I don't think so because it's not a drive, is a shared folder...)
Actually, my fstab file is with these extra lines:
Code: Select all
//192.168.1.10/GLaDOS /mnt/DATA cifs iocharset=utf8,credentials=/home/jordi/.sm$
/mnt/DATA/images /var/cache/zoneminder/images none defaults,bind 0 2
/mnt/DATA/events /var/cache/zoneminder/events none defaults,bind 0 2
Code: Select all
- 2016-09-28 12:04:40.656596 web_php 1249 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 147
Code: Select all
jordi@GLaDOS:/mnt/DATA$ ls -lh
total 0
drwxr-xr-x 2 jordi root 0 Sep 22 23:28 DATA
drwxr-xr-x 2 jordi root 0 Sep 23 15:51 events
drwxr-xr-x 2 jordi root 0 Sep 22 16:38 images
Any one can help me on this? Don't know what else to do

Many thanks in advanced, have a nice day!