close



ubuntu 12.04 安裝
##----安裝zoneminder----## (以下一行一指令,必需順序輸入)
如果無IPCAM錄影需要,可以跳過此項

sudo apt-get install zoneminder

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

sudo /etc/init.d/apache2 reload

sudo adduser www-data video

sudo cd /usr/src && wget http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.tar.gz

sudo tar -xzvf cambozola-latest.tar.gz

sudo cp cambozola-0.92/dist/cambozola.jar /usr/share/zoneminder

一切無誤,zoneminder安裝完成,以下為zoneminder安裝相關網站
http://www.zoneminder.com

Zoneminder設定介面為 http://yourIP/zm
打開Login : admin ,password : admin (mysql的帳號密碼, root 就不用輸入)




Fedora 15 16安裝


http://www.zoneminder.com/wiki/index.php/Fedora#Fedora_17


install packages
yum install mysql mysql-server zoneminder


setup mysql:
systemctl start mysqld.service
mysql_secure_installation # enable root password



mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
mysql -u root -p
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
use zm;
quit




EX:


[root@localhost trunk]# mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
Enter password:
[root@localhost trunk]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.5.27 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
Query OK, 0 rows affected (0.00 sec)

mysql> use zm;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> quit
Bye
[root@localhost trunk]#






setup apache web server:
vi /etc/httpd/conf.d/zoneminder.conf # remove the line "Deny from all # DELETE THIS LINE"
systemctl start httpd.service


start zoneminder:

systemctl start zoneminder.service



關掉 iptables ..讓遠端可連
iptables -F


test
http://localhost/zm/index.php

see
http://www.zoneminder.com/screenshots
http://www.zoneminder.com/wiki/index.php/Documentation


安裝設定教學

http://snowiant.pixnet.net/blog/post/61632639-%E8%81%AF%E6%88%90%E9%9B%BB%E8%85%A6%3C%E6%95%99%E5%AD%B8%E6%96%87%3E-%E5%BC%B7%E5%A4%A7%E5%8F%88%E5%85%8D%E8%B2%BB%E7%9A%84%E7%9B%A3%E6%8E%A7%E7%A8%8B%E5%BC%8F
-----------------------------------------------------------------------------------------------------------------
source code
http://www.zoneminder.com/downloads


#--------------------------------------------------
#yum install
#--------------------------------------------------

#2. Install Remi repository
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/remi-release-16.rpm

#3. Check Available MySQL versions
yum --enablerepo=remi list mysql mysql-server
#4. Update or Install MySQL 5.5.27
yum --enablerepo=remi install mysql mysql-server

#5. Start MySQL server and autostart MySQL on boot
systemctl start mysqld.service ## use restart after update
 
systemctl enable mysqld.service
#6. MySQL Secure Installation
#Start MySQL Secure Installation with following command

/usr/bin/mysql_secure_installation



mysqladmin -u root password myownsecrectpass

#7. Connect to MySQL database (localhost) with password
mysql -u root -p
 
## OR ##
mysql -h localhost -u root -p


#8. Create Database, Create MySQL User and Enable Remote Connections to MySQL Database


sudo apt-get install build-essential ffmpeg libmysqlclient-dev libjpeg-dev libssl-dev libdate-manip-perl wget liblwp-useragent-determined-perl libavformat-dev libphp-serialization-perl libswscale-dev joe


yum install httpd mysql-server mysql php php-gd php-mysql

yum install mysql-devel libjpeg-devel pcre pcre-devel perl-MIME-Lite perl-Device-SerialPort netpbm ffmpeg-devel ffmpeg-libs perl-DateManip

yum --enablerepo=remi install httpd php php-common

./configure --with-webdir=/var/www/html/ZM \ <-- Where the web content goes
--with-cgidir=/var/www/cgi-bin \ <--- Where the cgi-bin goes
--with-ffmpeg=/usr/local \ <--- Where the ffmpeg executable lives
ZM_DB_PASS=SomethingDifficult \ <--- Database password
ZM_DB_NAME=ZMDB \ <--- Database name
ZM_DB_USER=ZM <-- Databaser user


#--------------------------------------------------
#configure
#--------------------------------------------------
32bit
 ./configure --with-webdir=/var/www/html/ZM --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local ZM_DB_PASS=SomethingDifficult ZM_DB_NAME=ZMDB ZM_DB_USER=ZM

64bit
 ./configure --with-webdir=/var/www/html/ZM --with-cgidir=/var/www/cgi-bin --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql" ZM_DB_PASS=SomethingDifficult ZM_DB_NAME=ZMDB ZM_DB_USER=ZM ZM_SSL_LIB=openssl



Q:
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a.

A: add
--with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql"

Q:
configure: error: zm requires gnutls/openssl.h - use ZM_SSL_LIB option to select openssl instead

A:
Excellent article - Jay try addingto the end ZM_SSL_LIB=openssl e.g

./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data ZM_SSL_LIB=openssl

Q:
checking for perl module DBD::mysql... no
configure: error: zm requires DBD::mysql

A:
yum install perl-DBD-MySQL perl-DBI

Q:
configure: error: zm requires Sys::Mmap for mapped memory - set --enable-mmap=no to use IPC shared memory instead

A:
# perl -MCPAN -e shell
install Sys::Mmap



## Fedora 17 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm


yum --enablerepo=remi install httpd php php-common


yum --enablerepo=remi install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml



http://www.hkfriends.org/index.php/2012-06-02-19-02-15/142-zoneminder








arrow
arrow
    全站熱搜
    創作者介紹
    創作者 立你斯 的頭像
    立你斯

    立你斯學習記錄

    立你斯 發表在 痞客邦 留言(0) 人氣()