Difference between revisions of "Talk:Debian 11 Bullseye with Zoneminder 1.36.x"

From ZoneMinder Wiki
Jump to navigationJump to search
(Created page with "Tried using the official documentation and couldn't get zoneminder to load. The main problem is during install no Database or User is installed. This is what worked. Fresh Install Debian 11 su sudo usermod -a -G sudo <username> sudo reboot sudo apt update sudo apt upgrade sudo apt install mariadb-server sudo /usr/bin/mysql_secure_installation follow instructions: Change to your requirements this works current PW enter for none socket auth Y Change Root PW Y (e...")
 
 
Line 4: Line 4:


This is what worked.
This is what worked.


Fresh Install Debian 11
Fresh Install Debian 11


su
su
sudo usermod -a -G sudo <username>
sudo usermod -a -G sudo <username>


sudo reboot
sudo reboot


sudo apt update
sudo apt update
sudo apt upgrade
sudo apt upgrade


sudo apt install mariadb-server
sudo apt install mariadb-server


sudo /usr/bin/mysql_secure_installation
sudo /usr/bin/mysql_secure_installation
follow instructions:
follow instructions:


Change to your requirements
Change to your requirements
this works
this works


current PW enter for none
current PW enter for none
socket auth Y
socket auth Y
Change Root PW Y  (enter your new root mysql Password)
Change Root PW Y  (enter your new root mysql Password)
Remove anon Y
Remove anon Y
Remove Remote Y
Remove Remote Y
Remove test Y
Remove test Y
Reload Priv Y
Reload Priv Y


sudo apt install zoneminder
sudo apt install zoneminder


mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
Enter mysql PW
Enter mysql PW


mysql -u root -p -e "grant select,insert,update,delete,create,drop,alter,index,lock tables,alter routine,create routine,trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysql -u root -p -e "grant select,insert,update,delete,create,drop,alter,index,lock tables,alter routine,create routine,trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"
Enter mysql PW
Enter mysql PW




sudo chgrp -c www-data /etc/zm/zm.conf
sudo chgrp -c www-data /etc/zm/zm.conf


sudo a2enconf zoneminder
sudo a2enconf zoneminder
sudo systemctl reload apache2
sudo systemctl reload apache2
sudo systemctl enable zoneminder.service
sudo systemctl enable zoneminder.service
sudo systemctl start zoneminder
sudo systemctl start zoneminder



Latest revision as of 23:17, 10 April 2022

Tried using the official documentation and couldn't get zoneminder to load.

The main problem is during install no Database or User is installed.

This is what worked.


Fresh Install Debian 11

su

sudo usermod -a -G sudo <username>

sudo reboot


sudo apt update

sudo apt upgrade


sudo apt install mariadb-server


sudo /usr/bin/mysql_secure_installation

follow instructions:


Change to your requirements this works


current PW enter for none

socket auth Y

Change Root PW Y (enter your new root mysql Password)

Remove anon Y

Remove Remote Y

Remove test Y

Reload Priv Y


sudo apt install zoneminder


mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql

Enter mysql PW


mysql -u root -p -e "grant select,insert,update,delete,create,drop,alter,index,lock tables,alter routine,create routine,trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"

Enter mysql PW


sudo chgrp -c www-data /etc/zm/zm.conf


sudo a2enconf zoneminder

sudo systemctl reload apache2

sudo systemctl enable zoneminder.service

sudo systemctl start zoneminder

Open a web browser window type [Your IP address/zm] without the [brackets]

Hope this helps others. Recommend updating the documentation for Debian 11