ZMLiveCD 2008

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Viper_iii
Posts: 12
Joined: Mon Jul 14, 2008 4:54 pm

Post by Viper_iii »

I think that will get it... Just picky it seems on the memory number that need to be placed into those values that were left out...right?

PCLinuxOS...

uses the aptitude system I noticed... tried to install openssh-server seemed to take but won't accept ssh does it respond like ubuntu and or fedora with service sshd restart or /etc/init.d/sshd restart?
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

does it respond like ubuntu and or fedora with service sshd restart or /etc/init.d/sshd restart?
Either should work.
Viper_iii
Posts: 12
Joined: Mon Jul 14, 2008 4:54 pm

Post by Viper_iii »

rdmelin wrote:
having issues with 640x480...
See this entry in the wiki faq
http://www.zoneminder.com/wiki/index.ph ... esolutions.

I forgot to add these lines to /etc/sysctl.conf

Code: Select all

kernel.shmall = 134217728
kernel.shmmax = 134217728
If this doesn't resolve these issues you will need to provide more info. See this post
http://www.zoneminder.com/forums/viewtopic.php?t=10820

This did resolve the 640x480 issue... however... the issue of the IP Camera is not resolved....

The camera worked in all other version of live cd including the Bluecherry version...

Is my best bet just to do a clean install of ZM from source that way it will be easier to manage? LiveCD Seems really easy!!!!

Just odd that the IP support now doesn't work very well...

the camera is a WVC54GCA
IP Address
/img/video.mjpeg
beyond that it should work but doesn't.

any ideas?

------------------------------

Knew I shouldn't have posted so quick on that one... Darn...

Okay here is what I did...

OPtions > Network >
Checked top box to enable
ZM_OPT_REMOTE_CAMERAS
Changed
ZM_HTTP_VERSION 1.0 from 1.1
Restarted ZM Service from the Console
And recreated a monitor...

Now both are running 640x480. Much better!

Also Thanks!
Viper_iii
Posts: 12
Joined: Mon Jul 14, 2008 4:54 pm

Post by Viper_iii »

any particular reason for not seeing the events in this view on this version?

should be this from what I gather:
Image


Instead I get this...
Image

and I do have events...
Image

Not sure but I think I'm missing something easy... Didn't see it yelling at me in the forums and didn't catch this in the options or documentation.. So back here seeing what I might have missed yet again...
curlynostrill
Posts: 5
Joined: Sat Aug 30, 2008 9:55 pm

Post by curlynostrill »

rdmelin wrote:You could double check by examining /var/log/zmfilter.log and looking for the backup files in /var/lib/zm and .sql files in each event directory.
Ok, I'm back after some trials. Not sure if this ^ was just a typo but my zmfilter.log is located at /var/log/zm/zmfilter.log.

I'm not trying to nitpick. The reason I bring it up is that I had problems with the first install. It ran well from the live CD and seemed to run well at first HD boot but later froze. I reinstalled a few times using the suggested partition scheme in the instructions but had various errors; recursion in /var, could not find/start mysql.d and probably some others.

I finally just allowed the installer to use the whole disk and do it's own thing which makes it all work very well so far. It's been running w/ 3 cameras in monitor mode for a couple of weeks now with only some minor issues with my customizations, i.e. sshd, webmin, etc.

Disabling KDM at startup seems to work well, though, and frees up a lot of ram.

Also, I just kept the default user 'user' and now have a large /home/user partition and no separate /var partition. Not really a major problem but deviates from the documentation.

I was looking into shrinking or even deleting the /home/user directory but the directory rpm and config contain some seemingly essential files, such as:

Code: Select all

[root@localhost ~]# ls /home/user/
config/  Desktop/  dl/  Documents/  Movies/  Music/  Pictures/  rpm/  tmp@

Code: Select all

