Difference between revisions of "Debian 10 Buster with Zoneminder 1.36.x from ZM Repo"

From ZoneMinder Wiki
Jump to navigationJump to search
m
Line 96: Line 96:
Add www-data to the sudo group (to enable use of local video devices)
Add www-data to the sudo group (to enable use of local video devices)


  adduser www-data sudo
  adduser www-data video


Start Zoneminder
Start Zoneminder

Revision as of 19:35, 4 August 2015

This easy install is for Debian 8.1 (Jessie) with Zoneminder 1.28.1 from the back ports install.

A special THANKS to "felixr" for filling in where I did not know what to do!

I installed Debian from the netinst CD with only web server, SSH server and standard system utilities. Tasksel does not

install LAMP under Debian so I installed MySQL and PHP after reboot.

Log in as root. Install sudo

apt-get install sudo

Give your user sudo ability

sudo adduser <username> sudo

Log out then log back in as user then become root

sudo su
  • At this point I log out of the console and log back in using Putty on my Windows PC as I can then copy and paste

commands from this instruction. I also install Webmin to manage the server from a web browser. http://www.webmin.com/deb.html

Install PHP, and MySQL server

apt-get install  php5 mysql-server php-pear php5-mysql

Add the Jessie backports

nano /etc/apt/sources.list

add to the bottom of the list:

deb http://http.debian.net/debian jessie-backports main

Ctrl+o Enter to save CTRL+x to exit

Update Sources

apt-get update

Check to be sure everything is up to date

apt-get upgrade
apt-get dist-upgrade

Optional: Set static IP address

nano /etc/network/interfaces

Make changes similar to this:

auto eth0
iface eth0 inet static
  address 192.168.1.10
  netmask 255.255.255.0
  gateway 192.168.1.1
  dns-nameservers 192.168.1.1

Reboot server if needed

Install Zoneminder

apt-get install zoneminder


You may need to install "extra" VLC components (I will check this and edit as needed)

apt-get install libvlc-dev libvlccore-dev vlc

Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)

cd /usr/share/zoneminder/db
mysql --user=root --password=(root password) < zm_create.sql 
mysql --user=root --password=(root password)
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
\q (enter) (to quit)

Set permissions of /etc/zm/zm.conf to root:www-data 740

chmod 740 /etc/zm/zm.conf

chown root:www-data /etc/zm/zm.conf

Enable Zoneminder service to start at boot

systemctl enable zoneminder.service

Add www-data to the sudo group (to enable use of local video devices)

adduser www-data video

Start Zoneminder

systemctl start zoneminder.service

Check to see that Zoneminder is running

systemctl status zoneminder.service

Enable CGI and Zoneminder configuration in Apache.

a2enmod cgi

a2enconf zoneminder

Restart Apache

service apache2 restart

Install Cambozola (needed if you use Internet Explorer)

cd /usr/src && wget http://www.andywilcock.com/code/cambozola/cambozola-latest.tar.gz
tar -xzvf cambozola-latest.tar.gz
replace 936 with cambozola version downloaded
cp cambozola-0.936/dist/cambozola.jar /usr/share/zoneminder

You should now be able to access the web server using http://servername


Open Zoneminder in web browser

http://serverip/zm

Click Options

Uncheck: Check with zoneminder.com for updated versions (?) click Save

Click Images tab

Check Is the (optional) cambozola java streaming client installed (?) Click Save

Click Paths

Change PATH_ZMS from /cgi-bin/nph-zms to /zm/cgi-bin/nph-zms Click Save

Optional under Paths change PATH_SWAP to /dev/shm (puts this process in RAM drive) Click Save

Restart Zoneminder

Your Zoneminder install is now ready to add cameras!