Namran Hussin Linux,Network Setting up personal CCTV with CentOS and webcam

Setting up personal CCTV with CentOS and webcam

After tried few times and failed to get the webcam to work in my Fedora 9 box..
I decided to re-formatted the whole box and install CentOS 5..

and guess what?.. after installed dkms-gpsca and all the dependencies..
the webcam just work out-of-the-box..
.. by using ekiga.. can see the video stream captured from the

/dev/video

hahaha..

then come the interesting part..
after playing a bit with skype and ekiga to get the video stream..
why not putting a webcam software showing something like world view.. or something..

did bump into a software.. Zone Minder[zoneminder.com]
[ad#postad]
run into sort of script sequence as below..

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

mkdir cctv
cd cctv/
wget wget http://www.zoneminder.com/fileadmin/downloads/cambozola.jar
wget http://www2.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz
yum install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel
yum install libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools perl-Date-Manip perl-Time-HiRes
yum install perl-LWP-UserAgent-Determined perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Module-Load
tar -zxvf ZoneMinder-1.23.3.tar.gz
cd ZoneMinder-1.23.3
./configure –with-webdir=/var/www/html/zm –with-cgidir=/var/www/cgi-bin
make
make install

service mysqld start

mysql
cd cctv/ZoneMinder-1.23.3

mysql -u root -p < db/zm_create.sql zm cp scripts/zm /etc/init.d/ chmod a+x /etc/init.d/zm chkconfig zm on cp ../cambozola.jar /var/www/html/zm/ service zm start chkconfig httpd on chkconfig mysqld on chkconfig ntpd on

~~.. done..

and the result is…

CCTV Console

CCTV Console

Front of the aparment

Front of the aparment

4 thoughts on “Setting up personal CCTV with CentOS and webcam”

  1. I m using centos, i tried ur installation step and gone fine but finally when i ran the command ‘service zm start’ my terminal says ‘bash: service: command not found’ wat might be the error. I want my web cam from mron to work.

  2. have you become root first before issue
    with

    “su – ”

    “service zm start” ?

    can be also as ..

    “/sbin/service zm start”

    or
    “/etc/init.d/zm start”

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post