Berikut adalah Cara Installasi Zoneminder Dengan DVCard Card Techwell Based chipset pada Ubuntu 10.04 (lucid)
#Buka console linux dan ketik berikut (seumpama usernya adalah stream & passwordnya stream)
stream@stream-desktop:~$ sudo -i
[sudo] password for stream:stream
root@stream-desktop:~#
colokin usb yang ada folder file myarchive dan tunggu sampai automount
lihat mountpoint
root@stream-desktop:~# mount
/dev/sdc1 on /media/USBKU type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
*COPY semua file *.deb dari /media/USBKU/myarchives:
(kalau mo install di tempat lain copy kembali dari /opt/myarchives ke USB)
root@stream-desktop:~# cd /opt ; cp -rf /media/USBKU/myarchives .
root@stream-desktop:/opt# cd myarchives
(tulis perintah berikut dalam 1 baris)
root@stream-desktop:/opt/myarchives# dpkg -i dpkg-dev_1.15.5.6ubuntu4_all.deb xz-utils_4.999.9beta+20091116-1_i386.deb patch_2.6-2ubuntu1_i386.deb
root@stream-desktop:/opt/myarchives# cd /opt
root@stream-desktop:/opt# chmod -R 777 myarchives
root@stream-desktop:/opt# dpkg-scanpackages myarchives /dev/null|gzip -c9 > myarchives/Packages.gz
root@stream-desktop:/opt# cd /etc/apt/;cp sources.list sources-ori.list
root@stream-desktop:/etc/apt# echo “deb file:/opt myarchives/” > sources.list
root@stream-desktop:/etc/apt# apt-get update
root@stream-desktop:/etc/apt# apt-get install zoneminder -y –force-yes
(kosongkan password pada isian mysql, tekan OK saja dan lanjutkan, dst)
(isikan mail.localhost pada smarthost)
root@stream-desktop:/etc/apt# cd /etc/apache2/sites-enabled/
root@stream-desktop:/etc/apache2/sites-enabled# cp /etc/zm/apache.conf camera.conf; chmod 777 camera.conf
root@stream-desktop:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart
-buka firefox dan ketik http://localhost/zm, buka links option (paling kanan), akan dibuka popup windows
-aktifkan login pada tab system: OPT_USE_AUTH Authenticate user logins to ZoneMinder (?) (aktifkan cek box) [x]
-click save, tutup popup window dan refresh kembali browser, login dengan user: admin , password: admin
#tambahan untuk membuat menu sebelah kiri
copy patch untuk zoneminder yang sudah dikasih menu pada file : cp -rf /media/USBKU/myarchives .
root@stream-desktop:/etc/apache2/sites-enabled# cd /opt
root@stream-desktop:/opt# cp /media/USBKU/camera.zip; unzip camera.zip
root@stream-desktop:/opt# cd /usr/share/; cp -rf zoneminder zoneminder-ori; cd zoneminder
root@stream-desktop:/usr/share/zoneminder# cp -f /opt/usr/share/zoneminder/index*.php .
root@stream-desktop:/usr/share/zoneminder# cp -f /opt/usr/share/zoneminder/menu.php .
root@stream-desktop:/usr/share/zoneminder# cp -rf /opt/usr/share/zoneminder/images2 .
root@stream-desktop:/usr/share/zoneminder# cp -rf /opt/usr/share/zoneminder/skins .
root@stream-desktop:/usr/share/zoneminder# pico menu.php
(cek HTML berikut, target untuk logout harus =”_parent”)
<li><a href=”index.php?action=logout” target=”_parent”>Logout</a></li>
-buka kembali firefox dan refresh pada alamat http://localhost/zm
##tambahan untuk mencompile techwell dvr driver based card
(pasang dulu dvr cardnya yg chipsetnya techwell tsb)
-baca tulisanku di file: /opt/compile.html
-atau di: http://www.zoneminder.com/forums/viewtop…
root@stream-desktop:/opt# cd /opt; apt-get install git-core dpkg-dev build-essential automake gcc -y –force-yes
root@stream-desktop:/opt# cp -rf /media/USBKU/tw68-v2; cd tw68-v2 ; make
root@stream-desktop:/opt/tw68-v2# cp tw68.ko /var/lib;chmod 755 /var/lib/tw68.ko
root@stream-desktop:/opt/tw68-v2# echo “options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0″> /etc/modprobe.d/bttv.conf
root@stream-desktop:/opt/tw68-v2# pico /etc/rc.local
(pastekan kode berikut dan save ^X)
modprobe bttv
insmod /var/lib/tw68.ko
exit 0
(test device dmesg)
root@stream-desktop:/opt/tw68-v2# dmesg|grep tw68
(execute /etc/rc.local)
root@stream-desktop:/opt/tw68-v2# /etc/rc.local
(lihat /dev/video0, harusnya sudah ada)
root@stream-desktop:/opt/tw68-v2# ls -l /dev/video0
(tambahkan user www-data ke group admin dan www-data biar bisa membaca /dev/video0)
root@stream-desktop:/opt/tw68-v2# usermod -a -G video,www-data,admin www-data
(test device dengan zoneminder)
root@stream-desktop:/opt/tw68-v2# zmu -q -d /dev/video0 -v
(jika diminta password masukkan)
root@stream-desktop:/opt/tw68-v2# zmu -Uadmin -Padmin -q -d /dev/video0 -v
(harusnya hasilnya sbb)
Video Device: /dev/video0
General Capabilities
Driver: tw68
Card: GENERIC
Bus: PCI:0000:01:02.0
Version: 0.0.4
Type: 0×5000011
………..dst ada 4 channel yang terdeteksi….
##menambahkan monitor untuk preview cam di zoneminder
-buka browser dan ketik http://localhost/zm , login dengan user:admin, password: admin
tambahkan monitor (add new monitor)
———–general—
name:Monitor-1
Source Type:local
function:monitor atau mocord
Maximum FPS:30
Alarm Maximum FPS:30
Reference Image Blend %ge:7
———–source—— (perhatikan device path tidak boleh salah)
Device Path:/dev/video0
Capture Method:video for linux 2
Device Channel: gunakan chanel 0 s/d 3 , terngantung posisi colokan di card belakang (dicoba2 aja)
Device Format: PAL-B
Capture Palette:RGB24
Capture Width (pixels):320
Capture Height (pixels):240
–click save
(ulangi untuk channel yang lain: 1,2 & 3)
#restart komputer
#buka kembali browser firefox pada http://localhost/zm
-click link pada nama kamera untuk melihat preview kamera:
-atau click pada Montage ( Cycle / Montage ) untuk melihat
view dari : 2 atau 4 kamera langsung
#melihat dari internet
bila ingin melihat dari internet maka komputer yang terinstall zoneminder tersebut harus
diberi IP address publik atau menggunakan OpenVPN client atau pptp vpn
dan konek ke hosting yang menyediakan vpn, kemudian pc viewer
juga sama2 konek ke openvpn tersebut atau
IP dari pc-camera dimapping ke port ippublik dan port tertentu dengan perintah iptables
iptables -t NAT xxxxx
atau IP dari client tersebut di brige ke IP publik
(selesai)
NB: cara recording IPcam menggunakan ffmpeg dapat dilakukan pada console seperti contoh berikut:
http://www.redshirtlinux.com/?p=71