1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>
Image 1

WE Solutions / Our services

  • Previous
  • Next
  • Stop
  • Play

SAMBA/LDAP

Thin Client Server

Postfix Mail Server

Postfix Mail Server

HA Clustering


Warning: Parameter 3 to mb_videobot() expected to be a reference, value given in /home/www/virtual/susethailand.com/htdocs/libraries/joomla/event/dispatcher.php on line 136

CCTV

PDF Print E-mail

Written by Mr. Sontaya Photibut Saturday, 02 May 2009 15:49

การติดตั้ง CCTV บน SLES10-SP1-x86_64 ด้วย Zoneminder

ZoneMinder เป็น Open Source Software (OSS) ที่ใช้ติดตั้งทำเป็น Server CCTV บน Linux
มาดูวิธีติดตั้งกันเลยดีกว่าครับ

1. ติดตั้ง software ดังต่อไปนี้ (จาก YaST)

-  apache2

- apache2-worker

- apache2-mod_perl 

- apache2-mod_php5 

- apache2-mod-apparmor

- php5

- php5-mysql

- mysql

- mysql-devel

- gcc

- gcc-c++

- libjpeg

- libjpeg-devel

- pcre-devel

- openssl-devel

 

2. ทำการ Update perl จาก CPAN และติดตั้ง perl packages

- เปิด Terminal window

# perl -MCPAN -e shell

cpan> install Bundle::CPAN

cpan>reload CPAN

cpan>install Archive::Tar

cpan>install Archive::Zip

cpan>install MIME::Lite

cpan>install MIME::Tools

cpan>install DateTime

cpan>install Date::Manip updated 2006-03+04 thanx to mickecarlsson

cpan>install Bundle::libnet 

cpan>install Device::SerialPort

cpan>install Astro::SunTime Updated 2006 03 24 correct spelling error on SunTime (thanx to mickecarlsson)

cpan>install X10

cpan>exit

 

3. ติดตั้ง Zoneminder release (v1.22.3)

Download :  http://www.zoneminder.com/downloads.html

# tar -zxvf ZoneMinder-1.22.3.tar.gz

# cd ZoneMinder-1.22.3

#  ./configure --with-webdir=/srv/www/htdocs --with-cgidir=/srv/www/cgi-bin

 --with-webgroup=www --with-webuser=wwwrun ZM_DB_HOST=localhost ZM_DB_NAME=zm 
ZM_DB_USER=zm ZM_DB_PASS=zm
(พิมพ์ต่อกันเลยนะครับ) 
# mysql -h localhost -u root -p
(password is blank)
# source db/zm_create.sql;
# grant select,insert,update,delete on zm.* to 'zm'@localhost 
identified by 'zm';
# flush privileges;
# quit
# make
# make install
 
4. คอนฟิก ZoneMinder Started at boot time
# cp script/zm /etc/rc.d
# cd /etc/rc.d
# chmod +x zm
# cd rc5.d
# ln -s ../zm S99zm
# ln -s ../zm K00zm
 
5. รันโปรแกรม
ที่ web browser พิมพ์ http://localhost/zm.php
 
6. สร้าง Monitor Viewing (ในที่นี่ผมใช้ Axis IP camera นะครับ)
- ใน General Tab คอนฟิกตามนี่ครับ
Source Type = Remote
Function = Modetect
Enabled = Checked
Linked Monitors = (leave it blank)
Maximum FPS = 4.0
Alarm Maximum FPS = 8.0
- ใน Source Tab
Remote host name = 192.168.11.9 (IP of camera)
Remote Host Port = 80
Remote Host Path = /axis-cgi/jpg/image.cgi?resolution=640x480
Remote Image Colours = 24 bit colour
Capture Width = 460
Capture Height = 480
 
** ถ้าคุณต้องการภาพเป็น mpeg คุณสามารถเปลื่ยนตรงนี่ได้เลยครับ 
Remote Host Path = /axis-cgi/mjpg/video.cgi?
** อย่าลือ RunLevel apache2, mysql ตอนบูตนะครับ 
** Thank you, Wiki ZoneMinder   
 
 


Comments (0)Add Comment

Write comment

security code
Write the displayed characters


busy