Title: ZoneMinder Subject: Setup a webcam on Linux to monitor your stuff. By: John Streeton Stile Date: Note: Be very careful when picking a webcam. --------------------------------------------------------- Table of contents: 1. Topology 2. Install 3. Configure --------------------------------------------------------- Programs that use cameras in Linux: gphoto, coriander, kigikam, gtkam, kdegraphics2-kamera, lpovray Module for my camera: modprobe ov511 dmesg /usr/X11R6/bin/propwatch xawtv -debug 2 -nomouse -xv -nogl # List of Supported Cameras: gphoto2 --list-cameras # more supported cameras: http://www.zoneminder.com/support.html # Get the ffmpeg stuff. http://packman.links2linux.org/?action=223 # Install prerequisit packages rpm -qa |egrep 'imlib|libjpeg|v4l|ffmpeg' imlib-1.9.14-180.8 imlib-config-1.9.14-180.8 imlib-devel-1.9.14-180.8 imlib2-1.1.0-145 imlib2-devel-1.1.0 imlib2-filters-1.1.0 imlib2-loaders-1.1.0 libjpeg-6.2.0-731 v4l-tools-3.91-59 pwlib-plugins-v4l-1.6.5-8 v4l-conf-3.91-59 v4l-tools-3.91-59 pwlib-plugins-v4l-1.6.5-8 v4l-conf-3.91-59 libffmpeg0-0.4.8-0.pm.2 libffmpeg0-devel-0.4.8-0.pm.2 ffmpeg-0.4.8-0.pm.2 # Install showvideo-0.1 showvideo-0.1> make -d # Compiling zm-1.19.5: ./configure \ --with-mysql=usr/lib/mysql \ --with-ffmpeg --with-lame \ --with-webdir=/srv/www/htdocs/zm \ --with-cgidir=/srv/www/cgi-bin \ --with-webuser=wwwrun \ --with-webgroup=www perl zmconfig.pl # to create the file 'zmconfig.txt' Machine on which the database server is running (host.your.domain) [localhost] : Database containing the tables (alphanumeric) [zm] : Privileged DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [] : zm_privleged Privileged DB user password (alphanumeric) [] : zm_privleged Unprivileged DB user name, need just select privilege. (alphanumeric) [] : zm_unprivleged Unprivileged DB user password (alphanumeric) [] : zm_unprivleged ---------------------------------------------------------------------------- You have completed the options that are fixed in compilation. You can now continue and specify the remaining options or press 'x' to exit and save your changes and then edit the remainder from the web interface. ---------------------------------------------------------------------------- Default language used by web interface (directory) [en_gb] : x This is nomral for the first round: Loading config from DB DBI connect('database=zm;host=localhost','',...) failed: Access denied for user: '@localhost' to database 'zm' at zmconfig.pl line 1575 Warning: unable to load options from database. Ignore if database not created yet # Load the database mysql -u root -p < ./db/zmschema.sql # Create users for accessing the database mysql mysql -u root -p <