ZONEMINDER 1.24.2 EASY INSTALL ON UBUNTU SERVER 9.10 amd64
Posted: Mon Nov 09, 2009 4:46 am
PERFORM A BASE INSTALL OF UBUNTU SERVER 9.10 amd64 WITH NO OPTIONAL PACKAGES
LOGIN WITH SUPER USER PRIVILEGES
sudo -i
UPDATE UBUNTU
apt-get update
apt-get dist-upgrade
INSTALL OPEN SSH SERVER
apt-get install openssh-server
(now you can ssh to the server) (/sbin/ifconfig to get the server's ip)
INSTALL ALL OF THE PREREQUISITES
apt-get install libts-0.0-0 libnet-daemon-perl libmime-types-perl libswscale0 libavutil49 libio-stringy-perl mysql-server php5 libdbi-perl libavfilter0 libarchive-zip-perl libmime-tools-perl libspeex1 libdate-manip-perl libapr1 libhtml-template-perl libavdevice52 libmime-perl libapache2-mod-php5 mysql-server-core-5.1 libaprutil1-ldap apache2-mpm-prefork libsdl1.2debian-alsa libmysqlclient16 libavcodec52 apache2-utils apache2 libdirectfb-1.2-0 apache2.2-common libsdl1.2debian libaprutil1-dbd-sqlite3 apache2.2-bin libtheora0 ssl-cert libdbd-mysql-perl ffmpeg libpostproc51 nullmailer libasound2 libraw1394-11 libgsm1 libvorbisenc2 libphp-serialization-perl libschroedinger-1.0-0 libavformat52 libemail-date-format-perl libdc1394-22 libjpeg62 libplrpc-perl tsconf libsysfs2 php5-mysql liboil0.3 libdevice-serialport-perl libvorbis0a libconvert-binhex-perl libaprutil1 libmime-lite-perl mysql-common php5-common mysql-server-5.1 mysql-client-5.1 libogg0 unzip
(do not enter a mysql password)
DOWNLOAD THE OTHER DEBIAN DEPENDENCIES
wget http://http.us.debian.org/debian/pool/m ... _amd64.deb
INSTALL THE OTHER DEBIAN DEPENDENCIES
dpkg -i libdirac-encoder0_1.0.2-2_amd64.deb
DOWNLOAD THE 1.24.2 PACKAGE
wget http://http.us.debian.org/debian/pool/m ... _amd64.deb
INSTALL THE 1.24.2 PACKAGE
dpkg -i zoneminder_1.24.2-1_amd64.deb
CONFIGURE APACHE2
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
sudo /etc/init.d/apache2 force-reload
INSTALL CAMBOZOLA
cd /usr/src
wget http://www.charliemouse.com:8080/code/c ... est.tar.gz
tar -xzvf cambozola-latest.tar.gz
cp cambozola-0.76/dist/cambozola.jar /usr/share/zoneminder/
INSTALL JSCALENDAR
cd /usr/src
wget http://prdownloads.sourceforge.net/jsca ... p?download
unzip jscalendar-1.0.zip
mkdir /usr/share/zoneminder/tools/jscalendar
cp -R jscalendar-1.0/* /usr/share/zoneminder/tools/jscalendar
CONFIGURE MYSQL FOR BETTER PERFORMANCE
nano /etc/mysql/my.cnf
CHANGE THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:
max_allowed_packet = 32M
thread_stack = 128K
query_cache_size = 24M
ADD THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:
skip-innodb
tmp_table_size = 32M
max_heap_table_size = 16M
REBOOT THE SERVER
/sbin/shutdown now -r
ACCESS THE ZONEMINDER WEB INTERFACE AND BEGIN WEB CONFIGURATION
http://ip.of.your.server/zm
LOGIN WITH SUPER USER PRIVILEGES
sudo -i
UPDATE UBUNTU
apt-get update
apt-get dist-upgrade
INSTALL OPEN SSH SERVER
apt-get install openssh-server
(now you can ssh to the server) (/sbin/ifconfig to get the server's ip)
INSTALL ALL OF THE PREREQUISITES
apt-get install libts-0.0-0 libnet-daemon-perl libmime-types-perl libswscale0 libavutil49 libio-stringy-perl mysql-server php5 libdbi-perl libavfilter0 libarchive-zip-perl libmime-tools-perl libspeex1 libdate-manip-perl libapr1 libhtml-template-perl libavdevice52 libmime-perl libapache2-mod-php5 mysql-server-core-5.1 libaprutil1-ldap apache2-mpm-prefork libsdl1.2debian-alsa libmysqlclient16 libavcodec52 apache2-utils apache2 libdirectfb-1.2-0 apache2.2-common libsdl1.2debian libaprutil1-dbd-sqlite3 apache2.2-bin libtheora0 ssl-cert libdbd-mysql-perl ffmpeg libpostproc51 nullmailer libasound2 libraw1394-11 libgsm1 libvorbisenc2 libphp-serialization-perl libschroedinger-1.0-0 libavformat52 libemail-date-format-perl libdc1394-22 libjpeg62 libplrpc-perl tsconf libsysfs2 php5-mysql liboil0.3 libdevice-serialport-perl libvorbis0a libconvert-binhex-perl libaprutil1 libmime-lite-perl mysql-common php5-common mysql-server-5.1 mysql-client-5.1 libogg0 unzip
(do not enter a mysql password)
DOWNLOAD THE OTHER DEBIAN DEPENDENCIES
wget http://http.us.debian.org/debian/pool/m ... _amd64.deb
INSTALL THE OTHER DEBIAN DEPENDENCIES
dpkg -i libdirac-encoder0_1.0.2-2_amd64.deb
DOWNLOAD THE 1.24.2 PACKAGE
wget http://http.us.debian.org/debian/pool/m ... _amd64.deb
INSTALL THE 1.24.2 PACKAGE
dpkg -i zoneminder_1.24.2-1_amd64.deb
CONFIGURE APACHE2
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
sudo /etc/init.d/apache2 force-reload
INSTALL CAMBOZOLA
cd /usr/src
wget http://www.charliemouse.com:8080/code/c ... est.tar.gz
tar -xzvf cambozola-latest.tar.gz
cp cambozola-0.76/dist/cambozola.jar /usr/share/zoneminder/
INSTALL JSCALENDAR
cd /usr/src
wget http://prdownloads.sourceforge.net/jsca ... p?download
unzip jscalendar-1.0.zip
mkdir /usr/share/zoneminder/tools/jscalendar
cp -R jscalendar-1.0/* /usr/share/zoneminder/tools/jscalendar
CONFIGURE MYSQL FOR BETTER PERFORMANCE
nano /etc/mysql/my.cnf
CHANGE THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:
max_allowed_packet = 32M
thread_stack = 128K
query_cache_size = 24M
ADD THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:
skip-innodb
tmp_table_size = 32M
max_heap_table_size = 16M
REBOOT THE SERVER
/sbin/shutdown now -r
ACCESS THE ZONEMINDER WEB INTERFACE AND BEGIN WEB CONFIGURATION
http://ip.of.your.server/zm