User Tools

Site Tools


zoneminder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zoneminder [2021/07/09 01:36] – created vissiezoneminder [2021/09/15 03:57] (current) vissie
Line 5: Line 5:
   sudo apt install apt-transport-https gnupg   sudo apt install apt-transport-https gnupg
   sudo mysql_secure_installation   sudo mysql_secure_installation
 +  # Read, but basicly say Yes to everything
   sudo systemctl restart mysql   sudo systemctl restart mysql
-Locate (Ctrl+w) cgi.fix_pathinfo=1 and change to +   
-  cgi.fix_pathinfo=0+  sudo vim /etc/php/7.3/fpm/php.ini 
 +Locate cgi.fix_pathinfo=1 and change to 0 and un-comment the line: 
 +  cgi.fix_pathinfo=0 
   sudo systemctl restart php7.3-fpm   sudo systemctl restart php7.3-fpm
   sudo vim /etc/apt/sources.list.d/zoneminder.list   sudo vim /etc/apt/sources.list.d/zoneminder.list
 Add the following line to the end of the file Add the following line to the end of the file
-  deb https://zmrepo.zoneminder.com/debian/release-1.34 buster/+  deb https://zmrepo.zoneminder.com/debian/release-1.34 buster/  
 +or 
 +  deb https://zmrepo.zoneminder.com/debian/release-1.36 buster/  
 +    
   wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | sudo apt-key add -   wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | sudo apt-key add -
   sudo apt update   sudo apt update
Line 63: Line 69:
         }         }
     }     }
-</shx>+</sxh>
   sudo systemctl restart nginx.service   sudo systemctl restart nginx.service
 If it does not exist create If it does not exist create
Line 73: Line 79:
  
 =====How to setup cameras===== =====How to setup cameras=====
-http://onlinetechadvice.blogspot.com/2014/04/hikvision-ds-2cd2032-i-working-in.html?m=1#comment-form+[[http://onlinetechadvice.blogspot.com/2014/04/hikvision-ds-2cd2032-i-working-in.html?m=1#comment-form]]
  
-Create a new monitor and choose source as ffmpeg +  * Create a new monitor and choose source as ffmpeg 
-Click on source tab, add rtsp://username:password@192.168.1.120:554/cam/realmonitor?channel=1&subtype=0?tcp to  the source(change your IP as neccessary on your network, and your username and password. +  Click on source tab, add [[rtsp://username:password@192.168.1.120:554/cam/realmonitor?channel=1&subtype=0?tcp]] to the source(change your IP as necessary on your network, and your username and password. 
-# Colours is 24 bit, Width is 1920, Height is 1080(I choose 1080P mode instead of 3MP), Click save and it should now work.+  * Colors is 24 bit, Width is 1920, Height is 1080(I choose 1080P mode instead of 3MP), Click save and it should now work. 
 + 
 +[[https://forums.zoneminder.com/viewtopic.php?t=25766]]
  
-  https://forums.zoneminder.com/viewtopic.php?t=25766 
 It turns out, this is better: It turns out, this is better:
-  rtsp://username:password@192.168.1.120:554//Streaming/Channels/1+[[rtsp://username:password@192.168.1.120:554//Streaming/Channels/1]]
  
 =====Enable ssl===== =====Enable ssl=====
-http://www.overworkeditguy.com/2017/07/basic-security-with-zoneminder.html+[[http://www.overworkeditguy.com/2017/07/basic-security-with-zoneminder.html]]
  
 First, activate the HTTPS / ssl handler for Apache (Ubuntu includes it in the default "LAMP" install, it just needs to be activated): First, activate the HTTPS / ssl handler for Apache (Ubuntu includes it in the default "LAMP" install, it just needs to be activated):
Line 110: Line 117:
 If you want to have only zoneminder logs, apart from the other log messages, in dedicated log files, you will have to change the configuration of /etc/rsyslog.conf and add specific statements for Zoneminder. If you want to have only zoneminder logs, apart from the other log messages, in dedicated log files, you will have to change the configuration of /etc/rsyslog.conf and add specific statements for Zoneminder.
  
-1. Create configuration file in /etc/rsyslog.d (all configuration files from this directory will be included in /etc/rsyslog.conf): +  * Create configuration file in /etc/rsyslog.d (all configuration files from this directory will be included in /etc/rsyslog.conf): 
- +  #touch /etc/rsyslog.d/zm.conf 
-#touch /etc/rsyslog.d/zm.conf +  Edit /etc/rsyslog.d/zm. conf, add the code below:
- +
-2. Edit /etc/rsyslog.d/zm. conf, add the code below:+
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 #zoneminder rules #zoneminder rules
Line 165: Line 170:
 Save the file. Save the file.
  
-3. Restart syslog daemon+  * Restart syslog daemon
   #systemctl restart rsyslog.service   #systemctl restart rsyslog.service
 Zoneminder logs will be generated as defined in the above file. Zoneminder logs will be generated as defined in the above file.
Line 177: Line 182:
  
 So I tried this:  So I tried this: 
-https://iserversupport.com/recover-crashed-innodb-tables-on-mysql-database-server/+[[https://iserversupport.com/recover-crashed-innodb-tables-on-mysql-database-server/]]
  
   sudo cp -rf /var/lib/mysql  /var/lib/mysql_backup_data   sudo cp -rf /var/lib/mysql  /var/lib/mysql_backup_data
zoneminder.1625819795.txt.gz · Last modified: 2021/07/09 01:36 by vissie