Difference between revisions of "Ubuntu Server 16.04 64-bit with Zoneminder 1.29.0 the easy way"

From ZoneMinder Wiki
Jump to navigationJump to search
Line 1: Line 1:
Ubuntu 16.04 is scheduled for release on April 21, 2016. As of this, March 25, 2016, the final beta has been released and it is supposed to contain Zoneminder 1.29.0! I will be working on install procedures over the next couple of weeks but do not expect changes over the procedure for Ubuntu 15.10.
Ubuntu 16.04 is scheduled for release on April 21, 2016. As of this, March 25, 2016, the final beta has been released and it contains Zoneminder 1.29.0! The following procedures were run on the final Beta 16.04. Things could change in the next couple of weeks!


I would advise you not upgrade a working "production" Zoneminder server until I've had a chance to do some testing. If you must test yourself PLEASE use a VM or a PC you can afford to wipe and start over with!
I would advise you not upgrade a working "production" Zoneminder server until I've had a chance to do some testing. If you must test yourself PLEASE use a VM or a PC you can afford to wipe and start over with!
Line 6: Line 6:


bb
bb
Zoneminder 1.29.0 on Ubuntu 16.04
################
#Install Ubuntu#
################
Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server
Log in then become root:
sudo su
Make sure you are up to date
apt-get update
apt-get upgrade
apt-get dist-upgrade
Install Zoneminder
apt-get install zoneminder
You may be prompted to set up Nulmailer. You may accept the defaults and set this up later if you want to use it.
Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
Set permissions of /etc/zm/zm.conf to root:www-data 740
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
Create a new user
adduser www-data video
Enable CGI, Zoneminder and rewrite configuration in Apache.
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
Enable and start Zoneminder
systemctl enable zoneminder
service zoneminder start
Add timezone to PHP
nano /etc/php/7.0/apache2/php.ini
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York
Ctrl+o Enter to save
CTRL+x to exit 
Restart Apache
service apache2 reload
Open Zoneminder in a web browser (http://server-ip/zm).

Revision as of 14:15, 26 March 2016

Ubuntu 16.04 is scheduled for release on April 21, 2016. As of this, March 25, 2016, the final beta has been released and it contains Zoneminder 1.29.0! The following procedures were run on the final Beta 16.04. Things could change in the next couple of weeks!

I would advise you not upgrade a working "production" Zoneminder server until I've had a chance to do some testing. If you must test yourself PLEASE use a VM or a PC you can afford to wipe and start over with!

Thanks,

bb


Zoneminder 1.29.0 on Ubuntu 16.04

  1. Install Ubuntu#

Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server

Log in then become root:

sudo su

Make sure you are up to date

apt-get update
apt-get upgrade
apt-get dist-upgrade


Install Zoneminder

apt-get install zoneminder

You may be prompted to set up Nulmailer. You may accept the defaults and set this up later if you want to use it.

Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload

Set permissions of /etc/zm/zm.conf to root:www-data 740

chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf

Create a new user

adduser www-data video

Enable CGI, Zoneminder and rewrite configuration in Apache.

a2enmod cgi
a2enconf zoneminder
a2enmod rewrite

Enable and start Zoneminder

systemctl enable zoneminder
service zoneminder start

Add timezone to PHP

nano /etc/php/7.0/apache2/php.ini

Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

Ctrl+o Enter to save

CTRL+x to exit

Restart Apache

service apache2 reload

Open Zoneminder in a web browser (http://server-ip/zm).