Documents
Howtos — Motion
This document describes the procedure on how to install and configure motion detector system.OS used: Linux (Fedora 9); tools used: motion, libjpeg, ffmpeg, and ffmpeg-devel.
Prepare Motion
Please note that this procedure requires some packages, namely: gcc, glibc-devel, glibc-headers, kernel-headers, gcc-c++, libstdc++-devel, and pcre-devel.-
Get and install libjpeg-devel:
[1] Download the package at http://download.fedora.redhat.com/pub/fedora/linux/releases/9/Fedora/x86_64/os/Packages, and install it by executing:
# rpm -ivh libjpeg-devel; or
[2] If Fedora 9 DVD is present, install the package by executing these:
# mount /dev/cdrom /mnt
# rpm -ivh /mnt/Packages/libjpeg-devel-x.x.x.rpm; or
[3] If internet is availble, do the easy way by executing this:
# yum install libjpeg-devel. -
Download motion at http://www.lavrsen.dk/twiki/bin/view/Motion/DownloadFiles,
and install it by executing:
$ ./configure --prefix \
--exec-prefix=/usr \
--sysconfdir=/etc
$ make
# make install
Configure Motion
-
Open and modify /etc/motion.conf with these values:
daemon on
videodevice /dev/video0
target_dir /var/www/html/motion
jpeg_filename %t-cns -
Copy motion.init-RH.in to /etc/rc.d/init.d/motion, and execute these:
# /sbin/chkconfig --level 2345 motion off
# /sbin/chkconfig --level 3 motion on - Plug-in the USB-based web camera to any available USB port, and restart the server.
- Enjoy.