Difference between revisions of "Ubuntu Server or Desktop Zoneminder 1.34.x"

From ZoneMinder Wiki
Jump to navigationJump to search
Line 3: Line 3:
Note: the same install procedure applies for server or desktop.
Note: the same install procedure applies for server or desktop.


===Zoneminder 1.34.x on Ubuntu Server 14.04===


Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server
===Install Zoneminder 1.34.x on Ubuntu 18.04 or 19.10 with shell script===


Log in then become root:
This will install Zoneminder 1.34.x by using a shell script with one basic command (how easy is that!).


sudo su
You will need a Ubuntu 18.04 or 19.10 install with LAMP (Apache, Mariadb and PHP) installed desktop or server. As an alternate you may use MySQL in lieu of MySQL. Google is your friend if you need instructions for setting up a LAMP server.
 
Add the following two Repositories (if you get an error run: apt-get install software-properties-common)
 
add-apt-repository ppa:iconnor/zoneminder
add-apt-repository ppa:iconnor/zoneminder-1.34
 
Update Sources
 
apt-get update
 
Install Zoneminder
 
apt-get install zoneminder
 
Add delay to allow MySQL to start before Zoneminder
 
nano /etc/init.d/zoneminder
 
Add sleep 15 after the existing "start() {" as shown:
 