[root@localhost ~]# ls /home/user/config/
animations.cfg            vt1-1280x1024.cfg*  vt4-1280x1024.cfg*
bootsplash-1024x768.cfg   vt1-1600x1200.cfg*  vt4-1600x1200.cfg*
bootsplash-1280x1024.cfg  vt1-800x600.cfg*    vt4-800x600.cfg*
bootsplash-1600x1200.cfg  vt2-1024x768.cfg*   vt5-1024x768.cfg*
bootsplash-800x600.cfg    vt2-1280x1024.cfg*  vt5-1280x1024.cfg*
global.config             vt2-1600x1200.cfg*  vt5-1600x1200.cfg*
gtkrc                     vt2-800x600.cfg*    vt5-800x600.cfg*
vt0-1024x768.cfg          vt3-1024x768.cfg*   vt6-1024x768.cfg*
vt0-1280x1024.cfg         vt3-1280x1024.cfg*  vt6-1280x1024.cfg*
vt0-1600x1200.cfg         vt3-1600x1200.cfg*  vt6-1600x1200.cfg*
vt0-800x600.cfg           vt3-800x600.cfg*    vt6-800x600.cfg*
vt1-1024x768.cfg*         vt4-1024x768.cfg*

Code: Select all

[root@localhost ~]# ls /home/user/rpm/SRPMS/
zm-1.23.3-2pclos2007.src.rpm  zm-1.23.3-3pclos2007.src.rpm
and I don't want to break the paths again since the idea of fixing them all is daunting.

Obviously my abbreviated skills are probably just enough to get me into trouble but I get by.

My hardware is on a Biostar U8068(oem) micro-atx board P4 1.8 with some via chipset (yuck) 9 gig WD expert (i think) and 640MB ram. I disabled the onboard graphics and net, and slipped in an old agp card and a gigabit dlink pci card.

Hopefully this report will help.
cheers!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

im not so sure not having a var partition is a good idea. I always have used a dedicated var.
ALso 9Gig? is that right? If so you probably dont yet have a purge when full filter running and if you had a smaller than 9 gig partition it would have filled up very very quickly indeed. Probably the reason for your previous errors.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
curlynostrill
Posts: 5
Joined: Sat Aug 30, 2008 9:55 pm

Post by curlynostrill »

jameswilson wrote:im not so sure not having a var partition is a good idea.
Exactly my point!
jameswilson wrote:ALso 9Gig? is that right? If so you probably dont yet have a purge when full filter running
That is correct. AFAICT I don't have any filters running. All cameras are in monitor mode. It is running fine now. Once I get it all figured out I intend to have it mount a directory on my file server for storage.
jameswilson wrote:Probably the reason for your previous errors.
When I got the previous errors I never even got past the first boot. Call me dense but I don't see how a recursion issue would have anything to do with a full partition.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

agreed a full /var wouldnt stop it booting but it would prevent mysql and probably apache from starting
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
curlynostrill
Posts: 5
Joined: Sat Aug 30, 2008 9:55 pm

Post by curlynostrill »

well the problem with mysql, the built-in backup and others was that the paths were borked so the executables couldn't even be found with the partition scheme /boot, /, swap, /var.

and apache actually managed to start... i think.

i must be missing some step in the install. any ideas?
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

the executables couldn't even be found
I've only seen this when the / partition is too small. The installation should error out if / is not large enough but may not always. What is the output of "df -h"
curlynostrill
Posts: 5
Joined: Sat Aug 30, 2008 9:55 pm

Post by curlynostrill »

hey, rd, nice to read ya.

Code: Select all

[root@zmhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             5.1G  2.4G  2.5G  49% /
/dev/hda6             3.2G  107M  3.1G   4% /home
and

Code: Select all

 fdisk -l

Disk /dev/hda: 10.0 GB, 10005037056 bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         666     5349613+  83  Linux
/dev/hda2             667        1216     4417875    5  Extended
/dev/hda5             667         800     1076323+  82  Linux swap / Solaris
/dev/hda6             801        1216     3341488+  83  Linux
[root@zmhost ~]# 
and

Code: Select all

[root@zmhost ~]# mount
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,mode=0620)
none on /proc/bus/usb type usbfs (rw)
/dev/hda6 on /home type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
is the output of the current setup which has been running famously now for a few weeks. All 3 cams are in monitor mode, though. So I assume there's not much, if any, database action. And this is with the drive setup with the default/automatic choices made by the installer.

I'm going to try the custom/suggested partition scheme on a spare disk shortly and post the results here.

thanks
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

any particular reason for not seeing the events in this view on this version?
Has anyone sorted this as i have the same problem using ZMlinux2008
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Filters still broken?

Post by c0mputerking »

Using ZMLinux2008 live cd installed to the harddisk accepted the install using entire hard disk option. Filters are not working I get this in the message log

Code: Select all

