I decided some time to install a surveillance system for my home. By chance I ended up finding the DealExtreme a capture card for surveillance cameras for their comments, was easily configurable on Linux. Then took the initiative to research a bit and ride my own system of monitoring and recording using Zoneminder. One of the first questions was which system to use, which * nix flawor, what hardware, the storage space, what is the real need for processor, etc.. Many of these questions still possess a response or basic rule to determine, but this text will describe the steps I took to make the system functional. HARDWARE: How the motor system, after seeing many comments like "use your old pc", decided to adopt a motherboard "low power". Why not be something common was a little tough to choose, but I ended up finding a VIA Phitronics of PC1 in the JNE Computer Paulista Avenue store. The setting is modest, a VIA C7-M 1.6Ghz cousette processor with the basics currently found onboard, USB 2.0, audio, ethernet and VGA adapter. The model I found was the VIA PC3000E +.
Added to the motherboard 2GB of DDR2 memory and two hard drives, one IDE 40GB for the system and a SATA 1.5TB for recordings. It is necessary that the machine has enough memory since Zoneminder makes use of shared memory between cousette processes for handling and motion detection. Have a great storage of course, intend to keep the recordings for an extended cousette period and that requires space. The capture card that ended up ordering cousette from China is not a Ferrari, but has a low and my system seemed enough. 4-Channel DVR Video Capture PCI Card for 25/30 FPS Security Cameras
The cameras, only two so far, ordered the Ribershop shop I found on eBay, this shop which proved very rich in equipment for safety. I opted for two CCD cameras in NTSC standard which is operated by the same capture cousette card. All assembled, let the software. SOFTWARE: I faced many headaches and lost a considerable time testing a few options to get to the operating system like Debian more suitable for my project. Among the attempts, I gave up Ubuntu to be highly integrated with the graphic system and do not want to use a monitor attached to the system, getting very complicated place an "cleansing" of the installed base system and that most want is to have a quick formula to mount the same . Also tested the FreeBSD 8.2 and knowing that a driver support system for the capture card might not be powerful enough, could even test the same as installing Zoneminder from ports failed and was also needed for various settings leave the same functional. Upon arriving at my third attempt, Debian 6, ease of install environment wound up with the tests of choice and decided to go into production. Settings: After you have installed the base system, cousette you can install Zoneminder with one command: apt-get install zoneminder The same will install the entire ecosystem of software necessary for the implementation of the ZM, the initial database in MySQL, the system startup scripts, Apache, PHP5 and libraries and programs needed for image manipulation / video. The only action required to access the console ZM was to inform Apache of the same files: ln-s / etc / zm / apache.conf / etc/apache2/sites-available/zm a2ensite zm apache2ctl restart After this you can access the island in the url http://ipdoservidor / zm Problems: So far, so very easy, the complex part was finding that I will summarize the correct settings for the ZM work with the hardware described. UDEV The first detail is allowed to access the device capture card. After installation without any configuration Linux had already detected my capture cousette card and created the device / dev/video0. However, the permissions of the same would not let ZM access the device and even changing with chmod after rebooting the default permissions were returned. To solve this was to create a udev rule for determining which permissions should be given to the device. I then created the file / etc/udev/rules.d/70-persistent-bttv.rules with the following content: KERNEL == "video cousette *", GROUP = "video", MODE = "0666", OPTIONS = "last_rule" Upon reboot, the permissions cousette were correct. Although bttv Linux kernel recognizes the chipset cousette automatically captures, this is not 100% functional without which can inform "plate" the system should use. For it was necessary to tell bttv driver which model the same with the following code: echo "options bttv card = 77" >> / etc / modprobe.d / bttv.conf done, the next load of the driver (reboot or rmmode / modprobe) should be found in the output of dmesg something like: bttv