HOWTO: ZoneMinder + Kodicom 4400r on Fedora14

Forum for questions and support relating to the 1.24.x releases only.
Locked
SteveinPhx
Posts: 3
Joined: Thu Dec 02, 2010 5:27 pm

HOWTO: ZoneMinder + Kodicom 4400r on Fedora14

Post by SteveinPhx »

I've benefited a lot from the posts on this forum and would like to give a little back. It took me a very long time to get this working, and I hope to save someone else all the trouble.

For what it's worth, I recently installed ZoneMinder on Fedora14 with a Kodicom 4400r card. This same install method worked successfully on three different Intel/AMD computers. A fourth install to a Dell Dimension 4600 failed due to unresolvable IRQ turf wars between Dell and Kodicom.

Here are the exact steps I followed, changing "newuser" to my local user ID.
Enjoy!
-Steve in Phx.

Code: Select all

################################################
# Fedora 14 Zoneminder installation steps:
# SteveinPhx
# 12/28/2010 
# Notes: 
#      This is a brief but tested installation procedure I used to get Zoneminder working on top of Fedora 14 using a Kodicom 4400r 4-port DVR card.  
################################################

#################################################
### Install Fedora 14 from live CD            ###
### Partition the drive how you like          ###
### Create a local user (newuser)             ###
### Login as that local user (newuser)        ###
### Open a terminal, su - root (w/ password)  ###
### Clean up desktop settings                 ###
### Update the system                         ###
### Configure sudo rights for newuser         ###
#################################################
$ su -
# yum remove evolution
*note: desktop: remove evolution icon from panel (right-click...)
*note: desktop: move start bar (panel) from top to bottom.
*note: desktop: disable lock on screensaver, adjust power settings.
# time yum -y update 
# usermod -G wheel newuser
# visudo # uncomment the NOPASSWD rule for the wheel group

#################################################
### Add modprobe options for Kodicom card ###
#################################################
# vi /etc/modprobe.d/bttv.conf
 options bttv gbuffers=16 card=133,132,133,133 chroma_agc=1
 options i2c-algo-bit bit_test=1

#################################################
### Enable/Disable extra services and selinux ###
#################################################
# chkconfig bluetooth off
# chkconfig cups off
# chkconfig ip6tables off
# chkconfig iscsi off
# chkconfig iscsid off
# setenforce 0
# vi /etc/sysconfig/selinux 
# chkconfig sshd on
# service sshd start

#################################################
### install pre-reqs:                         ###
#################################################
# rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
# rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
# yum -y install sysstat ethtool wget mysql-server mysql-devel pcre-devel ffmpeg ffmpeg-devel httpd mysqld xawtv xorg-x11-fonts-misc xorg-x11-apps
# chkconfig httpd on
# chkconfig mysqld on

### reboot
# updatedb &
# yum -y install zoneminder xawtv xorg-x11-fonts-misc

#################################################
### comment line 21 ('Deny from All') from    ###
### the zoneminder.conf config file:          ###
#################################################
# vi /etc/httpd/conf.d/zoneminder.conf 

#################################################
### now build the zm database. if needed,     ###
### you can get the user & password from      ###
### the config file:                          ###
# tail /etc/zm.conf  
#################################################
# mysql mysql </usr>>grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
  >>flush privileges;
  >>\q

#################################################
### backup and edit php.ini                   ###
### edit line 229. This is the SECOND entry   ###
### of "short_open_tag" from 'off' to 'on'.   ###
### If you don't do this the console is blank!###
#################################################
# cp /etc/php.ini  /etc/php.ini.orig
# vi /etc/php.ini

#################################################
### Fedora14 added the zoneminder service     ###
### automatically.  Enable it with chkconfig. ###
### (Fedora14 enabled it for me automatically) ###
#################################################
# chkconfig --level 35 zoneminder on
# service zoneminder start

#################################################
### if needed, adjust kernel memory settings  ###
#################################################
# more /proc/sys/kernel/shm*
# cp /etc/sysctl.conf /etc/sysctl.conf.orig
echo "# Added for Zoneminder:
#kernel.shmmax = 33554432 # default
kernel.shmmax = 256000000
" >> /etc/sysctl.conf

#################################################
### change permissions of /dev/video*         ###
### this can be done better with /etc/udev/   ###
#################################################
echo "chmod 666 /dev/video*" >> /etc/rc.local
# reboot

#################################################
### Now open a browser to:                    ###
### http://localhost/zm                       ###
### Set Monitor-1 to use:                     ###
###   Device Path: /dev/video1                ###
###   Capture Method: Video For Linux 2       ###
###   Device Channel: 0                       ###
###   Device Format: NTSC                     ###
###   Capture Palette: YUYV                   ###
###   Capture Width: 320                      ###
###   Capture Height: 240                     ###
### Set Monitor-2 to use:                     ###
###   Device Path: /dev/video1                ###
###   Device Channel: 1                       ###
### Set Monitor-3 to use:                     ###
###   Device Path: /dev/video1                ###
###   Device Channel: 2                       ###
### Set Monitor-4 to use:                     ###
###   Device Path: /dev/video1                ###
###   Device Channel: 3                       ###
#################################################

#################################################
### Setup user accounts for web access        ###
### On the browser page, click:               ### 
###   Options                                 ###
###   System                                  ###
###     Enable this option:                   ###
###     OPT_USE_AUTH (Authenticate logins)    ###
###   Save                                    ###
###                                           ###
### Now you'll have to login.                 ###
###   Use the default admin account:          ###
###   admin (password = admin)                ###
### Then click:                               ###
###   Options                                 ###
###   Users                                   ###
### Change the admin password and             ###
### add any new accounts you wish to use.     ###
#################################################

#################################################
### Disk storage:                             ###
### If you have a second hard drive, you can  ###
### use that for storage.                     ###
### Mount /var/lib/zoneminder on disk #2.     ###
#################################################

#######################################################
### For testing:
### To test the cameras on my Kodicom 4400r:
### xawtv -hwscan
### xawtv -device /dev/video1 	# right-click, change video source to cycle through cameras.
###                                 # hit "E" for channel editor and save the config, then
###                                 # you can edit the .xawtv file for preferences.
### Below is the sample copy of ~/.xawtv that I saved:
#######################################################
[global]
ratio = 4:3
freqtab = europe-west
pixsize = 128 x 96
pixcols = 1
jpeg-quality = 100
keypad-ntsc = no
keypad-partial = yes
osd = yes
osd-position = 30 , 20
use-wm-fullscreen = yes

# [Station name]
# capture = overlay | grabdisplay | on | off
# input = Television | Composite1 | S-Video | ...
# norm = PAL | NTSC | SECAM | ... 
# channel = #
# fine = # (-128..+127)
# key = keysym | modifier+keysym
# color = #
# bright = #
# hue = #
# contrast = #

[defaults]
group = main
norm = NTSC
input = Composite1
capture = grab
color = 49%
contrast = 42%
#######################################################

-Steve in Phx.
Locked