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

From ZoneMinder Wiki
Jump to navigationJump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''This readme file is for the Zoneminder 1.30.0/Lubuntu 16.04 Live DVD/USB system.'''
==Install Zoneminder 1.38.x on Ubuntu Supported versions with shell script==


There is a 64 BIT version of the system. File names:
This will install Zoneminder 1.38.x by using a shell script with one basic command (how easy is that!).


live-cd.iso
You will need a Ubuntu install with LAMP (Apache, MySQL or Mariadb and PHP) installed desktop or server.  
live-cd-readme.txt


Download the torrent file from: https://drive.google.com/open?id=0BwH00-h4hi0LbVhyeEh5dGZ3T00
Timezone: it is recommended you set your specific timesone with:


Direct download the .iso file: https://drive.google.com/open?id=0BwH00-h4hi0LZkNmZ2xkSjlyS0U
sudo timedatectl set-timezone America/New_York


You can burn the files to DVD, start a PC from the DVD and run/install the system.
Of course use your timezone in place of America/New_York.


You can also make a bootable USB. I recommend using Unetbootin (http://unetbootin.github.io/). This is what I used to
make a bootable USB. Other programs may work but have not been tested.


When you boot the system Lubuntu will open to the desktop. Should a login page come up enter the user enter "ubuntu" and leave the password blank.
Google is your friend if you need instructions for setting up a LAMP server. However, a simple LAMP can be installed with these commands:
You must log into Lubuntu to run the installer! This version contains Network Manager to manage network connections.


Apache, Mariadb Server and Zoneminder 1.30.0 will run on startup.
apt install apache2 php mariadb-server php-mysql libapache2-mod-php


To access Zoneminder open Firefox and enter http://localhost/zm
Shell script file contents:
You can also access Zoneminder from another PC using the IP-Address of the system: http://IP-Address/zm


If your install does not get the DNS servers via DHCP it is likely that a symbolic link is missing. You can set a static IP address with nameservers or create the symbolic link with this entry:
#!/bin/sh
clear
read -p "This script installs ZoneMinder 1.38.x on Ubuntu 24.04, 22.04, 20.04 or 18.04 with LAMP (MySQL or Mariadb) installed...
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.38
apt update
clear
apt install -y zoneminder --install-recommends
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
clear
read -p "Install complete. Open Zoneminder/Options and set the timezone. Press enter to continue" nothing
clear


sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
Copy the contents of the script, open a terminal and run:


Zoneminder is configured with one monitor set to a public camera and, if the system has internet access, should be viewable. You may reconfigure this camera to one of your own.
nano zm-install


This system contains an installer which you can use to install this fully functioning Lubuntu/Zoneminder system to your hard drive. When installed to your hard drive you can access Zoneminder using Firefox or a web browser from another PC.
Paste the contents of the script into Nano
I've had an issue where the installer will crash and not finish the install. A work around is to run the installer with root privileges from a terminal.


Open a terminal - System Tools - LXTerminal and enter
Then:


sudo sh -c 'ubiquity gtk_ui'
Ctrl + o
Ctrl + x


and press Enter. Do not check any options when the 'Preparing to install Ubuntu' screen appears.
Next run:


Time Zone: you may have to edit the php.ini to correct the time zone entry. See the WIKI for instructions on editing this file.
chmod 755 zm-install


nano /etc/php/7.0/apache2/php.ini
Start the script by entering:


Updates: As this is a minimal Lubuntu install the software updater is not provided. To update the installation open a terminal and run:
./zm-install


sudo apt update
Follow the prompts. Things are pretty simple. The timezone is now set in Zoneminder/Options.
sudo apt upgrade
sudo apt dist-upgrade


 
Good Luck!
About the system:
 
Install was from Ubuntu 16.04 Minimal CD with Lubuntu Minimal, LAMP with Mariadb Server and OpenSSL.
 
The root password for MySQL is "Passwordzm" Recommend you change the password after you install to hard drive:
(http://www.liquidweb.com/kb/change-a-password-for-mysql-on-linux-via-command-line/)
 
Zoneminder was installed using: https://wiki.zoneminder.com/Ubuntu_Server_16.04_64-bit_with_Zoneminder_1.30.0_the_easy_way
 
Lubuntu Minimal Desktop was installed with Forefox and network manager added afterwards.

Latest revision as of 11:13, 2 February 2026

Install Zoneminder 1.38.x on Ubuntu Supported versions with shell script

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

You will need a Ubuntu install with LAMP (Apache, MySQL or Mariadb and PHP) installed desktop or server.

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

sudo timedatectl set-timezone America/New_York

Of course use your timezone in place of America/New_York.


Google is your friend if you need instructions for setting up a LAMP server. However, a simple LAMP can be installed with these commands:

apt install apache2 php mariadb-server php-mysql libapache2-mod-php

Shell script file contents:

#!/bin/sh
clear
read -p "This script installs ZoneMinder 1.38.x on Ubuntu 24.04, 22.04, 20.04 or 18.04 with LAMP (MySQL or Mariadb) installed...
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.38
apt update
clear
apt install -y zoneminder --install-recommends
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
clear
read -p "Install complete. Open Zoneminder/Options 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. The timezone is now set in Zoneminder/Options.

Good Luck!