Install Zoneminder with shell script on Ubuntu 16.04

Forum for questions and support relating to the 1.30.x releases only.
Locked
bbunge
Posts: 2976
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Install Zoneminder with shell script on Ubuntu 16.04

Post by bbunge »

I have been thinking about doing a shell script to install Zoneminder with one basic command.

The link to the file is:

https://drive.google.com/open?id=0BwH00 ... 0g2ZVFmc2M

I have tested this on budgie-remix 16.04-1 desktop x64 and Ubuntu 16.04-1 server x64. This shell script should work on and Ubuntu 16.04 desktop (Mint, Lubuntu et. al.).
You do not have to have LAMP, Apache or MySQL installed to run this. The script will install everything Zoneminder needs to function!

WARNING! This script installs Mariadb Server and Client and will replace MySQL if it is installed!!!

Copy the file, zm_install, to your home directory.
Open a terminal and run chmod 755 zm_install
Start the script by entering ./zm_install
Follow the prompts. Things are pretty simple till you get to adding the timezone to PHP then you will need to know how to operate Nano. As a help you can see how it is done on the WIKI page:
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

I did not include the fix for the API in this script but it is an edit to apache2.conf which is shown on the above WIKI page

WARNING! This script installs Mariadb Server and Client and will replace MySQL if it is installed!!!

Good Luck!

While this script worked for me I can't be responsible if you loose data when you run this. It is intended for a new install not an upgrade.
Locked