-
Install AUR dependencies Here's a helper script to download the PKGBUILDS from the AUR:
# script to download Zoneminder dependency build tarballs from AUR mkdir --parent aur && cd aur wget https://aur.archlinux.org/packages/ca/cambozola/cambozola.tar.gz wget https://aur.archlinux.org/packages/pe/perl-astro-suntime/perl-astro-suntime.tar.gz wget https://aur.archlinux.org/packages/pe/perl-expect/perl-expect.tar.gz wget https://aur.archlinux.org/packages/pe/perl-net-sftp-foreign/perl-net-sftp-foreign.tar.gz wget https://aur.archlinux.org/packages/pe/perl-php-serialization/perl-php-serialization.tar.gz wget https://aur.archlinux.org/packages/pe/perl-sys-mmap/perl-sys-mmap.tar.gz wget https://aur.archlinux.org/packages/pe/perl-x10/perl-x10.tar.gz
-
Build zoneminder package but don't install it
cp -a zoneminder zoneminder-build cd zoneminder-build makepkg -s
-
Copy config files
set -o errexit set -o verbose cd ../config cp -i /etc/php/php.ini php.ini.pre.zoneminder.install cp -i /etc/httpd/conf/httpd.conf httpd.conf.pre.zoneminder.install
-
Install zoneminder
pacman --upgrade zoneminder-1.27.0-2-i686.pkg.tar.xz
-
Copy config files
set -o errexit set -o verbose cd ../config cp -i /etc/php/php.ini php.ini.post.zoneminder.install cp -i /etc/httpd/conf/httpd.conf httpd.conf.post.zoneminder.install
-
Configure /etc/httpd/conf/httpd.conf for PHP
-
Read primary documentation https://wiki.archlinux.org/index.php/Apache_HTTP_Server#PHP
-
To use modmpmprefork, open file:///etc/httpd/conf/httpd.conf and replace
LoadModule mpm_event_module modules/mod_mpm_event.so
with
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
-
add these lines to file:///etc/httpd/conf/httpd.conf:
-
Place this in the LoadModule list anywhere after LoadModule dirmodule modules/moddir.so: (Note: zoneminder.install attemps to do this but fails)
LoadModule php5_module modules/libphp5.so
-
Place this at the end of the Include list: (Note: zoneminder.install did this)
Include conf/extra/php5_module.conf
-
-
-
Mysql (see zoneminder.install)
-
Start httpd server
systemctl restart httpd
-
Start mysql server
systemctl restart mysqld
-
add Zoneminder database
-
typing (with passsword):
mysqladmin --defaults-file=/etc/mysql/my.cnf -p -f reload cat /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mysql/my.cnf -p echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/mysqladmin --defaults-file=/etc/mysql/my.cnf -p -f reload cat /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mysql/my.cnf -p echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/my.cnf -p mysql
-
-
-
sudo systemctl start zoneminder
-
sudo systemctl enable zoneminder
forked from troywill/zoneminder-aur
-
Notifications
You must be signed in to change notification settings - Fork 0
cspenceiv/zoneminder-aur
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Zoneminder AUR package
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Shell 100.0%