Zoneminder

From Michael's Information Zone
Jump to navigation Jump to search

CentOS7

It is recommended to install on a clean CentOS 7 installation[1]. In this case I am using an LXC container. I am a little concerned that it uses rpmfusion[2] as I might get conflicting packages kernel packages during updates. Will need to be careful.

yum -y install epel-release
yum -y localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
yum install mariadb-server
systemctl enable mariadb
systemctl start  mariadb.service
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';"
sed 's/\;date\.timezone\ \=/date\.timezone\ =\ America\/New_York/' /etc/php.ini
ln -s /etc/zm/www/zoneminder.conf /etc/httpd/conf.d/
yum install mod_ssl
mkdir /var/log/httpd
systemctl enable httpd
systemctl start httpd
systemctl enable zoneminder
systemctl start zoneminder
yum -y install firewalld
systemctl start firewalld
firewall-cmd --permanent --add-service=http && firewall-cmd --permanent --add-service=https && firewall-cmd --permanent --zone=public --add-port=3702/udp
firewall-cmd --reload

SV3C Camera

I forget how I initially setup the camera, but following the steps outlined on the zoneminder wiki[3] I was able to tap into the feed without entering in any credentials. That is a little scary, and warrents putting the cameras on their own network. I already block the camera from communicating with the internet, but anyone hopping onto the wifi would have access.