Oct  9 11:35:48 zmhost zmdc[15024]: INF [Starting pending process, zmfilter.pl]
Oct  9 11:35:48 zmhost zmdc[15100]: INF ['zmfilter.pl' started at 08/10/09 11:35:48]
Oct  9 11:35:48 zmhost zmdc[15024]: INF ['zmfilter.pl' starting at 08/10/09 11:35:48, pid = 15100]
Oct  9 11:35:48 zmhost zmdc[15024]: ERR ['zmfilter.pl ' exited abnormally, exit status 9]
Nothing seems to be appearing in the zmfilter.log but when i try to run /usr/lib/zm/zmfilter.pl from the command line i get this error

Code: Select all

Can't locate Archive/Tar.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl) at /usr/lib/zm/bin/zmfilter.pl line 73.

ps had zoneminder running on ubuntu and was working nicely had troubles at first with filters got them mostly working but could not get it to send email so i thought i would try this live CD.
[/code]
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

did they work before you added an email filter?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

Ok thanks for your reply i have made some progress ended up installing some missing perl modules like below and those errors went away.

perl -MCPAN -e shell
install Archive::Tar
install MIME::Entities
install Archive::Zip

However i am still not getting emails to work

At first zmfilter complained about not having a from address the only place i could find the from address was in the ZM_FROM_EMAIL which is kind of confusing as it seems to be in the ZM_NEW_MAIL_MODULES section which I do not have enabled.

Once the ZM_FROM_EMAIL was filled in zoneminder seems to send the emails HOWEVER i never receive them.

Code: Select all

10/09/08 18:55:21.633636 zmfilter[21651].INF [Creating notification email]
10/09/08 18:55:21.634511 zmfilter[21651].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-104 (5 - 3 13)']
10/09/08 18:55:21.640084 zmfilter[21651].INF [Notification email sent]
10/09/08 18:55:21.644063 zmfilter[21651].INF [Executing '/usr/lib/zm/bin/zmeventdump /var/www/html/zm/events/1/104']


If the the ZM_NEW_MAIL_MODULES is checked zoneminder tries to send them lots of times apparently but i still never get anything in my email account.

Code: Select all

 - Camera1-102 (5 - 3 21)']
10/09/08 18:50:27.917075 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:27.918176 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:50:32.930102 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:32.931152 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:50:32.936760 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:32.937843 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:50:37.959244 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:37.960327 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:50:37.965309 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:37.966370 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:50:42.979095 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:42.980146 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:50:42.986712 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:42.987955 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:50:47.999918 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:48.001013 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:50:48.006806 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:48.007867 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:50:53.019423 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:53.020645 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:50:53.025593 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:53.026666 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:50:58.038328 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:58.039406 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:50:58.045175 zmfilter[21458].INF [Creating notification email]
10/09/08 18:50:58.046284 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:51:03.062791 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:03.063846 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:51:03.074706 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:03.078546 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:51:08.095232 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:08.096317 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:51:08.105784 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:08.106850 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:51:13.118068 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:13.119102 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:51:13.124897 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:13.125967 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:51:18.137066 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:18.138097 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:51:18.143596 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:18.144660 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
10/09/08 18:51:23.156810 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:23.157914 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-102 (5 - 3 21)']
10/09/08 18:51:23.163295 zmfilter[21458].INF [Creating notification email]
10/09/08 18:51:23.164385 zmfilter[21458].INF [Sending notification email 'ZoneMinder: Alarm - Camera1-103 (4 - 3 40)']
ZM_FROM_EMAIL10/09/08 18:51:28.175772 zmfilter[21458].INF [Creating notification email]
Also nothing shows up in the /var/mail/info error or warning logs

My isp as most do these days block port 25 but my email server firewall is set to forward on port 325 to 25. Not sure how zoneminder is sending (or in my case not sending) emails. This could be the problem can i set zoneminder to send its emails on port 325??

Am i the only one using this CD is this the LiveCD to be using hehe?

PS I was also i am having this issue and made a post there

http://www.zoneminder.com/forums/viewto ... 5973#45973

switched to zip format and added the Archive::Zip perl module which made things work ok uploads are zipped and stored on my remote ftp server very nice now if i could just get email to work.
[/code]

CORRECTION ONLY EMPTY ZIPS ARE BEING STORED ON THE REMOTE SERVER
Post Reply