LinHES Forums
http://forum.linhes.org/

Zoneminder R6.03
http://forum.linhes.org/viewtopic.php?f=21&t=21194
Page 1 of 1

Author:  davefor [ Tue Jul 06, 2010 8:27 am ]
Post subject:  Zoneminder R6.03

Does anyone have a write up on how to install zoneminder on R6.O3
I found a few old post but not sure how much still applies to the latest
ver. In one post it said installing via service menu 'mythzoneminder'
I checked it off but can't find that it installed
Thanks

Author:  bobmyth [ Mon Jul 12, 2010 9:51 pm ]
Post subject: 

I posted that original message and I recently had to re-install my system. I did not keep good notes, but I believe I had to use about 90% of those steps. Not sure of your skills, but if you understand what I am trying to do, it should not be too bad.

Author:  bobmyth [ Wed Apr 13, 2011 10:38 pm ]
Post subject: 

Hard drive crashed, had to do this again:

Install the package:
Code:
pacman -S zoneminder


Initialize database:
Code:
/usr/lib/zm/bin/zminit


Add http to the video group
Code:
vigr
vigr -s


Append these two lines:
Quote:
kernel.shmall = 134217728
kernel.shmmax = 134217728

to /etc/sysctl.conf
Code:
sudoedit /etc/sysctl.conf

and run sysctl to make the settings take effect
Code:
sudo /sbin/sysctl -p /etc/sysctl.conf


edit /etc/lighttpd/lighttpd.conf
Code:
sudo /etc/lighttpd/lighttpd.conf

and uncomment mod_alias and then append the following lines:
Quote:
alias.url = (
"/cgi-bin" => "/data/srv/httpd/htdocs/cgi-bin/"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}

restart lighttpd
Code:
sudo killall lighttpd


Fix log permissions
Code:
mkdir /var/log/zm
sudo chown -R http:http /var/log/zm


Fix data directory permissions
Code:
sudo chown -R http:http /var/lib/zm


Fix permissions for images, events, sounds, etc
Code:
sudo chown http:http -R /home/httpd/html/zm



Configure logrotate to notify zoneminder when log files have been rotated:
Code:
sudoedit /etc/logrotate.d/zm


and add
Quote:
postrotate
/usr/lib/zm/bin/zmpkg.pl logrot
endscript

below in the /var/log/zm/*log section

Use you favorite web browser to configure zoneminder.

Edit: /zm not needed in alias URL; open_basedir not needed

Author:  tscholl [ Thu Apr 14, 2011 5:14 am ]
Post subject: 

Thanks for the great write up!

What kind of camera you are using? I had tired this once before but couldn't get it to work with an IP camera.

Author:  mattbatt [ Thu Apr 14, 2011 9:15 pm ]
Post subject: 

oh is that all those steps are so easy and logical I could have done them in my sleep.... :D

Author:  bobmyth [ Fri Apr 15, 2011 4:59 pm ]
Post subject: 

tscholl wrote:
What kind of camera you are using?


The IP cameras are tricky, not all of them are supported. I am using a capture card (Hauppage Impact VCB, bt878 chipset) with an analog camera. It meets my minimal needs.

Author:  tscholl [ Fri May 13, 2011 2:38 pm ]
Post subject: 

Well I did have this working but since upgrading to 6.04 the console is not working correctly. It has size problems and buttons sliders on some pages are missing.

I uncommented mod_alias in lighthttpd.conf, but can't remember where to append:

Quote:
alias.url = (
"/cgi-bin" => "/data/srv/httpd/htdocs/cgi-bin/"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}


It goes at the bottom of the of the lighthttpd.conf, correct?

The rest of the problem is related to some changes made in the php part of the lighttpd.conf but I'm not sure where.

The console starts but has size and button problems. And complains about time zone issues.
Code:
Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /data/srv/httpd/htdocs/zm/zm_html_view_console.php on line 89

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /data/srv/httpd/htdocs/zm/zm_html_view_console.php on line 267
Fri 13th May, 4:31pm    ZoneMinder Console - Running - v1.23.3    Load: 0.69 / Disk: 75%
0 Monitors
   Configured for Low Bandwidth    
     Options

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /data/srv/httpd/htdocs/zm/zm_funcs.php on line 1304

This warning repeats 7 times


Any suggestions?

Author:  bobmyth [ Tue May 17, 2011 7:04 am ]
Post subject: 

tscholl wrote:
I uncommented mod_alias in php.ini but can't remember where to append:

Quote:
alias.url = (
"/cgi-bin" => "/data/srv/httpd/htdocs/cgi-bin/"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}



This goes in /etc/lighttpd/lighthttpd.conf, not php.ini. Hopefully this will help you.

Author:  tscholl [ Tue May 17, 2011 9:55 am ]
Post subject: 

My bad it was suppose to say lighthttpd.conf, and I updated my previous post to reflect this change.

Anyway just needed a sanity check here; it is appended at bottom of the lighthttpd.conf file correct?

I pretty much decided that this is a php issue and not zonemider but have no idea on how to fix it. I do know that some changes were made to lighthttpd in the update.

Thanks for catching my error.

Author:  tscholl [ Wed May 18, 2011 12:12 am ]
Post subject: 

Ok I figured out the "Warning time zone" messages.

I had to uncomment line 638 of the php.ini and add

America/Detroit after

date.timezone =

That fixes the time zone messages.

I still see some window problems on the Options screen but I can manually expand it and get to the buttons.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/