Erinevus lehekülje "ZoneMinder" redaktsioonide vahel
(Uus lehekülg: ' ZoneMinder Masina nimeks hakkab olema salasilm.zoo.tartu.ee ===Gentoole install=== Hetkel portages uusim www-misc/zoneminder-1.24.2 on maskitud. masked by: ~x86 keyword www-...') |
(→Gentoole install) |
||
9. rida: | 9. rida: | ||
on maskitud. | on maskitud. | ||
− | masked by: ~x86 keyword | + | masked by: ~x86 keyword |
+ | Lahtimaskimiseks | ||
− | www-misc/zoneminder ** | + | www-misc/zoneminder ** |
− | dev-perl/PHP-Serialization ** | + | dev-perl/PHP-Serialization ** |
− | dev-perl/libwww-perl ** | + | dev-perl/libwww-perl ** |
− | !!! One of the following packages is required to complete your request: | + | !!! One of the following packages is required to complete your request: |
− | - dev-lang/php-5.2.14 (Change USE: +apache2) | + | - dev-lang/php-5.2.14 (Change USE: +apache2) |
− | /etc/portage/package.use | + | /etc/portage/package.use |
+ | dev-lang/php +apache2 | ||
− | + | TODO | |
===Debian Lenny=== | ===Debian Lenny=== |
Redaktsioon: 31. august 2010, kell 15:24
ZoneMinder
Masina nimeks hakkab olema salasilm.zoo.tartu.ee
Gentoole install
Hetkel portages uusim www-misc/zoneminder-1.24.2 on maskitud.
masked by: ~x86 keyword
Lahtimaskimiseks
www-misc/zoneminder ** dev-perl/PHP-Serialization ** dev-perl/libwww-perl **
!!! One of the following packages is required to complete your request: - dev-lang/php-5.2.14 (Change USE: +apache2)
/etc/portage/package.use dev-lang/php +apache2
TODO
Debian Lenny
Installime sinna 1.24 stable versiooni kasutades juhendit
http://www.rmacd.com/howto/zoneminder-debian-lenny-install.php
Muudame sources faili
deb http://ftp.uk.debian.org/debian/ lenny main contrib non-free deb-src http://ftp.uk.debian.org/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free deb-src http://security.debian.org/ lenny/updates main contrib non-free
Uuendame selle alusel
# apt-get update
Installime vajalikud sõltuvused
# apt-get install build-essential apache2 mysql-server netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql libdbd-mysql-perl libpcre3-dev php5 php5-mysql libapache2-mod-auth-mysql libmysqlclient15-dev gnutls-bin ffmpeg pciutils
Vahepeal küsitakse vee mysql parooli
Et lahendada zoneminderi ja serialiserimise probleem.
# perl -MCPAN -e shell install PHP::Serialization exit
Teeme kausta kus kompileerime
# mkdir /usr/src/zminder # cd /usr/src/zminder # cd ZoneMinder-1.24.2
Tõmbame alla
# wget http://www2.zoneminder.com/downloads/ZoneMinder-1.24.2.tar.gz # tar -zxvf ZoneMinder-1.24.2.tar.gz
Kompileerime kokku
# ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=lib --with-ffmpeg=/usr/local ZM_SSL_LIB=openssl
Erinevus originaalse tekstiga oli, et vaja lisada make faili lõppu ZM_SSL_LIB=openssl muidu lõpetab teatega configure: error: zm requires gnutls/openssl.
# make && make install
Järgnev käsk mis tekitab andmebaasi
# mysql -u root -p < db/zm_create.sql Enter password:
Muudame zminderi parooli
# mysql -u root -p -e "grant all privileges on zm.* to 'zminder'@'localhost' identified by 'parool'" Enter password:
Seadistame andmebaasi kasutaja ja parooli korrektseks ka konfiguratsioonis
# nano /usr/local/etc/zm.conf
Kontrollime kas apache php moodul on laaditud
# a2enmod php5 && apache2ctl restart Module php5 already enabled
On küll, avame veebiaaressi
http://salasilm.zoo.tartu.ee/zm/