Updates -
06/01/2011 - Added the pieces for the Ubuntu 11.04 update / patches - now verbiage includes both Ubuntu 10.X and 11.04 builds.
08/15/2011 - Added Webminstats for Zoneminder - Thank-you Homeseer user Nightcrawler (Alco)!!
12/07/2011 - Added 24 hour video alarm script - Thank-you Homeseer user Nightcrawler (Alco)!!
12/30/2011 - Updated "mootools" adjustments and fixes verbiage (sym link removal and updates). Single versus columnar montage view issue addressed.
01/01/2012 - Updated attached starup text labeled zm2 (01012012).txt uncommenting two lines. Not creating a zm.pid issue addressed.
01/12/2012 - Zoneminder Memory.pm bug in 1.24.4 - Thank-you Homeseer user Wollo!
02/03/2012 - Updated; such that verbiage includes putting in a SQL password when requested.
02/07/2012 - "chown www-data var/run/zm", should be "chown www-data /var/run/zm"
10/01/2012 - Zoneminder X-10 Control added
08/01/2013 - Current running still with 8 port capture card and ~ 8-12 IP SD and HD connections.
08/18/2013 - changed the OP post to include X10. This will allow HS events recordings via XAP or X10.
04/18/2014 - Upgrading Zoneminder via PPA
DVR/NVR control and alarm / event playback functionality into HSTouch.
08/01/2013 - Cameras used today -
1 - Optex combo outdoor PIR and analog camera model WonderTrack DC-3000CP - modded with 3.6mm newer camera boards - multiple
2 - generic 3.6mm color analog 700TVL multiple cams
3 - Panasonic BL-C10A IP SD
4 - Foscam FI8918W IP SD
5 - Trendnet TV-IP110W IP SD
6 - Schlage WCE100 / NorthQ IP SD
7 - Ubiquiti Aircam IP HD - multiple
8 - Grandstream IP GXV3672-HD
9 - DIY Grandstream/Speco IP HD Dome 3.6mm - multiple
03/13/2014
DST time changes fix on the Grandstream and Aircam
Noticed that the default date change (spring ahead) on the Grandstream cameras is incorrect.
So if you change it as so; it will automatically change.
You can change it on the Ubiquti Aircam such that it automatically changes by editing the /etc/TZ file to read the same by SSHing to the Aircam and saving TZ change. (there is no menu option for this)
This is not documented and Ubiquiti support answer is not to use the clock on the Aircam as a reference but rather the Ubiquti DVR software.
Tangent note: Noticed the same issue with the Ubiquiti AP. (No GUI item for autochanging time and a manual TZ thing needs to be done).
You can't really see the local time (just GMT on main page) in any of the pages; you have to look at the logs for the time.
MTZ = Mountain Time Zone or same as MST/MDT
Auto time zone change format for self defined timezone entry under system tab.
Look here for your timezone. http://famschmid.net/timezones.html
Look here for your timezone date change: http://www.timeandda...e/dst/2014.html
Example: CST+6CDT+5,M3.1.0,M11.1.0
CST = Central Standard Time + 6 (GMT)
CDT = Central Daylight Time + 5 (GMT)
M3.1.0 = 3rd Month, 1st Sunday
M11.1.0= 11th Month, 1st Sunday
Note:
I've been changing the DIY a bit. I am currently running Zoneminder 1.24.2 on Ubuntu 11.04 server. Its been pretty stable.
I am also testing Zoneminder 1.24.4 on Ubuntu 11.04 32bit Server and may be testing it later on Ubuntu 11.04 64bit server.
Meanwhile the as written DIY works well with Ubuntu 11.04 or 10.10 server as written.
I've built the HW "production" version and built/rebuilt a VM version. The "production" ZM is already running. with an 8-port DVR card.
The two currently tested machines (aside from the VM) have been a Shuttle Atom D510 with 2 Gb of memory and a Zotac core duo with 4Gb of memory.
Noticed that the install is totally different when doing it as a VM versus doing it on the HW.
The DVR card setup is the same and typically ZM will recognize what you install maybe 70% of the time; the other 30% you have to do some manual "adjustments".
The most current version of Ubuntu Server 11.04 can be downloaded here:
http://www.ubuntu.com/download/server/download
With this installation of Ubuntu and the only option you will be installing from the installation CD with be OpenSSH.
During the installation you will be asked to create a login name and password. Do so.
After you login the first time do the following to get root access:
Reboot and log back in as root. I would recommend that you set up a static IP on your new server; we'll do this after we install webmin.
For now type "ifconfig eth0" at the command line prompt.
You will see something like the following:
The "inet addr:XXX" is your IP address; write it down for the next step.
Validate the install of OpenSSH with a program called Putty. Install it on a PC you typically use on your home network.
You can download it here:
http://www.chiark.greenend.org.uk/~s.../download.html
Using Putty log in to your ZM box via SSH from the PC you installed Putty on. Test it once by logging in as root and typing "reboot" and log in a second time as root and type "halt" - your ZM box should shut down. Power the ZM box back up.
Another useful application you can install on your PC is WinSCP. You can download it here:
http://winscp.net/eng/docs/faq
Give it a test run by configuring the IP of your ZM server and login via SSH using it.
Install Webmin on your Ubuntu Server
Webmin allows you to remotely manage your ZM box via a nice web gui.
Read about using it here:
http://www.webmin.com/
Log in to your new ZM via Putty remotely. Start up WinSCP on the same computer.
With WinSCP edit "/etc/apt/sources.list" and put the following at the bottom of the list you see. If you don't want to use WinSCP use Nano at the command prompt.
You should also fetch and install authors GPG key with which the repository is signed, with the commands via your putty login :
Install Webmin with the following commands:
Takes about 15 minutes or so to install depending on your ISP connection. All dependencies should be resolved automatically.
After installation is complete reboot your ZM box. Webmin should start on its own. Check to make sure its running via its browser interface by logging into it via your favorite web browser.
Log in via root and create yourself a user ID. Set yourself up with full access on Webmin. Log out and log back in as the user you just created.
Go to the Networking tab on the left hand side, Network Configuration and Network Interfaces. Configure your static IP address and set it up to be activated on boot.
Go to the Networking tab on the left hand side, Network Configuration and Routing and Gateways. Configure your Gateway address.
Go to the Networking tab on the left hand side, Network Configuration and Hostname and DNS Client Configure your Hostname and DNS Client.
Read the verbiage under the tabs in the Network Configuration section. Log out and log back into your ZM box with the new static IP address via Webmin.
You can also edit the network configuration files manually with nano at a command prompt on your ZM console. Read here to do that.
http://www.yolinux.com/TUTORIALS/Lin...ml#CONFIGFILES
Log out of Webmin. Open an SSH session with Putty to your Zoneminder box.
Checking Time
Type "date" at a prompt while logged in via SSH. You should have both proper date and time.
Installation of Zoneminder
Someone wrote a script to install Zoneminder which works pretty well.
If you are installing on a server with a generic 8-port DVR Kodicom 8800 or "similiar" then do the following. (Google for picture of the card).
============================================================ ==========================================
Generic 8 Port video card installation
You can skip this step if you are just doing IP Cameras.
Install bttv driver
Reference:
http://www.linuxtv.org/wiki/index.ph...ce_Information
copy and paste the following:
Test DVR card by rebooting and typing
If it works you will see:
============================================================ ==========================================
Running the ZM installation script
Open attached pada.sh.txt and clip an paste it with nano via command line or with WinSCP. (whatever you feel more comfortable with).
Make it executable.
Install Zoneminder:
It takes a bit to install it; so take a break and walk away for a time.
BTW - one of the most common issues I've seen with ZM was relating to kernal memory configuration. This script takes care of it.
To see what was automatically configured for kernel.shmmax and kernel.shmmall; check the output of the last part of the script. Here is mine for the VM.
Enter a password for SQL when requested. (any password will do)
Now lets create the following user:
reboot box
Login onto Zoneminder by going to:
I've attached a browser image of what ZM looks like not configured and another one fully populated.
Setup some basics on your Zoneminder Server
We need to make a couple of changes to ZM via the Options menu / Path tab.
Check USE_DEEP_STORAGE. Click Save button.
Got to Options / Images tab. Default JPEG_FILE_QUALITY is 70 , change to 100.
Delete everything at FFMPEG_OUTPUT_OPTIONS and replace with:
Delete everything at FFMPEG_FORMATS and replace with:
When you are done; hit the save key.
Stop Zoneminder hitting the "running" option and restart it. (you can also do this via command line by typing "ZM stop".
Zoneminder Tweaks
Tweak 1 - It appears that Zoneminder is starting too fast so we will put a short delay in the startup script of Zoneminder using Webmin.
Easiest way to do this is with Webmin. Just login to Webmin, go to the system tab, Bootup and Shutdown tab. You'll see Zoneminder on the bottom of the list and it should show that it gets started with the server. Double click on it and you will see the "Action Script". Right before the line that states "zmfix -a" insert a line.
Save and reboot ZM box
Tweak 2 - This tweak is relating to an entity called
. Historically a directory was created in the
which would store this PID. For some reason the directory isn't being created (might be a rights/owner/makefile/perl thing) and may be a bug in current version of ZM.
So basically what we need to do is create the directory and then check to make sure that the
exists in said directory. This tweak is necessary for the function of ZMXAP.
Here:
http://www.zoneminder.com/index.php?...=10&tt_news=49
Its an easy add to the startup of ZM file and you can do it via command line (nano), Webmin or WinSCP. Once startup is edited reboot and check to make sure its there.
Before modifying startup script; lets look at what I am writing about.
Check the /var/run directory. If you have a zm directory there you are ok. If not; stop ZM. "mkdir /var/run/zm", "chown www-data /var/run/zm", "/etc/init.d/zm restart". "-l /var/run/zm"
Here you will then see the zm.pid under zm. Shut down ZM and reboot computer. You will see it disappear.
Used the attached zm startup file. Note that the whole start up file is attached. Its easier to use winSCP and look at the /etc/init.d directory. You'll see a ZM and a Zoneminder file. The ZM is just a symbolic link. Edit the zoneminder file with a clip and paste. Test it by stopping ZM and restarting the box. If you look in the /var/run/zm directory you'll see the PID show up when running ZM.
Tweak 4 - Disabling Nullmailer
If you are not using Nullmailer and you do not want to see the Nullmailer logging entries; disable it. The easiest way to do this is with Webmin, System, Bootup and Shutdown, Service Name, Nullmailer, "Start at boot time?" , No.
You will now have a working ZM box base.
Installation of ZMXAP for your Zoneminder Server
Download most current version (.9) of ZMXAP from here: http://www.limings.net/xap/zmxap/
Its recommended that you expand it here: /usr/local/zmxap. You can do this via command line or using WinSCP.
For a bit configure the options in ZMXAP to give you some detail in the XAP logging (don't forget to set the option of no local hub).
Read the rest of the wiki mentioned above to configure the rest of your ZM setup such that we can continue to the next step.
Lets test it. Make sure that ZM is running. We are going to open two SSH sessions to ZM.
In the first one lets run ZMXAP by typing
In the second SSH session type:
The second session will show you XAP traffic whether its sourced from your ZM box or on your network.
On the same PC download XAP viewer and watch the traffic for a bit.
You can download XAP viewer from here:
http://www.xapautomation.org/index.php?title=xFx_Viewer
With all of the above you should see ZM XAP traffic. Main and all cams.
You have just validated the function of ZM XAP. Create a startup script such that it starts when you reboot your ZM box. Do this with Webmin.
Just put the following line in a command and give it a name:
Save it. Go back and look. You should see that Webmin automatically created a startup script for you.
Reference:
http://www.zoneminder.com/wiki/index.php/Zmxap
Checking Video streams and IRQ's.
Refer to attached PDF
Zoneminder Mobile View
I'm using W6.X MS Mobile with Opera as browser to the following link for the Mobile link for ZM.
http://www.xxx.yyy.zzz/zm/index.php?skin=mobile
Basically after initial setup your Zoneminder will be maintenance free. Never breaks. The install ISO will install an update application reminder. You have the choice of having it done automatically, just notifying you of the update or no notifications. These will show up on the main screen of Webmin. Just clicking on these update lines will guide you thru the update process. I am trying to keep the main post brief; but will get granular if requested. Depending on the section I can either add to this post or attach a PDF or JPG. Consider this a kind of live document/post.
Zoneminder 1.24.2 ZM XAP wireless/wired IPCamera/analogue gremlins
- ZMXAP will start to beacon non stop increasing CPU utilization thinking ZM is not running unless you add an ancillary from previous versions ZM PID in the start up of Zoneminder 1.24.2.
- ZMXAP will start to beacon non stop increasing CPU utilization if for whatever reason the wireless IPCamera(s) becomes "disconnected" from Zoneminder 1.24.2.
Proposed maybe fix will be to "relax" the timeouts in ZMXAP - maybe modifying the perl script - guessing right now
Zoneminder 1.24.2 on Ubuntu 11.04 gremlin differences and Fixes
Tweak 5 - MooTools
- Mootools has been upgraded on the Ubuntu 11.04 such that the "ancillary" sym links do not work and causing an issue relating to the "Montage" view of Zoneminder. The multiple camera view just appears in one column only; the grid view doesn't work properly. I am not sure what else it causes. This is from the ancillary Mootools Version 1.2.4 to the newer Mootools Version 1.2.5
A - remove the ancillary symbolic link:
B- add the new symbolic link:
will show you all of the symbolic links in the directory.
C - Shut down ZM and Apache and reboot.
Log back in and check your montage view.
test the grid montage view in Zoneminder 1.24.2 to validate "fix"
April 18, 2014 - Upgrading Zoneminder via PPA
https://launchpad.net/~iconnor/+archive/zoneminder
This updated my stuff to Version 1.27 of Zoneminder
06/01/2011 - Added the pieces for the Ubuntu 11.04 update / patches - now verbiage includes both Ubuntu 10.X and 11.04 builds.
08/15/2011 - Added Webminstats for Zoneminder - Thank-you Homeseer user Nightcrawler (Alco)!!
12/07/2011 - Added 24 hour video alarm script - Thank-you Homeseer user Nightcrawler (Alco)!!
12/30/2011 - Updated "mootools" adjustments and fixes verbiage (sym link removal and updates). Single versus columnar montage view issue addressed.
01/01/2012 - Updated attached starup text labeled zm2 (01012012).txt uncommenting two lines. Not creating a zm.pid issue addressed.
01/12/2012 - Zoneminder Memory.pm bug in 1.24.4 - Thank-you Homeseer user Wollo!
02/03/2012 - Updated; such that verbiage includes putting in a SQL password when requested.
02/07/2012 - "chown www-data var/run/zm", should be "chown www-data /var/run/zm"
10/01/2012 - Zoneminder X-10 Control added
08/01/2013 - Current running still with 8 port capture card and ~ 8-12 IP SD and HD connections.
08/18/2013 - changed the OP post to include X10. This will allow HS events recordings via XAP or X10.
04/18/2014 - Upgrading Zoneminder via PPA
DVR/NVR control and alarm / event playback functionality into HSTouch.
08/01/2013 - Cameras used today -
1 - Optex combo outdoor PIR and analog camera model WonderTrack DC-3000CP - modded with 3.6mm newer camera boards - multiple
2 - generic 3.6mm color analog 700TVL multiple cams
3 - Panasonic BL-C10A IP SD
4 - Foscam FI8918W IP SD
5 - Trendnet TV-IP110W IP SD
6 - Schlage WCE100 / NorthQ IP SD
7 - Ubiquiti Aircam IP HD - multiple
8 - Grandstream IP GXV3672-HD
9 - DIY Grandstream/Speco IP HD Dome 3.6mm - multiple
03/13/2014
DST time changes fix on the Grandstream and Aircam
Noticed that the default date change (spring ahead) on the Grandstream cameras is incorrect.
So if you change it as so; it will automatically change.
You can change it on the Ubiquti Aircam such that it automatically changes by editing the /etc/TZ file to read the same by SSHing to the Aircam and saving TZ change. (there is no menu option for this)
This is not documented and Ubiquiti support answer is not to use the clock on the Aircam as a reference but rather the Ubiquti DVR software.
Tangent note: Noticed the same issue with the Ubiquiti AP. (No GUI item for autochanging time and a manual TZ thing needs to be done).
You can't really see the local time (just GMT on main page) in any of the pages; you have to look at the logs for the time.
MTZ = Mountain Time Zone or same as MST/MDT
Auto time zone change format for self defined timezone entry under system tab.
Look here for your timezone. http://famschmid.net/timezones.html
Look here for your timezone date change: http://www.timeandda...e/dst/2014.html
Example: CST+6CDT+5,M3.1.0,M11.1.0
CST = Central Standard Time + 6 (GMT)
CDT = Central Daylight Time + 5 (GMT)
M3.1.0 = 3rd Month, 1st Sunday
M11.1.0= 11th Month, 1st Sunday
Note:
I've been changing the DIY a bit. I am currently running Zoneminder 1.24.2 on Ubuntu 11.04 server. Its been pretty stable.
I am also testing Zoneminder 1.24.4 on Ubuntu 11.04 32bit Server and may be testing it later on Ubuntu 11.04 64bit server.
Meanwhile the as written DIY works well with Ubuntu 11.04 or 10.10 server as written.
I've built the HW "production" version and built/rebuilt a VM version. The "production" ZM is already running. with an 8-port DVR card.
The two currently tested machines (aside from the VM) have been a Shuttle Atom D510 with 2 Gb of memory and a Zotac core duo with 4Gb of memory.
Noticed that the install is totally different when doing it as a VM versus doing it on the HW.
The DVR card setup is the same and typically ZM will recognize what you install maybe 70% of the time; the other 30% you have to do some manual "adjustments".
The most current version of Ubuntu Server 11.04 can be downloaded here:
http://www.ubuntu.com/download/server/download
With this installation of Ubuntu and the only option you will be installing from the installation CD with be OpenSSH.
During the installation you will be asked to create a login name and password. Do so.
After you login the first time do the following to get root access:
sudo passwd root
For now type "ifconfig eth0" at the command line prompt.
You will see something like the following:
eth0 Link encap:Ethernet HWaddr 00:0F:20:CF:8B:42
inet addr:217.149.127.10 Bcast:217.149.127.63 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2472694671 errors:1 dropped:0 overruns:0 frame:0
TX packets:44641779 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1761467179 (1679.8 Mb) TX bytes:2870928587 (2737.9 Mb)
Interrupt:28
inet addr:217.149.127.10 Bcast:217.149.127.63 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2472694671 errors:1 dropped:0 overruns:0 frame:0
TX packets:44641779 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1761467179 (1679.8 Mb) TX bytes:2870928587 (2737.9 Mb)
Interrupt:28
Validate the install of OpenSSH with a program called Putty. Install it on a PC you typically use on your home network.
You can download it here:
http://www.chiark.greenend.org.uk/~s.../download.html
Using Putty log in to your ZM box via SSH from the PC you installed Putty on. Test it once by logging in as root and typing "reboot" and log in a second time as root and type "halt" - your ZM box should shut down. Power the ZM box back up.
Another useful application you can install on your PC is WinSCP. You can download it here:
http://winscp.net/eng/docs/faq
Give it a test run by configuring the IP of your ZM server and login via SSH using it.
Install Webmin on your Ubuntu Server
Webmin allows you to remotely manage your ZM box via a nice web gui.
Read about using it here:
http://www.webmin.com/
Log in to your new ZM via Putty remotely. Start up WinSCP on the same computer.
With WinSCP edit "/etc/apt/sources.list" and put the following at the bottom of the list you see. If you don't want to use WinSCP use Nano at the command prompt.
Code:
deb http://download.webmin.com/download/repository sarge contrib deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
Code:
cd /root wget http://www.webmin.com/jcameron-key.asc apt-key add jcameron-key.asc
apt-get update
apt-get install webmin
apt-get install webmin
After installation is complete reboot your ZM box. Webmin should start on its own. Check to make sure its running via its browser interface by logging into it via your favorite web browser.
Code:
https://www.xxx.yyy.zzz:10000
Go to the Networking tab on the left hand side, Network Configuration and Network Interfaces. Configure your static IP address and set it up to be activated on boot.
Go to the Networking tab on the left hand side, Network Configuration and Routing and Gateways. Configure your Gateway address.
Go to the Networking tab on the left hand side, Network Configuration and Hostname and DNS Client Configure your Hostname and DNS Client.
Read the verbiage under the tabs in the Network Configuration section. Log out and log back into your ZM box with the new static IP address via Webmin.
You can also edit the network configuration files manually with nano at a command prompt on your ZM console. Read here to do that.
http://www.yolinux.com/TUTORIALS/Lin...ml#CONFIGFILES
Log out of Webmin. Open an SSH session with Putty to your Zoneminder box.
Checking Time
Type "date" at a prompt while logged in via SSH. You should have both proper date and time.
Installation of Zoneminder
Someone wrote a script to install Zoneminder which works pretty well.
If you are installing on a server with a generic 8-port DVR Kodicom 8800 or "similiar" then do the following. (Google for picture of the card).
============================================================ ==========================================
Generic 8 Port video card installation
You can skip this step if you are just doing IP Cameras.
Install bttv driver
Reference:
http://www.linuxtv.org/wiki/index.ph...ce_Information
nano /etc/modprobe.d/bttv.conf
options i2c-algo-bit bit_test=1
options bttv gbuffers=32 card=102,102,102,102,102,102,102,102 radio=0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0
options bttv gbuffers=32 card=102,102,102,102,102,102,102,102 radio=0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0
ls /dev/video*
/dev/video0 /dev/video2 /dev/video4 /dev/video6 /dev/video1 /dev/video3 /dev/video5 /dev/video7
Running the ZM installation script
Open attached pada.sh.txt and clip an paste it with nano via command line or with WinSCP. (whatever you feel more comfortable with).
cd /tmp
nano pada.sh
nano pada.sh
chmod 744 pada.sh
./pada.sh
BTW - one of the most common issues I've seen with ZM was relating to kernal memory configuration. This script takes care of it.
To see what was automatically configured for kernel.shmmax and kernel.shmmall; check the output of the last part of the script. Here is mine for the VM.
Enter a password for SQL when requested. (any password will do)
Setting up bc (1.06.95-2) ...
-- Total memory = 520691712 B = 496 MB
-- Page size = 4096 B
-- Current kernel.shmmax = 33554432 B = 32 MB
-- Current kernel.shmall = 2097152 pages
-- Recommended: kernel.shmmax = 468622540 B = 446 MB
-- Recommended: kernel.shmmall = 127122 pages
-- Adding: kernel.shmmax to /etc/sysctl.conf
-- Adding: kernel.shmall to /etc/sysctl.conf
-- Using: new sysctl values
kernel.shmmax = 468622540
kernel.shmall = 127122
--- Done.
root@ubuntu:/tmp#
-- Total memory = 520691712 B = 496 MB
-- Page size = 4096 B
-- Current kernel.shmmax = 33554432 B = 32 MB
-- Current kernel.shmall = 2097152 pages
-- Recommended: kernel.shmmax = 468622540 B = 446 MB
-- Recommended: kernel.shmmall = 127122 pages
-- Adding: kernel.shmmax to /etc/sysctl.conf
-- Adding: kernel.shmall to /etc/sysctl.conf
-- Using: new sysctl values
kernel.shmmax = 468622540
kernel.shmall = 127122
--- Done.
root@ubuntu:/tmp#
adduser www-data video
root@ubuntu:/tmp# adduser www-data video
Adding user `www-data' to group `video' ...
Adding user www-data to group video
Done.
root@ubuntu:/tmp#
Adding user `www-data' to group `video' ...
Adding user www-data to group video
Done.
root@ubuntu:/tmp#
reboot
Code:
[url]http://www.xxx.yyy.zzz/zm[/url]
Setup some basics on your Zoneminder Server
We need to make a couple of changes to ZM via the Options menu / Path tab.
Check USE_DEEP_STORAGE. Click Save button.
Got to Options / Images tab. Default JPEG_FILE_QUALITY is 70 , change to 100.
Delete everything at FFMPEG_OUTPUT_OPTIONS and replace with:
-f mp4 -vcodec libx264 -vpre default -an -threads 0
mp4 mpg mpeg wmv asf avi* mov swf 3gp**
Stop Zoneminder hitting the "running" option and restart it. (you can also do this via command line by typing "ZM stop".
Zoneminder Tweaks
Tweak 1 - It appears that Zoneminder is starting too fast so we will put a short delay in the startup script of Zoneminder using Webmin.
Easiest way to do this is with Webmin. Just login to Webmin, go to the system tab, Bootup and Shutdown tab. You'll see Zoneminder on the bottom of the list and it should show that it gets started with the server. Double click on it and you will see the "Action Script". Right before the line that states "zmfix -a" insert a line.
sleep 15
Tweak 2 - This tweak is relating to an entity called
zm.pid
/var/run/zm
So basically what we need to do is create the directory and then check to make sure that the
zm.pid
o FEATURE � A
file is now placed in
when ZoneMinder is running, and removed when stopped. This can be used by other elements to check the status of ZoneMinder. The pid in the file is that of the master zmdc.pl server instance.
zm.pid
/var/run/zm
http://www.zoneminder.com/index.php?...=10&tt_news=49
Its an easy add to the startup of ZM file and you can do it via command line (nano), Webmin or WinSCP. Once startup is edited reboot and check to make sure its there.
Before modifying startup script; lets look at what I am writing about.
Check the /var/run directory. If you have a zm directory there you are ok. If not; stop ZM. "mkdir /var/run/zm", "chown www-data /var/run/zm", "/etc/init.d/zm restart". "-l /var/run/zm"
Here you will then see the zm.pid under zm. Shut down ZM and reboot computer. You will see it disappear.
Used the attached zm startup file. Note that the whole start up file is attached. Its easier to use winSCP and look at the /etc/init.d directory. You'll see a ZM and a Zoneminder file. The ZM is just a symbolic link. Edit the zoneminder file with a clip and paste. Test it by stopping ZM and restarting the box. If you look in the /var/run/zm directory you'll see the PID show up when running ZM.
Tweak 4 - Disabling Nullmailer
If you are not using Nullmailer and you do not want to see the Nullmailer logging entries; disable it. The easiest way to do this is with Webmin, System, Bootup and Shutdown, Service Name, Nullmailer, "Start at boot time?" , No.
You will now have a working ZM box base.
Installation of ZMXAP for your Zoneminder Server
Download most current version (.9) of ZMXAP from here: http://www.limings.net/xap/zmxap/
Its recommended that you expand it here: /usr/local/zmxap. You can do this via command line or using WinSCP.
For a bit configure the options in ZMXAP to give you some detail in the XAP logging (don't forget to set the option of no local hub).
Read the rest of the wiki mentioned above to configure the rest of your ZM setup such that we can continue to the next step.
Lets test it. Make sure that ZM is running. We are going to open two SSH sessions to ZM.
In the first one lets run ZMXAP by typing
/usr/local/zmxap/zmxap.pl -path=/usr/local/zmxap
tail -f /tmp/zmxap.log
On the same PC download XAP viewer and watch the traffic for a bit.
You can download XAP viewer from here:
http://www.xapautomation.org/index.php?title=xFx_Viewer
With all of the above you should see ZM XAP traffic. Main and all cams.
You have just validated the function of ZM XAP. Create a startup script such that it starts when you reboot your ZM box. Do this with Webmin.
Just put the following line in a command and give it a name:
/usr/local/zmxap/zmxap.pl -path=/usr/local/zmxap &
Reference:
http://www.zoneminder.com/wiki/index.php/Zmxap
Checking Video streams and IRQ's.
Refer to attached PDF
Zoneminder Mobile View
I'm using W6.X MS Mobile with Opera as browser to the following link for the Mobile link for ZM.
http://www.xxx.yyy.zzz/zm/index.php?skin=mobile
Basically after initial setup your Zoneminder will be maintenance free. Never breaks. The install ISO will install an update application reminder. You have the choice of having it done automatically, just notifying you of the update or no notifications. These will show up on the main screen of Webmin. Just clicking on these update lines will guide you thru the update process. I am trying to keep the main post brief; but will get granular if requested. Depending on the section I can either add to this post or attach a PDF or JPG. Consider this a kind of live document/post.
Zoneminder 1.24.2 ZM XAP wireless/wired IPCamera/analogue gremlins
- ZMXAP will start to beacon non stop increasing CPU utilization thinking ZM is not running unless you add an ancillary from previous versions ZM PID in the start up of Zoneminder 1.24.2.
- ZMXAP will start to beacon non stop increasing CPU utilization if for whatever reason the wireless IPCamera(s) becomes "disconnected" from Zoneminder 1.24.2.
Proposed maybe fix will be to "relax" the timeouts in ZMXAP - maybe modifying the perl script - guessing right now
Zoneminder 1.24.2 on Ubuntu 11.04 gremlin differences and Fixes
Tweak 5 - MooTools
- Mootools has been upgraded on the Ubuntu 11.04 such that the "ancillary" sym links do not work and causing an issue relating to the "Montage" view of Zoneminder. The multiple camera view just appears in one column only; the grid view doesn't work properly. I am not sure what else it causes. This is from the ancillary Mootools Version 1.2.4 to the newer Mootools Version 1.2.5
A - remove the ancillary symbolic link:
Code:
user@zm# cd /usr/share/javascript/mootools user@zm# /usr/share/javascript/mootools# user@zm# rm mootools-more.js
# ln -s /usr/share/javascript/mootools/mootools-more-nc.js /usr/share/javascript/mootools/mootools-more.js
ls -l
C - Shut down ZM and Apache and reboot.
root@ICS-ZM:~# service zm stop
Stopping ZoneMinder: success
root@ICS-ZM:~# service apache2 stop
* Stopping web server apache2
... waiting [ OK ]
Broadcast message from root@ICS-ZM
(/dev/pts/0) at 14:23 ...
root@ICS-ZM:~# reboot
The system is going down for reboot NOW!
Stopping ZoneMinder: success
root@ICS-ZM:~# service apache2 stop
* Stopping web server apache2
... waiting [ OK ]
Broadcast message from root@ICS-ZM
(/dev/pts/0) at 14:23 ...
root@ICS-ZM:~# reboot
The system is going down for reboot NOW!
test the grid montage view in Zoneminder 1.24.2 to validate "fix"
April 18, 2014 - Upgrading Zoneminder via PPA
https://launchpad.net/~iconnor/+archive/zoneminder
You can update your system with unsupported packages from this untrusted PPA by adding ppa:iconnor/zoneminder to your system's Software Sources.
Code:
sudo add-apt-repository ppa:iconnor/zoneminder sudo apt-get update
Comment