Difference between revisions of "Zoneminder 1.38.x on Supported Debian Versions"

From ZoneMinder Wiki
Jump to navigationJump to search
(Fix typos, remove section editing php.ini to set timezone as it is done in Options now.)
 
Line 18: Line 18:




Timezone: it is recommended you set your specific timesone with:
Timezone: it is recommended you set your specific timezone with:


timedatectl set-timezone America/New_York
timedatectl set-timezone America/New_York


Of course use your timezone in place of America/New_York.  
Of course use your timezone in place of America/New_York.  
Install LAMO (Apache2, MariaDB and PHP. A quick way to install LAMP is:  
Install LAMP (Apache2, MariaDB and PHP. A quick way to install LAMP is:  


  apt install apache2 mariadb-server php libapache2-mod-php php-mysql lsb-release gnupg2
  apt install apache2 mariadb-server php libapache2-mod-php php-mysql lsb-release gnupg2
Add timezone to PHP
nano /etc/php/8.2/apache2/php.ini
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York
Ctrl+o Enter to save
CTRL+x to exit


Become root with sudo su before running this!
Become root with sudo su before running this!
Line 62: Line 47:
  clear
  clear
  apt install -y zoneminder
  apt install -y zoneminder
systemctl enable zoneminder
service zoneminder start
  adduser www-data video
  adduser www-data video
  a2enconf zoneminder
  a2enconf zoneminder
Line 70: Line 53:
  a2enmod expires
  a2enmod expires
  service apache2 reload
  service apache2 reload
systemctl enable zoneminder
systemctl start zoneminder
  clear
  clear
  read -p "Install complete. Open Zoneminder/Options and set the timezone. Press enter to continue" nothing
  read -p "Install complete. Open Zoneminder by browsing to http://localhost/zm and then go to Options->System and set the timezone. Press enter to continue" nothing
  clear
  clear


Line 93: Line 79:
  ./zm-install
  ./zm-install


Follow the prompts. Things are pretty simple. The timezone is now set in Zoneminder/Options.
Follow the prompts. Things are pretty simple.


Good Luck!
Good Luck!

Latest revision as of 10:58, 12 February 2026

Zoneminder 1.38.x from zmrepo

You will have to install sudo and add the user to the sudoers file.

Become root with

su

Install sudo

apt install sudo

Then add the user

/sbin/adduser username sudo 

I recommend rebooting at this point but a log out and back in also works.


Timezone: it is recommended you set your specific timezone with:

timedatectl set-timezone America/New_York

Of course use your timezone in place of America/New_York. Install LAMP (Apache2, MariaDB and PHP. A quick way to install LAMP is:

apt install apache2 mariadb-server php libapache2-mod-php php-mysql lsb-release gnupg2

Become root with sudo su before running this!

Shell script file contents:

#!/bin/sh
clear
read -p "This script installs ZoneMinder 1.38.x on Debian 13 with LAMP installed...
This script must be run as root!
Press Enter to continue or Ctrl + c to quit" nothing
clear
apt install -y lsb-release gnupg2
echo "deb https://zmrepo.zoneminder.com/debian/master "`lsb_release  -c -s`"/" | sudo tee /etc/apt/sources.list.d/zoneminder.list
# The key is stored in the deprecated keyring trusted.gpg.
# 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 gpg --dearmour -o /etc/apt/trusted.gpg.d/zmrepo.gpg
read -p "Warning! Check above to insure the line says OK. If not the GPG signing key was not installed and you will need to figure out why before continuing. 
Press enter to continue" nothing
apt update
clear
apt install -y zoneminder
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
systemctl enable zoneminder
systemctl start zoneminder
clear
read -p "Install complete. Open Zoneminder by browsing to http://localhost/zm and then go to Options->System and set the timezone. Press enter to continue" nothing
clear


Copy the contents of the script, open a terminal and run:

nano zm-install

Paste the contents of the script into Nano

Then:

Ctrl + o Ctrl + x

Next run:

chmod 755 zm-install

Start the script by entering:

./zm-install

Follow the prompts. Things are pretty simple.

Good Luck!