ZoneMinder: установка
sudo apt-get update
sudo apt-get upgrade
sudo tasksel install lamp-server
cat /etc/timezone
sudo dpkg-reconfigure tzdata
nano /etc/php/7.0/apache2/php.ini
date.timezone = Europe/Moscow
sudo apt-get install zoneminder
sudo mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant select,insert,update,delete,create,\
alter,index,lock tables on zm.* to 'zmuser'@localhost identified by 'zmpass';"
sudo a2enconf zoneminder
sudo a2enmod rewrite
sudo a2enmod cgi
sudo chown www-data:www-data /etc/zm/zm.conf
sudo su
echo "kernel.shmall = 134217728" >> /etc/sysctl.conf
echo "kernel.shmmax = 134217728" >> /etc/sysctl.conf
echo 134217728 >/proc/sys/kernel/shmall
echo 134217728 >/proc/sys/kernel/shmmax
systemctl enable zoneminder
echo "sql_mode = NO_ENGINE_SUBSTITUTION" >> /etc/mysql/mysql.conf.d/mysqld.cnf
reboot