UPDATE: Build instructions posted and I'd like feedback from other users. If you have a good tweak or modification, share them here in unison.
8: Optionally insertsgn wrote:So, this is for a core debian 7 x64 install, just base-files and make/gcc/g++.
1: Once you trust your core, proceed to step 2.
2: RunThis will install dependencies for building ZM later on; thats all folks.Code: Select all
apt-get install libav-tools libswscale-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev ffmpeg libx264-dev apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm subversion automake autoconf apache2-mpm-prefork libapache2-mod-php5 php5-cli libtool libgnutls-dev
3: Get libjpeg-turbo and have it replace any other depency on older versions for zero-configuration
http://sourceforge.net/projects/libjpeg ... z/download4: Get latest ZM (as of now version 1.26b3)Code: Select all
./configure --prefix=/usr --with-libdir=/usr/lib --with-jpeg8 --without-mem-srcdst make make-install
https://github.com/ZoneMinder/ZoneMinde ... a.3.tar.gz5: Create mysql db from the .sql script (zm-create) and assign access to zmuserCode: Select all
libtoolize --force aclocal autoheader automake --force-missing --add-missing autoconf ./configure --prefix=/usr/local/zm --enable-debug=no --enable-crashtrace=no --enable-mmap=yes --with-libarch=lib64 --with-mysql=/usr/bin --with-ffmpeg=/usr/bin --with-webdir=/var/www/zm --with-cgidir=/var/www/zm/cgi-bin --with-webuser=www-data --with-webgroup=www-data make make-install
6: Add site to apache sites-enabled (remember disabling autoindex and maybe status), restart apache2 and we're live
7: Optionally, move zm events to assigned storage, use disk encryption, set up some firewalling and harden the system etc. etc.
Code: Select all
tmpfs /dev/shm tmpfs size=Xg 0 0
*1: Manual db-upgrade/rename from beta->stock 1.26.2 mysql command:
Code: Select all
"use ZONEMINDERDBBNAME" and "update Config set Value="1.26.2" where name="ZM_DYN_DB_VERSION";"