What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Forum for questions and support relating to the 1.31.x releases only.
Locked
DannyA
Posts: 3
Joined: Sat Mar 03, 2018 6:05 pm

What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by DannyA »

When I read around there are supposed to be repos and dockerfiles, but the waters are very muddy. Can someone provide instructions, provide a link or point me in the right direction?

Tyvm
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by bbunge »

Use the WIKI instructions for ZM 1.30.4.

See: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

There are a couple of steps in there that are done by the iconnor install. I just installed 1.31.1 from the PPA master and I have a working system. You do not need to do the "Important Final Step."

to get 1.31.1 add the PPA with : add-apt-repository ppa:iconnor/zoneminder-master

for Zoneminder with StorageAreas use: add-apt-repository ppa:iconnor/zoneminder-storageareas

Oh, stick with Ubuntu 16.04. You can have problems with 17.10 and 18.04 is not ready for prime time yet.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by rockedge »

the fastest and successful way I have had installing ZoneMinder 1.30.4 was using this install script: zm_install script on a fresh install of XenialDog which is a Ubuntu 16.04 based distro. Also will work on Ubuntu 16.04 itself I would guess.

view the script: https://wiki.zoneminder.com/Shell_script_zm_install
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by bbunge »

rockedge wrote: Sat Mar 03, 2018 7:28 pm the fastest and successful way I have had installing ZoneMinder 1.30.4 was using this install script: zm_install script on a fresh install of XenialDog which is a Ubuntu 16.04 based distro. Also will work on Ubuntu 16.04 itself I would guess.

view the script: https://wiki.zoneminder.com/Shell_script_zm_install
The WIKI also has a shell script: https://wiki.zoneminder.com/Ubuntu_Serv ... ell_script

But both are for 1.30.4 and the OP wants 1.31.x

Dueling install procedures... I like it! Variety is the spice of life!!!
DannyA
Posts: 3
Joined: Sat Mar 03, 2018 6:05 pm

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by DannyA »

I see master is 31, that makes sense, thanks.

I'll be trying 17.10 as rolling back is a bit annoying, we'll see how that goes.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by bbunge »

DannyA wrote: Sat Mar 03, 2018 9:20 pm I see master is 31, that makes sense, thanks.

I'll be trying 17.10 as rolling back is a bit annoying, we'll see how that goes.
Use the install procedure for Ubuntu 17.10 and do not be surprised if it does not work well. You will have to make some adjustments in the procedure. Going back to 16.04 is your best bet!
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by rockedge »

ZM with 17.10 seems to work OK except for the API...which with some fiddling and troubleshooting with some directory creations and other fixes will work...but as bbunge says...for a sure thing 16.04 is the way to go with ZM 1.30.4 and above.
I have modified the install scripts to work on Puppy Linux and it will install 1.31.+ with a small modification to the PPA line in the script on the Ubuntu versions....including 17.10.
These scripts just automate the process which one can do manually of course.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by iconnor »

Use my storageareas branch and everything will work fine, just follow the guide for 17.10.

sudo add-apt-repository ppa:iconnor/zoneminder-storageareas
sudo apt-get update
sudo apt-get install zoneminder

Isaac
DannyA
Posts: 3
Joined: Sat Mar 03, 2018 6:05 pm

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by DannyA »

iconnor wrote: Sun Mar 04, 2018 7:43 pm Use my storageareas branch and everything will work fine, just follow the guide for 17.10.

sudo add-apt-repository ppa:iconnor/zoneminder-storageareas
sudo apt-get update
sudo apt-get install zoneminder

Isaac
Hey, thanks for your reply, I'm trying this but I'm attempting to use Nginx instead of Apache and I get this error:
The cgi module is not enabled in apache2. I am enabling it using a2enmod cgi.
/var/lib/dpkg/info/zoneminder.postinst: 20: /var/lib/dpkg/info/zoneminder.postinst: a2enmod: not found
dpkg: error processing package zoneminder (--configure):
subprocess installed post-installation script returned error exit status 127
Edit:
I removed the line that caused the issue, I now get:
The cgi module is not enabled in apache2. I am enabling it using a2enmod cgi.
Please give a valid option
Usage:
zmupdate.pl -c,--check | -f,--freshen | -v<version>,--version=<version>
[-u<dbuser> -p<dbpass>]

Options:
-c, --check - Check for updated versions of ZoneMinder -f, --freshen -
Freshen the configuration in the database. Equivalent of old zmconfig.pl
-noi --migrate-events - Update database structures as per
USE_DEEP_STORAGE setting. -v<version>, --version=<version> - Force
upgrade to the current version from <version> -u<dbuser>,
--user=<dbuser> - Alternate DB user with privileges to alter DB
-p<dbpass>, --pass=<dbpass> - Password of alternate DB user with
privileges to alter DB -d<dir>,--dir=<dir> - Directory containing update
files if not in default build location -interactive - interact with the
user -nointeractive - do not interact with the user

dpkg: error processing package zoneminder (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
zoneminder
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by bbunge »

rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: What is the easiest, recommended way of installing ZM 1.31 on Ubuntu.

Post by rockedge »

I discovered the fastest way so far to install ZM 1.30.4 is by installing a fresh Puppy Linux Tahr 6.0.5 and downloading and clicking ONCE the zoneminder-1.30.4.pet package.
2 minutes later open up the browser and go to http://localhost/zm and there is a fresh totally started and running ZM

total installation of OS and ZM about 10 minutes from scratch. (minus downloading the puppy linux ISO and the ZM PET package.)
this system uses a Hiawatha 10.5 web server instead of Apache. Also installs phpmyadmin.
Locked