start() {
      sleep 15
      echo -n "Starting $prog: "
 
Ctrl+o Enter to save
 
CTRL+x to exit
 
 
Create a new user
 
adduser www-data video
 
Enable CGI, Zoneminder and rewrite configuration in Apache.
 
a2enmod cgi
 
a2enconf zoneminder
 
a2enmod rewrite
 
Start Zoneminder if needed (If you get an error Zoneminder is likely running already)
 
service zoneminder start
 
Restart Apache
 
service apache2 reload
 
Open Zoneminder and set timezone under Options
 
===Install Zoneminder 1.34.x on Ubuntu 16.04 with shell script===
 
This will install Zoneminder by using a shell script with one basic command (how easy is that!).
 
You will need a Ubuntu 16.04 install with LAMP (Apache, MySQL and PHP) installed desktop or server. As an alternate you may use Mariadb in lieu of MySQL


Shell script file contents:
Shell script file contents:
Line 71: Line 14:
  #!/bin/sh
  #!/bin/sh
  clear
  clear
  read -p "This script installs Zoneminder 1.34.x on Ubuntu 16.04 with LAMP (MySQL or Mariadb) installed...
  read -p "This script installs Zoneminder 1.34.x on Ubuntu 18.04 or 19.10 with LAMP (MySQL or Mariadb) installed...
  Press Enter to continue or Ctrl + c to quit" nothing
  Press Enter to continue or Ctrl + c to quit" nothing
  clear
  clear
Line 77: Line 20:
  Press Enter to continue or Ctrl + c to quit" nothing
  Press Enter to continue or Ctrl + c to quit" nothing
  clear
  clear
  read -p "Next we will add two PPA repositorys, install and configure the system to run Zoneminder. You will have to press enter twice to load two PPA repositories.
  read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder.  
  Press enter to continue" nothing
  Press enter to continue" nothing
  apt install -y software-properties-common
  apt install -y software-properties-common
  clear
  clear
add-apt-repository ppa:iconnor/zoneminder
  add-apt-repository ppa:iconnor/zoneminder-1.34
  add-apt-repository ppa:iconnor/zoneminder-1.34
apt update
  clear
  clear
  apt install -y zoneminder
  apt install -y zoneminder
Line 94: Line 35:
  service apache2 reload
  service apache2 reload
  clear
  clear
  read -p "Install complete. Open Zoneminder/Options and set timezone. Press enter to continue" nothing
  read -p "Install complete. Open Zoneminder/Options and set the timezine. Press enter to continue" nothing
  clear
  clear


Line 116: Line 57:
  ./zm-install
  ./zm-install


Follow the prompts. Things are pretty simple. Remember to open Zoneminder and set the timezone under options.
Follow the prompts. Things are pretty simple. The timezone is now set in Zoneminder/Options.


Good Luck!  
Good Luck!


===Install Zoneminder 1.34.x on Ubuntu 18.04 or 19.10 with shell script===
===Install Zoneminder 1.34.x on Ubuntu 16.04 with shell script===


This will install Zoneminder 1.34.x by using a shell script with one basic command (how easy is that!).
This will install Zoneminder by using a shell script with one basic command (how easy is that!).


You will need a Ubuntu 18.04 or 19.10 install with LAMP (Apache, Mariadb and PHP) installed desktop or server. As an alternate you may use MySQL in lieu of MySQL. Google is your friend if you need instructions for setting up a LAMP server.
You will need a Ubuntu 16.04 install with LAMP (Apache, MySQL and PHP) installed desktop or server. As an alternate you may use Mariadb in lieu of MySQL


Shell script file contents:
Shell script file contents:
Line 130: Line 71:
  #!/bin/sh
  #!/bin/sh
  clear
  clear
  read -p "This script installs Zoneminder 1.34.x on Ubuntu 18.04 or 19.10 with LAMP (MySQL or Mariadb) installed...
  read -p "This script installs Zoneminder 1.34.x on Ubuntu 16.04 with LAMP (MySQL or Mariadb) installed...
  Press Enter to continue or Ctrl + c to quit" nothing
  Press Enter to continue or Ctrl + c to quit" nothing
  clear
  clear
Line 136: Line 77:
  Press Enter to continue or Ctrl + c to quit" nothing
  Press Enter to continue or Ctrl + c to quit" nothing
  clear
  clear
  read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder.  
  read -p "Next we will add two PPA repositorys, install and configure the system to run Zoneminder. You will have to press enter twice to load two PPA repositories.
  Press enter to continue" nothing
  Press enter to continue" nothing
  apt install -y software-properties-common
  apt install -y software-properties-common
  clear
  clear
add-apt-repository ppa:iconnor/zoneminder
  add-apt-repository ppa:iconnor/zoneminder-1.34
  add-apt-repository ppa:iconnor/zoneminder-1.34
apt update
  clear
  clear
  apt install -y zoneminder
  apt install -y zoneminder
Line 151: Line 94:
  service apache2 reload
  service apache2 reload
  clear
  clear
  read -p "Install complete. Open Zoneminder/Options and set the timezine. Press enter to continue" nothing
  read -p "Install complete. Open Zoneminder/Options and set timezone. Press enter to continue" nothing
  clear
  clear


Line 173: Line 116:
  ./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. Remember to open Zoneminder and set the timezone under options.
 
Good Luck!
 
 
===Zoneminder 1.34.x on Ubuntu Server 14.04===
 
Note: While this install seems to work, 14.04 is old and you will have a better system with 18.04.
 
Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server
 
Log in then become root:
 
sudo su
 
Add the following two Repositories (if you get an error run: apt-get install software-properties-common)
 
add-apt-repository ppa:iconnor/zoneminder
add-apt-repository ppa:iconnor/zoneminder-1.34
 
Update Sources
 
apt-get update
 
Install Zoneminder
 
apt-get install zoneminder
 
Add delay to allow MySQL to start before Zoneminder
 
nano /etc/init.d/zoneminder
 
Add sleep 15 after the existing "start() {" as shown:
 
start() {
      sleep 15
      echo -n "Starting $prog: "
 
Ctrl+o Enter to save
 
CTRL+x to exit
 
 
Create a new user
 
adduser www-data video
 
Enable CGI, Zoneminder and rewrite configuration in Apache.
 
a2enmod cgi
 
a2enconf zoneminder
 
a2enmod rewrite
 
Start Zoneminder if needed (If you get an error Zoneminder is likely running already)
 
service zoneminder start
 
Restart Apache
 
service apache2 reload


Good Luck!
Open Zoneminder and set timezone under Options

Revision as of 15:08, 18 January 2020

Note: the same install procedure applies for server or desktop.


Install Zoneminder 1.34.x on Ubuntu 18.04 or 19.10 with shell script

This will install Zoneminder 1.34.x by using a shell script with one basic command (how easy is that!).

You will need a Ubuntu 18.04 or 19.10 install with LAMP (Apache, Mariadb and PHP) installed desktop or server. As an alternate you may use MySQL in lieu of MySQL. Google is your friend if you need instructions for setting up a LAMP server.

Shell script file contents:

#!/bin/sh
clear
read -p "This script installs Zoneminder 1.34.x on Ubuntu 18.04 or 19.10 with LAMP (MySQL or Mariadb) installed...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "You must be logged in as root using sudo su ...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder. 
Press enter to continue" nothing
apt install -y software-properties-common
clear
add-apt-repository ppa:iconnor/zoneminder-1.34
clear
apt install -y zoneminder
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 reload
clear
read -p "Install complete. Open Zoneminder/Options and set the timezine. 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. The timezone is now set in Zoneminder/Options.

Good Luck!

Install Zoneminder 1.34.x on Ubuntu 16.04 with shell script

This will install Zoneminder by using a shell script with one basic command (how easy is that!).

You will need a Ubuntu 16.04 install with LAMP (Apache, MySQL and PHP) installed desktop or server. As an alternate you may use Mariadb in lieu of MySQL

Shell script file contents:

#!/bin/sh
clear
read -p "This script installs Zoneminder 1.34.x on Ubuntu 16.04 with LAMP (MySQL or Mariadb) installed...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "You must be logged in as root using sudo su ...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "Next we will add two PPA repositorys, install and configure the system to run Zoneminder. You will have to press enter twice to load two PPA repositories.
Press enter to continue" nothing
apt install -y software-properties-common
clear
add-apt-repository ppa:iconnor/zoneminder
add-apt-repository ppa:iconnor/zoneminder-1.34
apt update
clear
apt install -y zoneminder
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 reload
clear
read -p "Install complete. Open Zoneminder/Options and set 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. Remember to open Zoneminder and set the timezone under options.

Good Luck!


Zoneminder 1.34.x on Ubuntu Server 14.04

Note: While this install seems to work, 14.04 is old and you will have a better system with 18.04.

Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server

Log in then become root:

sudo su

Add the following two Repositories (if you get an error run: apt-get install software-properties-common)

add-apt-repository ppa:iconnor/zoneminder
add-apt-repository ppa:iconnor/zoneminder-1.34

Update Sources

apt-get update

Install Zoneminder

apt-get install zoneminder

Add delay to allow MySQL to start before Zoneminder

nano /etc/init.d/zoneminder

Add sleep 15 after the existing "start() {" as shown:

start() {
     sleep 15
     echo -n "Starting $prog: "

Ctrl+o Enter to save

CTRL+x to exit


Create a new user

adduser www-data video

Enable CGI, Zoneminder and rewrite configuration in Apache.

a2enmod cgi
a2enconf zoneminder
a2enmod rewrite

Start Zoneminder if needed (If you get an error Zoneminder is likely running already)

service zoneminder start

Restart Apache

service apache2 reload

Open Zoneminder and set timezone under Options