Add mysql install and db creation to Jammy instructions. Add a couple hints that it also applies to newer. Fixes #4185
parent
292f0d9611
commit
f1cab94091
|
@ -3,9 +3,9 @@ Ubuntu
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
Ubuntu 22.04 (Jammy)
|
Ubuntu 22.04+ (Jammy)
|
||||||
--------------------
|
---------------------
|
||||||
These instructions are for a brand new ubuntu 22.04 LTS system which does not have ZM installed.
|
These instructions are for a brand new ubuntu 22.04 LTS system or newer which does not have ZM installed.
|
||||||
|
|
||||||
**Step 1:** Update system
|
**Step 1:** Update system
|
||||||
|
|
||||||
|
@ -27,30 +27,51 @@ To use this repository instead of the official Ubuntu repository, enter the foll
|
||||||
sudo add-apt-repository ppa:iconnor/zoneminder-1.36
|
sudo add-apt-repository ppa:iconnor/zoneminder-1.36
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
**Step 3:** Install Zoneminder
|
**Step 3:** Configuration MySQL/MariaDB
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
apt-get install mysql-server
|
||||||
|
|
||||||
|
Alternatively
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
apt-get install mariab-server
|
||||||
|
|
||||||
|
**Step 4:** Configure the ZoneMinder Database
|
||||||
|
|
||||||
|
This step is not required if you are using our ppa packages as they will do it for you. It is ok to do it yourself though.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
sudo mysql --defaults-file=/etc/mysql/debian.cnf -p < /usr/share/zoneminder/db/zm_create.sql
|
||||||
|
sudo mysql --defaults-file=/etc/mysql/debian.cnf -p -e "grant lock tables,alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute,references on zm.* to 'zmuser'@localhost identified by 'zmpass';"
|
||||||
|
|
||||||
|
**Step 5:** Install Zoneminder
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
sudo apt install -y zoneminder
|
sudo apt install -y zoneminder
|
||||||
|
|
||||||
|
|
||||||
**Step 4:** Configure Apache correctly:
|
**Step 6:** Configure Apache correctly:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
sudo a2enmod rewrite
|
sudo a2enmod rewrite headers cgi
|
||||||
sudo a2enconf zoneminder
|
sudo a2enconf zoneminder
|
||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
|
|
||||||
|
|
||||||
**Step 5:** Enable and start zoneminder
|
**Step 7:** Enable and start zoneminder
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
sudo systemctl enable zoneminder
|
sudo systemctl enable zoneminder
|
||||||
sudo systemctl start zoneminder
|
sudo systemctl start zoneminder
|
||||||
|
|
||||||
**Step 6:** Open Zoneminder
|
**Step 8:** Open Zoneminder
|
||||||
|
|
||||||
Open up a browser and go to ``http://hostname_or_ip/zm`` to open the ZoneMinder Console.
|
Open up a browser and go to ``http://hostname_or_ip/zm`` to open the ZoneMinder Console.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue