Ubuntu Server 19.04 Zoneminder 1.32.3
Zoneminder 1.28.0 on Ubuntu 14.04. Also works on Ubuntu 14.10 running init.
I did this install on a 64 BIT server but it should work on 32 BIT. As of 20OCT14 I have tested this with a local USB camera and a remote h.264 camera with Ffmpeg and Libvlc.
If you install from CD install Ubuntu Server, OpenSSH Server, and LAMP Server (LAMP installs Apache2, PHP, and MySQL server)
If you use the minimum ISO CD install Basic Server, OpenSSH Server, and LAMP Server (LAMP installs Apache2, PHP, and MySQL server)
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
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
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
Add Repository
apt-get install python-software-properties add-apt-repository ppa:iconnor/zoneminder apt-get update
Install Zoneminder
apt-get install zoneminder
Note: a couple of package configurations will open up. These are to configure Nullmailer. You can just OK them and come back to configure them later.
You will need to install "extra" VLC components torun Libvlc (verified 20OCT14)
apt-get install libvlc-dev libvlccore-dev vlc
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 a directory in apache2
mkdir /etc/apache2/conf.d
Create two symbolic links
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
Create a new user
adduser www-data video
Restart Apache
/etc/init.d/apache2 force-reload
or
service apache2 restart
Note: There is a slight bug that causes the screen to not refresh when a camera is added. In a terminal edit file:
sudo nano /usr/share/zoneminder/skins/classic/js/skin.js
search for and remove line:
window.addEvent( 'domready', checkSize);
(should be line 89)
add the line to the end of the file as shown below:
{ windowToFront(); } window.addEvent( 'domready', checkSize);
Save the edited file (CTRL+o then CTRL+x)
Restart Zoneminder
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 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
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