Difference between revisions of "Ubuntu Server 14.04 64-bit with Zoneminder 1.26.5 the easy way"

From ZoneMinder Wiki
Jump to navigationJump to search
(Created page with "Zoneminder 1.26.5-1 on Ubuntu 14.04 64 BIT and 32 BIT Install Ubuntu Server Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server (LAMP installs...")
 
Line 49: Line 49:
Add  sleep 15 as shown:
Add  sleep 15 as shown:


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


Ctrl+o Enter to save
Ctrl+o Enter to save
Line 68: Line 68:


  Alias /zm /usr/share/zoneminder
  Alias /zm /usr/share/zoneminder
 
<Directory /usr/share/zoneminder>
<Directory /usr/share/zoneminder>
  php_flag register_globals off
  php_flag register_globals off
  Options Indexes FollowSymLinks
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
  <IfModule mod_dir.c>
    DirectoryIndex index.php
    DirectoryIndex index.php
  </IfModule>
  </IfModule>
</Directory>
</Directory>


Ctrl+o Enter to save
Ctrl+o Enter to save

Revision as of 21:09, 18 April 2014

Zoneminder 1.26.5-1 on Ubuntu 14.04 64 BIT and 32 BIT


Install Ubuntu Server


Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server (LAMP installs Apache2, PHP, and MySQL server)

Log in then become root:

sudo su
apt-get update
apt-get upgrade
apt-get dist-upgrade


Optional: Set static IP address


nano /etc/network/interfaces

Make changes similar to this:

auto eth0
iface eth0 inet static
  address 192.168.1.10
  netmask 255.255.255.0
  gateway 192.168.1.1
  dns-nameservers 192.168.1.1

Note: for Ubuntu 14.04 the resolv.conf is dynamically assigned. The "dns-servers" entry in the interfaces file will set the DNS Multiple DNS server entries can be used.

Reboot server


Install Zoneminder


apt-get install zoneminder

Add delay to allow MySQL to start before Zoneminder


nano /etc/init.d/zoneminder

Add sleep 15 as shown:

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

Ctrl+o Enter to save

CTRL+x to exit

Create directory in apache2

mkdir /etc/apache2/conf.d

Create another zoneminder.conf file:

nano /etc/apache2/conf.d/zoneminder.conf

Copy this into zoneminder.conf

Alias /zm /usr/share/zoneminder
<Directory /usr/share/zoneminder>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
</Directory>

Ctrl+o Enter to save

CTRL+x to exit


Link Apache to Zoneminder


ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf

CGI is not enabled in Ubuntu 14.04 by default. Enable it this way:

a2enmod cgi

Restart Apache

/etc/init.d/apache2 force-reload 

or

 service apache2 restart

Create a new user

adduser www-data video


Install Cambozola


cd /usr/src && wget http://www.andywilcock.com/code/cambozola/cambozola-latest.tar.gz
tar -xzvf cambozola-latest.tar.gz

replace 935 with cambozola version downloaded

cp cambozola-0.935/dist/cambozola.jar /usr/share/zoneminder



You should now be able to access the web server using https://servername


NTP Daily Sync


nano /etc/cron.daily/ntpdate

Copy the following into nano

!/bin/sh ntpdate ntp.ubuntu.com

Ctrl+o Enter to save

CTRL+x to exit

chmod 755 /etc/cron.daily/ntpdate


Open Zoneminder in web browser


http://serverip/zm

Click Options

Uncheck: Check with zoneminder.com for updated versions (?) click Save

Click Images tab

check Is the (optional) cambozola java streaming client installed (?) Click Save


Reboot server to insure Zoneminder starts on boot.