<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Olemmer</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Olemmer"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Olemmer"/>
	<updated>2026-04-19T22:41:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15587</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15587"/>
		<updated>2019-06-18T22:38:41Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;N.B.: The version from iconnor ppa has an issue with the required dependencies for libx264 on Ubuntu 19.04, we have to correct this by manually repacking the deb-package.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
see: https://help.ubuntu.com/community/ApacheMySQLPHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;26MAY19 - Added a one step shell script to install Zoneminder 1.32.3 on Ubuntu 19.04 AMD64. This uses files created from the following procedure. See #5 in the menu&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. Enter anything for the description (e.g. Libraries for Zoneminder MP4 support). On the table of values: change the entries as following: &lt;br /&gt;
* Name=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Version=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
* Provides=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package and installation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install Zoneminder:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Zoneminder service:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
 [Date]&lt;br /&gt;
 ; Defines the default timezone used by the date functions&lt;br /&gt;
 ; http://php.net/date.timezone&lt;br /&gt;
 date.timezone = Europe/Luxembourg&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save, then CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Finally, restart Apache and zoneminder&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;br /&gt;
&lt;br /&gt;
==Install Zoneminder with MP4 support on Ubuntu 19.04 AMD64 with shell script==&lt;br /&gt;
&lt;br /&gt;
This will install Zoneminder by using a shell script with one basic command (how easy is that!).&lt;br /&gt;
&lt;br /&gt;
You will need a Ubuntu 19.04 installed desktop or server. This script installs Apache2, Mariadb Server and PHP. If you want to use MySQL replace mariadb-server with mysql-server in the script.&lt;br /&gt;
&lt;br /&gt;
Become root&lt;br /&gt;
&lt;br /&gt;
 sudo su&lt;br /&gt;
&lt;br /&gt;
Create the install file&lt;br /&gt;
&lt;br /&gt;
 nano install-zm&lt;br /&gt;
