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

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

5 Responses

  1. ffrancesco says:

    It runs perfect on my Centos 5.3! thank you.

    Reply
  2. jd says:

    [[email protected] ~]# yum install obexftp gnome-bluetooth
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: http://ftp.cuhk.edu.hk
    * updates: http://ftp.cuhk.edu.hk
    * addons: http://ftp.cuhk.edu.hk
    * extras: http://ftp.cuhk.edu.hk
    Setting up Install Process
    Parsing package install arguments
    No package obexftp available.
    Resolving Dependencies
    –> Running transaction check
    —> Package gnome-bluetooth.i386 0:0.7.0-10.2.el5 set to be updated
    –> Processing Dependency: gnome-bluetooth-libs = 0.7.0-10.2.el5 for package: gnome-bluetooth
    –> Processing Dependency: libopenobex.so.1 for package: gnome-bluetooth
    –> Processing Dependency: libgnomebt.so.0 for package: gnome-bluetooth
    –> Processing Dependency: libbtctl.so.2 for package: gnome-bluetooth
    –> Running transaction check
    —> Package openobex.i386 0:1.3-3.1 set to be updated
    —> Package gnome-bluetooth-libs.i386 0:0.7.0-10.2.el5 set to be updated
    —> Package libbtctl.i386 0:0.6.0-9.2.el5 set to be updated
    –> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Installing:
    gnome-bluetooth i386 0.7.0-10.2.el5 base 235 k
    Installing for dependencies:
    gnome-bluetooth-libs i386 0.7.0-10.2.el5 base 65 k
    libbtctl i386 0.6.0-9.2.el5 base 44 k
    openobex i386 1.3-3.1 base 21 k

    Transaction Summary
    ================================================================================
    Install 4 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 365 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/4): openobex-1.3-3.1.i386.rpm | 21 kB 00:00
    (2/4): libbtctl-0.6.0-9.2.el5.i386.rpm | 44 kB 00:01
    (3/4): gnome-bluetooth-libs-0.7.0-10.2.el5.i386.rpm | 65 kB 00:01
    (4/4): gnome-bluetooth-0.7.0-10.2.el5.i386.rpm | 235 kB 00:02
    ——————————————————————————–
    Total 26 kB/s | 365 kB 00:14
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : openobex [1/4]
    Installing : libbtctl [2/4]
    Installing : gnome-bluetooth-libs [3/4]
    Installing : gnome-bluetooth [4/4]

    Installed: gnome-bluetooth.i386 0:0.7.0-10.2.el5
    Dependency Installed: gnome-bluetooth-libs.i386 0:0.7.0-10.2.el5 libbtctl.i386 0:0.6.0-9.2.el5 openobex.i386 0:1.3-3.1
    Complete!
    [[email protected] ~]# sdptool browse
    Inquiring …
    Browsing 00:1E:37:69:33:A7 …
    Browsing 00:24:7E:21:FF:BB …
    Browsing 00:1E:37:6E:BE:F3 …
    Service Name: Bluetooth Serial Port
    Service RecHandle: 0x10000
    Service Class ID List:
    “Serial Port” (0x1101)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 1
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “Serial Port” (0x1101)
    Version: 0x0100

    Service Name: Network Access
    Service RecHandle: 0x10001
    Service Class ID List:
    “PAN Group Network” (0x1117)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    PSM: 15
    “BNEP” (0x000f)
    Version: 0x0100
    SEQ8: 0 6 dd
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “PAN Group Network” (0x1117)
    Version: 0x0100

    Service Name: Network Access
    Service RecHandle: 0x10002
    Service Class ID List:
    “PAN User” (0x1115)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    PSM: 15
    “BNEP” (0x000f)
    Version: 0x0100
    SEQ8: 0 6 dd
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “PAN User” (0x1115)
    Version: 0x0100

    Service Name: Dial-up Networking
    Service RecHandle: 0x10003
    Service Class ID List:
    “Dialup Networking” (0x1103)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 2
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “Dialup Networking” (0x1103)
    Version: 0x0100

    Service Name: PIM Item Transfer
    Service RecHandle: 0x10004
    Service Class ID List:
    “OBEX Object Push” (0x1105)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 3
    “OBEX” (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “OBEX Object Push” (0x1105)
    Version: 0x0100

    Service Name: File Transfer
    Service RecHandle: 0x10005
    Service Class ID List:
    “OBEX File Transfer” (0x1106)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 4
    “OBEX” (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “OBEX File Transfer” (0x1106)
    Version: 0x0100

    Service Name: Fax
    Service RecHandle: 0x10006
    Service Class ID List:
    “Fax” (0x1111)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 5
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “Fax” (0x1111)
    Version: 0x0100

    Service Name: PIM Synchronization
    Service RecHandle: 0x10007
    Service Class ID List:
    “IrMC Sync” (0x1104)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 6
    “OBEX” (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “IrMC Sync” (0x1104)
    Version: 0x0100

    Service Name: Sync Command Service
    Service RecHandle: 0x10008
    Service Class ID List:
    “IrMC Sync Command” (0x1107)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 6
    “OBEX” (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “IrMC Sync” (0x1104)
    Version: 0x0100

    Service Name: Headset
    Service RecHandle: 0x10009
    Service Class ID List:
    “Headset” (0x1108)
    “Generic Audio” (0x1203)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 7
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “Headset” (0x1108)
    Version: 0x0100

    Service Name: Stereo Audio
    Service RecHandle: 0x1000a
    Service Class ID List:
    “Audio Sink” (0x110b)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    PSM: 25
    “AVDTP” (0x0019)
    uint16: 0x100
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “Advanced Audio” (0x110d)
    Version: 0x0100

    Service RecHandle: 0x1000b
    Service Class ID List:
    “AV Remote Target” (0x110c)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    PSM: 23
    “AVCTP” (0x0017)
    uint16: 0x100
    Profile Descriptor List:
    “AV Remote” (0x110e)
    Version: 0x0100

    Service Name: Audio Source
    Service RecHandle: 0x1000c
    Service Class ID List:
    “Audio Source” (0x110a)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    PSM: 25
    “AVDTP” (0x0019)
    uint16: 0x100
    Profile Descriptor List:
    “Advanced Audio” (0x110d)
    Version: 0x0100

    Service Name: Bluetooth Imaging
    Service RecHandle: 0x1000d
    Service Class ID List:
    “Imaging Responder” (0x111b)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 8
    “OBEX” (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    “Imaging” (0x111a)
    Version: 0x0100

    Service Name: Audio Gateway
    Service RecHandle: 0x1000e
    Service Class ID List:
    “Headset Audio Gateway” (0x1112)
    “Generic Audio” (0x1203)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 9
    Profile Descriptor List:
    “Headset” (0x1108)
    Version: 0x0100

    Service Name: Audio Gateway
    Service RecHandle: 0x1000f
    Service Class ID List:
    “Handfree Audio Gateway” (0x111f)
    “Generic Audio” (0x1203)
    Protocol Descriptor List:
    “L2CAP” (0x0100)
    “RFCOMM” (0x0003)
    Channel: 10
    Profile Descriptor List:
    “Handsfree” (0x111e)
    Version: 0x0101

    Browsing 00:21:86:C2:4B:5A …
    Failed to connect to SDP server on 00:1E:37:69:1F:51: Host is down
    Browsing 00:24:7E:98:97:23 …

    ********************QUESTION*********************
    why it shows that no package obexftp available

    and after that what is that hanphone…????

    can u post it with few more screenshot of commands also…so that its get easyyyyyyyy
    waitingggggggggggggggggg….
    thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    Reply
  3. jd says:

    obexfs command not found…
    how to resolve???
    yum installation not workingggggggg
    what to doooooooo???

    Reply
  4. crisstm says:

    Well.
    I install with succes all in centos 5.4 the latest version with latest update and when i type obex:// in my computer address :
    Nautilus cannot disply “obex:///”
    Please select another viewer and try again.
    ???

    Reply

Anything to add?

X