Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Fedora 30:

cat << 'EOL' >setupZoneMinder_Fedora30.sh
#!/bin/bash

#https://zoneminder.readthedocs.io/en/stable/installationguide/redhat.html#how-to-install-zoneminder

#Update 'Date.TimeZone'

wget https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-30.noarch.rpm
wget https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-30.noarch.rpm
dnf install -y rpmfusion-free-release-30.noarch.rpm
dnf install -y rpmfusion-nonfree-release-30.noarch.rpm
#####
sudo dnf install -y zoneminder
sudo dnf install -y mariadb-server
sudo systemctl enable mariadb
sudo systemctl start mariadb
mysql_secure_installation
#####
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
echo "date.timezone = 	America/Whitehorse" >> /etc/php.ini
sudo ln -sf /etc/zm/www/zoneminder.httpd.conf /etc/httpd/conf.d/
sudo dnf install -y mod_ssl
sudo systemctl enable httpd
sudo systemctl enable zoneminder
sudo systemctl disable firewalld
reboot
EOL
chmod +x setupZoneMinder_Fedora30.sh
./setupZoneMinder_Fedora30.sh
  • No labels