&lt;br /&gt;
Copy the following into the file&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;This script installs Apache2, Mariadb Server, PHP and Zoneminder 1.32.3 with MP4 support on Ubuntu 19.04 AMD64.&lt;br /&gt;
 Press Enter to continue or Ctrl + c to quit&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;You must be logged in as root using sudo su before running this script...&lt;br /&gt;
 The script will stop and prompt for user action as required&lt;br /&gt;
 Press Enter to continue or Ctrl + c to quit&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
 apt -y install apache2 php mariadb-server php-mysql libapache2-mod-php7.2 x264 x265 gdebi&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Next secure MySQL server by entering requested information. Press enter to continue&amp;quot; nothing&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Next we will download the libmp4v2 package and install it.&lt;br /&gt;
 Press enter to continue&amp;quot; nothing&lt;br /&gt;
 wget -O /tmp/libmp4v2-2_2.0-1_amd64.deb --no-check-certificate &amp;quot;https://onedrive.live.com/download?cid=DECAED2A9DCA1993&amp;amp;resid=DECAED2A9DCA1993%2127788&amp;amp;authkey=AIRJsHH6TkX22R8&amp;quot;&lt;br /&gt;
 apt -y install /tmp/libmp4v2-2_2.0-1_amd64.deb&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Next we will download the Zoneminder (patched) package and install it.&lt;br /&gt;
 Press enter to continue&amp;quot; nothing&lt;br /&gt;
 wget -O /tmp/zoneminder_1.32.3-disco_repacked_amd64.deb --no-check-certificate &amp;quot;https://onedrive.live.com/download?cid=DECAED2A9DCA1993&amp;amp;resid=DECAED2A9DCA1993%2127790&amp;amp;authkey=AAa7rrbW8NadXos&amp;quot;&lt;br /&gt;
 awk &amp;#039;$0=&amp;quot;date.timezone = &amp;quot;$0&amp;#039; /etc/timezone &amp;gt;&amp;gt; /etc/php/7.2/apache2/php.ini&lt;br /&gt;
 gdebi /tmp/zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
 systemctl enable zoneminder&lt;br /&gt;
 service zoneminder start&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Open Zoneminder in a web browser (http://server-ip/zm). &lt;br /&gt;
 Press enter to continue&amp;quot; nothing&lt;br /&gt;
 clear &lt;br /&gt;
&lt;br /&gt;
Save and close the file&lt;br /&gt;
&lt;br /&gt;
 CTRL+o&lt;br /&gt;
 CTRL+x&lt;br /&gt;
&lt;br /&gt;
Set permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 755 install-zm&lt;br /&gt;
&lt;br /&gt;
Run the file&lt;br /&gt;
&lt;br /&gt;
 ./install-zm&lt;br /&gt;
&lt;br /&gt;
The script will prompt for user action several times. I have run this script installing Mariadb or MySQL with a functional system with either database server. I do, however, prefer Mariadb. I also recommend running mysqltuner after adding cameras and periodically to tune database settings as events are stored.&lt;br /&gt;
&lt;br /&gt;
You do not need to add the Zoneminder PPA for this install but it may be needed in the future when Zoneminder is updated.&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15561</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15561"/>
		<updated>2019-05-02T16:00:09Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;N.B.: The version from iconnor ppa has an issue with the required dependencies for libx264 on Ubuntu 19.04, we have to correct this by manually repacking the deb-package.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package and installation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install Zoneminder:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Zoneminder service:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
 [Date]&lt;br /&gt;
 ; Defines the default timezone used by the date functions&lt;br /&gt;
 ; http://php.net/date.timezone&lt;br /&gt;
 date.timezone = Europe/Luxembourg&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save, then CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Finally, restart Apache and zoneminder&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15560</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15560"/>
		<updated>2019-05-02T15:47:02Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package and installation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install Zoneminder:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Zoneminder service:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
 [Date]&lt;br /&gt;
 ; Defines the default timezone used by the date functions&lt;br /&gt;
 ; http://php.net/date.timezone&lt;br /&gt;
 date.timezone = Europe/Luxembourg&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save, then CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Finally, restart Apache and zoneminder&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15559</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15559"/>
		<updated>2019-05-02T15:45:42Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package and installation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install Zoneminder:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Zoneminder service:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
 [Date]&lt;br /&gt;
 ; Defines the default timezone used by the date functions&lt;br /&gt;
 ; http://php.net/date.timezone&lt;br /&gt;
 date.timezone = Europe/Luxembourg&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save, then CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Finally, restart Apache and zoneminder&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15558</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15558"/>
		<updated>2019-05-02T15:41:56Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package and installation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install Zoneminder:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save, then CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15557</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15557"/>
		<updated>2019-05-02T15:39:17Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: /* Post-installation procedures */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install Zoneminder: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save, then CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15556</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15556"/>
		<updated>2019-05-02T15:38:22Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: /* Install Zoneminder: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install Zoneminder: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed.&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save&lt;br /&gt;
CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15555</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15555"/>
		<updated>2019-05-02T15:36:13Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install libmp4v2-2 as debian package:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;, Version=&amp;#039;&amp;#039;2.0&amp;#039;&amp;#039;, Provides=&amp;#039;&amp;#039;libmp4v2-2&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repacking zoneminder deb-package ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install Zoneminder: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
Other missing dependencies will automaticely be installed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-installation procedures ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Create the Database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fix permissions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Enable Apache features:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Add timezone to PHP:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save&lt;br /&gt;
CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Zoneminder should work!&amp;#039;&amp;#039;&amp;#039; Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15554</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15554"/>
		<updated>2019-05-02T15:30:31Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: /* Preparations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and compile libmp4v2-2:&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: &amp;#039;&amp;#039;&amp;#039;Name=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Version=2.0&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Provides=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder:&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix permissions:&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Apache features:&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save&lt;br /&gt;
CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15553</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15553"/>
		<updated>2019-05-02T15:29:56Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install needed packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb:&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the official repository for the current stable version 1.32:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing libmp4v2-2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and compile libmp4v2-2:&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: &amp;#039;&amp;#039;&amp;#039;Name=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Version=2.0&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Provides=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder:&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix permissions:&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Apache features:&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save&lt;br /&gt;
CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15552</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15552"/>
		<updated>2019-05-02T15:26:36Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install needed packages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Secure MySQL or Mariadb:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install the official repository for the current stable version 1.32:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download and compile libmp4v2-2:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: &amp;#039;&amp;#039;&amp;#039;Name=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Version=2.0&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Provides=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder:&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix permissions:&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Apache features:&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save&lt;br /&gt;
CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15551</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15551"/>
		<updated>2019-05-02T15:23:58Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[[ CURRENTLY EDITING IN PROGRESS ]]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install needed packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb:&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the official repository for the current stable version 1.32:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and compile libmp4v2-2:&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: &amp;#039;&amp;#039;&amp;#039;Name=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Version=2.0&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Provides=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder:&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with:&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix permissions:&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Apache features:&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod cgi&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
 sudo a2enconf zoneminder&lt;br /&gt;
 &lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add user www-data to group video, for accessing local cameras:&lt;br /&gt;
&lt;br /&gt;
 sudo adduser www-data video&lt;br /&gt;
 sudo usermod -a -G video www-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service:&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
CTRL +o Enter to save&lt;br /&gt;
CTRL +x to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache and zoneminder&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 reload&lt;br /&gt;
 sudo service zoneminder restart&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15550</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15550"/>
		<updated>2019-05-02T15:15:32Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[[ CURRENTLY EDITING IN PROGRESS ]]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install needed packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb:&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the official repository for the current stable version 1.32:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and compile libmp4v2-2:&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: &amp;#039;&amp;#039;&amp;#039;Name=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Version=2.0&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Provides=libmp4v2-2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
&lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Install Zoneminder:]]&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15549</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15549"/>
		<updated>2019-05-02T15:13:29Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: How to install Zoneminder 1.32-3 on Ubuntu Server 19.04 with mp4 support to use video recordings.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[[ CURRENTLY EDITING IN PROGRESS ]]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install needed packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential checkinstall gdebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb:&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the official repository for the current stable version 1.32:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download, compile libmp4v2-2:&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
Follow the instructions on the screen. &lt;br /&gt;
Change the description values as following: Name=libmp4v2-2, Version=2.0, Provides=libmp4v2-2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have to repack the zoneminder deb-package to fix the dependencies issue (libx264-155).&lt;br /&gt;
Download the current deb-package:&lt;br /&gt;
&lt;br /&gt;
 wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-1.32/+files/zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Extract the deb-package:&lt;br /&gt;
&lt;br /&gt;
 ar x zoneminder_1.32.3-disco_amd64.deb&lt;br /&gt;
 tar xf control.tar.xz&lt;br /&gt;
 &lt;br /&gt;
Rewrite the required dependencies:&lt;br /&gt;
 nano control&lt;br /&gt;
search for &amp;quot;libx264-155&amp;quot; and move it after &amp;quot;libx264-152 | &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Repack the deb-package:&lt;br /&gt;
&lt;br /&gt;
 tar c {post,pre}{inst,rm} md5sums control | gzip -c &amp;gt; control.tar.gz&lt;br /&gt;
 ar rcs zoneminder_1.32.3-disco_repacked_amd64.deb debian-binary control.tar.gz data.tar.xz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder:&lt;br /&gt;
&lt;br /&gt;
 sudo gdebi zoneminder_1.32.3-disco_repacked_amd64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15548</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15548"/>
		<updated>2019-05-02T15:03:07Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[[ CURRENTLY EDITING IN PROGRESS ]]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install needed packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install x264 x265 build-essential check-install gedebi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb:&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL + x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 service mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the official repository for the current stable version 1.32:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
Now installing zoneminder by &amp;quot;sudo apt-get install zoneminder&amp;quot; will not work because of missing dependencies (as of 05/01/2019)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download, compile libmp4v2-2:&lt;br /&gt;
&lt;br /&gt;
 wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 &lt;br /&gt;
 tar xf mp4v2-2.0.0.tar.bz2&lt;br /&gt;
 cd mp4v2-2.0.0/&lt;br /&gt;
 mkdir build/ &amp;amp;&amp;amp; cd build/&lt;br /&gt;
 ../configure CXXFLAGS=&amp;#039;-fpermissive&amp;#039; CFLAGS=&amp;#039;-fpermissive&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
Don&amp;#039;t leave this folder.&lt;br /&gt;
&lt;br /&gt;
Install libmp4v2-2 as debian package:&lt;br /&gt;
&lt;br /&gt;
 sudo checkinstall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15547</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15547"/>
		<updated>2019-05-02T14:50:11Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. &lt;br /&gt;
Unfortunately the MP4 recording and playback does not work with the shipped version as there are missing libraries (libmp4v2-2). &lt;br /&gt;
So events can only be saved in jpeg-frames, video recordings do not happen.&lt;br /&gt;
[State: 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
These instructions will show how to install Zoneminder 1.32-3 from the iconnor ppa with mp4 support to use video recordings.&lt;br /&gt;
&lt;br /&gt;
[[[ CURRENTLY EDITING IN PROGRESS ]]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
Here are the basic commands you will need. As always start from a root (sudo su) prompt.&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL +x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15546</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15546"/>
		<updated>2019-05-02T14:46:58Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. Unfortunately the MP4 recording and playback does not work as there are missing libraries (libmp4v2-2). [State of 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
[[[ CURRENTLY EDITING IN PROGRESS ]]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
Here are the basic commands you will need. As always start from a root (sudo su) prompt.&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL +x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15545</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15545"/>
		<updated>2019-05-02T14:46:31Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.32 made it into the &amp;quot;official&amp;quot; Ubuntu 19.04 repositories. Unfortunately the MP4 recording and playback does not work as there are missing libraries (libmp4v2-2). [State of 01 MAY 2019]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to install LAMP then secure MySQL before installing Zoneminder.&lt;br /&gt;
&lt;br /&gt;
Here are the basic commands you will need. As always start from a root (sudo su) prompt.&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL +x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15544</id>
		<title>Ubuntu Server 19.10 Zoneminder 1.33.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_19.10_Zoneminder_1.33.x&amp;diff=15544"/>
		<updated>2019-05-02T14:42:36Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: Created page with &amp;quot;&amp;lt;Home  Zoneminder 1.30.4 made it into the &amp;quot;official&amp;quot; Ubuntu 18.10 repositories. You will need to install LAMP then secure MySQL before installing Zoneminder. I use...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Ubuntu|&amp;lt;Home]]&lt;br /&gt;
&lt;br /&gt;
Zoneminder 1.30.4 made it into the &amp;quot;official&amp;quot; Ubuntu 18.10 repositories. You will need to install LAMP then secure MySQL before installing Zoneminder. I use a very minimum install from the 18.10 mini.iso.&lt;br /&gt;
&lt;br /&gt;
Here are the basic commands you will need. As always start from a root (sudo su) prompt.&lt;br /&gt;
&lt;br /&gt;
Secure MySQL or Mariadb&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Add entry into my.cnf&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
Add the following to the end of the file&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
CTRL + o&lt;br /&gt;
CTRL +x&lt;br /&gt;
&lt;br /&gt;
Restart MySQL&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
The database is not created automatically. Create the database with&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
&lt;br /&gt;
 mysql -uroot -p -e &amp;quot;grant all on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -uroot -p reload&lt;br /&gt;
&lt;br /&gt;
Fix permissions&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add a user for local cameras&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Enable Apache Features&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone&lt;br /&gt;
&lt;br /&gt;
[Date]&lt;br /&gt;
; Defines the default timezone used by the date functions&lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = America/New_York&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
&lt;br /&gt;
Zoneminder should work! Open Zoneminder in a web browser (http://server-ip/zm).&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=15543</id>
		<title>Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=15543"/>
		<updated>2019-05-02T14:39:38Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: /* Guides for Ubuntu Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ubuntu is a Linux distribution based on Debian. It&amp;#039;s a good system for a home / office user and the install CD installs &amp;#039;most everything the home / office user will need.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
&lt;br /&gt;
* Using an Ubuntu Desktop distro, you will be able to host a complete ZM installation, and also watch the console/events/streams on the same machine;&lt;br /&gt;
&lt;br /&gt;
* Using an Ubuntu Server distro, &amp;#039;&amp;#039;&amp;#039;you will not be able to watch ZM&amp;#039;&amp;#039;&amp;#039; on the same machine at all; but the system becomes much more light, using less resources and using an &amp;#039;&amp;#039;&amp;#039;optimized Kernel&amp;#039;&amp;#039;&amp;#039;  for server applications; &lt;br /&gt;
&lt;br /&gt;
Before choosing, consider checking&lt;br /&gt;
&lt;br /&gt;
http://www.ubuntu.com/products/whatisubuntu/serveredition/features&lt;br /&gt;
&lt;br /&gt;
http://www.ubuntu.com/products/whatisubuntu/serveredition/features/kernel &lt;br /&gt;
&lt;br /&gt;
===Common Issues with Zoneminder Installation on Ubuntu. Includes upgrade instructions!===&lt;br /&gt;
&lt;br /&gt;
[[Common Issues with Zoneminder Installation on Ubuntu]]  &amp;#039;&amp;#039;&amp;#039;Includes upgrade instructions, Systemd Mount instructions and Multi Server Instructions!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Guides for Ubuntu Server===&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.26.5 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Any Version 12.04+ 64-bit with Zoneminder 1.28.1 the Docker way (two commands)]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 16.04 64-bit with Zoneminder 1.29.0 the easy way]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.32.x the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 16.04 64-bit with Zoneminder 1.32.x the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 18.04 64-bit with Zoneminder 1.32.x the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 18.10 Zoneminder 1.30.4]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 19.04 Zoneminder 1.32.3]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 19.04 Zoneminder 1.32.3 (with mp4 support)]]&lt;br /&gt;
&lt;br /&gt;
===Guides for Ubuntu Desktop===&lt;br /&gt;
&lt;br /&gt;
Installing Zoneminder on a desktop system can have its benefits. It can also pose problems! &lt;br /&gt;
&lt;br /&gt;
If you use one of the desktops provided with Ubuntu (Gnome, Unity, KDE, et. al.) use the corresponding Ubuntu server install/upgrade instructions. You may need to install tasksel to make it easier to install LAMP as most of the Ubuntu instructions start with a system set up with LAMP. It is recommended to install Zoneminder from a terminal. Using a software/package manager can get you in trouble!&lt;br /&gt;
&lt;br /&gt;
If you are using a distro such as Mint, find out which Ubuntu system your version is based on and use the corresponding Ubuntu server install/upgrade. And do the procedure from a terminal! &lt;br /&gt;
&lt;br /&gt;
Oh, did I fail to mention it is easy to copy the command instructions from the instructions on the WIKI and paste them into the terminal window? It is a great way to avoid typos!!!&lt;br /&gt;
&lt;br /&gt;
[[Lubuntu_16.04_with_Zoneminder_1.30.0_pre-configured_DVD_or_USB]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 12.04/13.04 Desktop]]&lt;br /&gt;
&lt;br /&gt;
===Outdated versions===&lt;br /&gt;
&lt;br /&gt;
* You may find useful or related info under the following guides to older ubuntu versions:&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.28.1 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.10 64-bit server with Zoneminder to use systemd]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 17.04 64-bit with Zoneminder 1.30.0 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 17.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 17.10 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 16.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 18.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
==Installation Notes==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5633&lt;br /&gt;
GUI package that installs Mplayer etc.&lt;br /&gt;
&lt;br /&gt;
http://ubuntuforums.org/showpost.php?p=356392&lt;br /&gt;
EXTRA_LIBS parameter in .configure script&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6141&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=13140 How to install latest Zoneminder on Ubuntu 8.10&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
[http://ubuntulinux.org http://ubuntulinux.org]&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=15542</id>
		<title>Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu&amp;diff=15542"/>
		<updated>2019-05-02T14:39:15Z</updated>

		<summary type="html">&lt;p&gt;Olemmer: /* Guides for Ubuntu Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ubuntu is a Linux distribution based on Debian. It&amp;#039;s a good system for a home / office user and the install CD installs &amp;#039;most everything the home / office user will need.&lt;br /&gt;
&lt;br /&gt;
==Installation Guides==&lt;br /&gt;
&lt;br /&gt;
* Using an Ubuntu Desktop distro, you will be able to host a complete ZM installation, and also watch the console/events/streams on the same machine;&lt;br /&gt;
&lt;br /&gt;
* Using an Ubuntu Server distro, &amp;#039;&amp;#039;&amp;#039;you will not be able to watch ZM&amp;#039;&amp;#039;&amp;#039; on the same machine at all; but the system becomes much more light, using less resources and using an &amp;#039;&amp;#039;&amp;#039;optimized Kernel&amp;#039;&amp;#039;&amp;#039;  for server applications; &lt;br /&gt;
&lt;br /&gt;
Before choosing, consider checking&lt;br /&gt;
&lt;br /&gt;
http://www.ubuntu.com/products/whatisubuntu/serveredition/features&lt;br /&gt;
&lt;br /&gt;
http://www.ubuntu.com/products/whatisubuntu/serveredition/features/kernel &lt;br /&gt;
&lt;br /&gt;
===Common Issues with Zoneminder Installation on Ubuntu. Includes upgrade instructions!===&lt;br /&gt;
&lt;br /&gt;
[[Common Issues with Zoneminder Installation on Ubuntu]]  &amp;#039;&amp;#039;&amp;#039;Includes upgrade instructions, Systemd Mount instructions and Multi Server Instructions!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Guides for Ubuntu Server===&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.26.5 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Any Version 12.04+ 64-bit with Zoneminder 1.28.1 the Docker way (two commands)]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 16.04 64-bit with Zoneminder 1.29.0 the easy way]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.32.x the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 16.04 64-bit with Zoneminder 1.32.x the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 18.04 64-bit with Zoneminder 1.32.x the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 18.10 Zoneminder 1.30.4]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 19.04 Zoneminder 1.32.3]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 19.04 Zoneminder 1.32.3 (with mp4 support]]&lt;br /&gt;
&lt;br /&gt;
===Guides for Ubuntu Desktop===&lt;br /&gt;
&lt;br /&gt;
Installing Zoneminder on a desktop system can have its benefits. It can also pose problems! &lt;br /&gt;
&lt;br /&gt;
If you use one of the desktops provided with Ubuntu (Gnome, Unity, KDE, et. al.) use the corresponding Ubuntu server install/upgrade instructions. You may need to install tasksel to make it easier to install LAMP as most of the Ubuntu instructions start with a system set up with LAMP. It is recommended to install Zoneminder from a terminal. Using a software/package manager can get you in trouble!&lt;br /&gt;
&lt;br /&gt;
If you are using a distro such as Mint, find out which Ubuntu system your version is based on and use the corresponding Ubuntu server install/upgrade. And do the procedure from a terminal! &lt;br /&gt;
&lt;br /&gt;
Oh, did I fail to mention it is easy to copy the command instructions from the instructions on the WIKI and paste them into the terminal window? It is a great way to avoid typos!!!&lt;br /&gt;
&lt;br /&gt;
[[Lubuntu_16.04_with_Zoneminder_1.30.0_pre-configured_DVD_or_USB]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu 12.04/13.04 Desktop]]&lt;br /&gt;
&lt;br /&gt;
===Outdated versions===&lt;br /&gt;
&lt;br /&gt;
* You may find useful or related info under the following guides to older ubuntu versions:&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.28.1 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.10 64-bit server with Zoneminder to use systemd]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 17.04 64-bit with Zoneminder 1.30.0 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 17.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 17.10 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 14.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 16.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
[[Ubuntu Server 18.04 64-bit with Zoneminder 1.30.4 the easy way]]&lt;br /&gt;
&lt;br /&gt;
==Installation Notes==&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=5633&lt;br /&gt;
GUI package that installs Mplayer etc.&lt;br /&gt;
&lt;br /&gt;
http://ubuntuforums.org/showpost.php?p=356392&lt;br /&gt;
EXTRA_LIBS parameter in .configure script&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6141&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=13140 How to install latest Zoneminder on Ubuntu 8.10&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
[http://ubuntulinux.org http://ubuntulinux.org]&lt;br /&gt;
&lt;br /&gt;
[[Categories: Linux distributions]]&lt;/div&gt;</summary>
		<author><name>Olemmer</name></author>
	</entry>
</feed>