Difference between revisions of "Ubuntu Server 17.10 64-bit with Zoneminder 1.30.4 the easy way"

From ZoneMinder Wiki
Jump to navigationJump to search
Line 1: Line 1:
The install for Ubuntu 15.04 is the same as 14.04 so I will not post the full instructions here. Use this:
04OCT15
http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.26.5_the_easy_way You will not need to do the changes to MySQL as the 5.6 version of MySQL has the file per table option enabled.
This procedure has been updated because we've learned a few things. We used to tell you to use the 14.04 - 1.26.5 instructions.


In case you are interested in doing an upgrade (do release upgrade) to Ubuntu 15.04 be advised that you will end up with Zoneminder 1.26.5 which may not work. As of 25APR15 the only way to get a version later than 1.26.5 on Ubuntu 15.04 is to build from source (and that is not the easy way!)
 
If you use the minimum Ubuntu ISO CD, install Basic Server, OpenSSH Server, and LAMP Server (LAMP installs Apache2, PHP, and MySQL server)
 
 
There is a newer version of Zoneminder in the iconnor/zoneminder PPA.
 
Log in then become root:
 
sudo su
 
If you used the server install CD
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
 
 
Reboot server
 
CGI is not enabled in Ubuntu 15.04 by default. Enable it this way:
 
a2enmod cgi
 
Restart Apache
 
service apache2 restart
 
Install Zoneminder
 
apt-get install zoneminder
 
 
Enable Zoneminder
 
systemctl enable zoneminder.service
 
Start Zoneminder
 
systemctl start zoneminder.service
 
Check to see that Zoneminder is running
 
systemctl status zoneminder.service
 
 
Create a symbolic link
 
ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
 
 
Create a new user
 
adduser www-data video
 
Restart Apache
 
service apache2 restart
 
Install Cambozola (needed if you use Internet Explorer)
 
 
cd /usr/src && wget http://www.andywilcock.com/code/cambozola/cambozola-latest.tar.gz
 
tar -xzvf cambozola-latest.tar.gz
 
replace 936 in the following with cambozola version downloaded
 
cp cambozola-0.936/dist/cambozola.jar /usr/share/zoneminder
 
You should now be able to access the web server using https://servername
 
Optional 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

Revision as of 15:35, 4 October 2015

04OCT15 This procedure has been updated because we've learned a few things. We used to tell you to use the 14.04 - 1.26.5 instructions.


If you use the minimum Ubuntu ISO CD, install Basic Server, OpenSSH Server, and LAMP Server (LAMP installs Apache2, PHP, and MySQL server)


There is a newer version of Zoneminder in the iconnor/zoneminder PPA.

Log in then become root:

sudo su

If you used the server install CD

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


Reboot server

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

a2enmod cgi

Restart Apache

service apache2 restart

Install Zoneminder

apt-get install zoneminder


Enable Zoneminder

systemctl enable zoneminder.service

Start Zoneminder

systemctl start zoneminder.service

Check to see that Zoneminder is running

systemctl status zoneminder.service


Create a symbolic link

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


Create a new user

adduser www-data video

Restart Apache

service apache2 restart

Install Cambozola (needed if you use Internet Explorer)


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

replace 936 in the following with cambozola version downloaded

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

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

Optional 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