zoneminder 1.25 on linux mint 13
Posted: Sat Dec 01, 2012 9:44 am
After 3 painstaking weeks of scouring through forums, how to's and guides I have taken code from all including my own code from years gone by to come up with this guide. I have rebuilt linux mint several times whilst trying out the patches, mods or updates and am currently running a stable version of zoneminder on linux mint 13.
I am posting here to save some other poor sod from going through the same ordeal
Install 13 Maya Precise Pangolin Long term support release (LTS), supported until April 2017
Log in then become root:
sudo su
apt-get update && apt-get upgrade
go into your network settings and setup your default adapter and staic addresses.
Example
address 192.168.0.200
subnet 255.255.255.0
gateway 192.168.0.1
dns server 192.168.0.1
Reboot server
open terminal again
Install Zoneminder
Log in then become root
sudo su
apt-get install zoneminder
Note: You will be prompted to configure Nullmailer during the Zoneminder install. You can leave the program un-configured if you do not plan to have the server email alerts. Or search for instructions to configure Nullmailer.
Add delay to allow MySQL to start before Zoneminder
nano /etc/init.d/zoneminder
Add above "zmfix -a" sleep 15
Ctrl+o Enter to save
CTRL+x to exit
Link Apache to Zoneminder
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
/etc/init.d/apache2 force-reload
adduser www-data video
Optional Install Cambozola
cd /usr/src && wget http://www.charliemouse.com:8080/code/c ... est.tar.gz
tar -xzvf cambozola-latest.tar.gz
replace "92" with cambozola version downloaded
cp cambozola-0.92/dist/cambozola.jar /usr/share/zoneminder
Optional Add SSL to Apache2
Create a self-signed certificate:
make-ssl-cert generate-default-snakeoil --force-overwrite
Activate Apache SSL module:
a2enmod ssl
Activate Apache default ssl virtual host:
a2ensite default-ssl
Restart Apache:
service apache2 restart
You should now be able to access the web server using https://serverip
NTP Daily Sync
nano /etc/cron.daily/ntpdate
Copy the following two lines into nano
#!/bin/sh
ntpdate ntp.ubuntu.com
Note: replace ntp.ubuntu.com with the time server(s) of your choice. I use time-a.nist.gov time-b.nist.gov
Ctrl+o Enter to save
CTRL+x to exit
chmod 755 /etc/cron.daily/ntpdate
Open Zoneminder in web browser
http://serverip/zm
Click Options
Uncheck: Check with zoneminder.com for updated versions (?) click Save.
Click Images tab
Optional: check "Is the (optional) cambozola java streaming client installed (?)"
Path to (optional) ffmpeg mpeg encoder (?) enter /usr/bin/ffmpeg click Save
Reboot server to insure Zoneminder starts on boot.
add password to root
sudo passwd root
>>> enter ure password twice
service zoneminder stop
Setup apache2 to show Zoneminder user interface
Edit the file /etc/apache2/sites-enabled/000-default
nano /etc/apache2/sites-enabled/000-default
Change 'DocumentRoot /var/www', to 'DocumentRoot /usr/share/zoneminder'
Change '<Directory /var/www/>', to '<Directory /usr/share/zoneminder/>'
Code:
service apache2 restart
Fixing Apache2 error:"Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName"
Code:
nano /etc/apache2/httpd.conf
Add the line:
Code:
ServerName localhost
save and exit
Restart apache2 service
Code:
service apache2 restart
Fixing php errors complaining about time zone, edit file php.ini and set your timezone, according to http://nl3.php.net/manual/en/timezones.php
Code:
nano /etc/php5/apache2/php.ini
Add the line with your time zone, in my case:
Code:
date.timezone ="Australia/Brisbane"
save and exit
memory patch / fix for monitors
nano /etc/sysctl.conf
# Memory modifications for ZoneMinder (kernel.shmall = 16 MB, kernel.shmmax = 256 MB)
kernel.shmall = 16777216
kernel.shmmax = 268435456
save and close
lastly for anyone using an 8 channel 7134 capture card
nano /etc/modprobe.d/modprobe.conf
alias char-major-81 saa7134
options saa7134 card=33,33,33,33,33,33,33,33
save and close
sudo reboot
Anyway inside options tabs under hashed key's you have to select plain hash option otherwise you won't get any picture on your monitors. There are workarounds in the forums but they involve making and installing patches and I found using the plain option to work for my situation.
Am currently looking at the mythzoneminder plugin to work with zoneminder. If anyone has done this can they pls email me at cameras2000-mick@yahoo.com
kind regards
Tails!
I am posting here to save some other poor sod from going through the same ordeal
Install 13 Maya Precise Pangolin Long term support release (LTS), supported until April 2017
Log in then become root:
sudo su
apt-get update && apt-get upgrade
go into your network settings and setup your default adapter and staic addresses.
Example
address 192.168.0.200
subnet 255.255.255.0
gateway 192.168.0.1
dns server 192.168.0.1
Reboot server
open terminal again
Install Zoneminder
Log in then become root
sudo su
apt-get install zoneminder
Note: You will be prompted to configure Nullmailer during the Zoneminder install. You can leave the program un-configured if you do not plan to have the server email alerts. Or search for instructions to configure Nullmailer.
Add delay to allow MySQL to start before Zoneminder
nano /etc/init.d/zoneminder
Add above "zmfix -a" sleep 15
Ctrl+o Enter to save
CTRL+x to exit
Link Apache to Zoneminder
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
/etc/init.d/apache2 force-reload
adduser www-data video
Optional Install Cambozola
cd /usr/src && wget http://www.charliemouse.com:8080/code/c ... est.tar.gz
tar -xzvf cambozola-latest.tar.gz
replace "92" with cambozola version downloaded
cp cambozola-0.92/dist/cambozola.jar /usr/share/zoneminder
Optional Add SSL to Apache2
Create a self-signed certificate:
make-ssl-cert generate-default-snakeoil --force-overwrite
Activate Apache SSL module:
a2enmod ssl
Activate Apache default ssl virtual host:
a2ensite default-ssl
Restart Apache:
service apache2 restart
You should now be able to access the web server using https://serverip
NTP Daily Sync
nano /etc/cron.daily/ntpdate
Copy the following two lines into nano
#!/bin/sh
ntpdate ntp.ubuntu.com
Note: replace ntp.ubuntu.com with the time server(s) of your choice. I use time-a.nist.gov time-b.nist.gov
Ctrl+o Enter to save
CTRL+x to exit
chmod 755 /etc/cron.daily/ntpdate
Open Zoneminder in web browser
http://serverip/zm
Click Options
Uncheck: Check with zoneminder.com for updated versions (?) click Save.
Click Images tab
Optional: check "Is the (optional) cambozola java streaming client installed (?)"
Path to (optional) ffmpeg mpeg encoder (?) enter /usr/bin/ffmpeg click Save
Reboot server to insure Zoneminder starts on boot.
add password to root
sudo passwd root
>>> enter ure password twice
service zoneminder stop
Setup apache2 to show Zoneminder user interface
Edit the file /etc/apache2/sites-enabled/000-default
nano /etc/apache2/sites-enabled/000-default
Change 'DocumentRoot /var/www', to 'DocumentRoot /usr/share/zoneminder'
Change '<Directory /var/www/>', to '<Directory /usr/share/zoneminder/>'
Code:
service apache2 restart
Fixing Apache2 error:"Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName"
Code:
nano /etc/apache2/httpd.conf
Add the line:
Code:
ServerName localhost
save and exit
Restart apache2 service
Code:
service apache2 restart
Fixing php errors complaining about time zone, edit file php.ini and set your timezone, according to http://nl3.php.net/manual/en/timezones.php
Code:
nano /etc/php5/apache2/php.ini
Add the line with your time zone, in my case:
Code:
date.timezone ="Australia/Brisbane"
save and exit
memory patch / fix for monitors
nano /etc/sysctl.conf
# Memory modifications for ZoneMinder (kernel.shmall = 16 MB, kernel.shmmax = 256 MB)
kernel.shmall = 16777216
kernel.shmmax = 268435456
save and close
lastly for anyone using an 8 channel 7134 capture card
nano /etc/modprobe.d/modprobe.conf
alias char-major-81 saa7134
options saa7134 card=33,33,33,33,33,33,33,33
save and close
sudo reboot
Anyway inside options tabs under hashed key's you have to select plain hash option otherwise you won't get any picture on your monitors. There are workarounds in the forums but they involve making and installing patches and I found using the plain option to work for my situation.
Am currently looking at the mythzoneminder plugin to work with zoneminder. If anyone has done this can they pls email me at cameras2000-mick@yahoo.com
kind regards
Tails!