Zoneminder install in BusterDog

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Zoneminder install in BusterDog

Post by dcung »

Hi,

I posted in Zoneminder forum.
https://forums.zoneminder.com/viewtopic ... 43&t=31184

Also posting here, in case someone can give me pointers.

I have the following system.
https://www.swann.com/au/swnvk-800kh4

It does not have Linux app, so I'm tyring to use Zoneminder with BusterDog (puppylinux). I got Zoneminder up and running following this guide
https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

I can use VLC to see live view of channels of the NVR.
rtsp://user:mypassword@ip-address:554/ch01/1

I have tried to add in Zoneminder (it says v1.36.7), but so far have not been able to see anything. I don't know if I do the config correctly.
I'm a newbie in security camera system.

Thank you.

Attachments
2021-10-07-083036_1280x772_scrot.png
2021-10-07-083036_1280x772_scrot.png (135.55 KiB) Viewed 1378 times
User avatar
rockedge
Site Admin
Posts: 6521
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2727 times
Been thanked: 2614 times
Contact:

Re: Zoneminder install in BusterDog

Post by rockedge »

Hello, I can help you perhaps. It is important to have the exact correct camera resolution. This can be checked in VLC when streaming the URL that works. Use the menu and look at the codec info. Also set to ffmpeg with 32 bit color unless specifically 24 bit.
I assume it is running with Apache as the web server? Check that the zoneminder.conf is enabled.

most likely you do not have the /cgi-bin/nph-zms path correctly configured. check your alias's or symlink! Or set it in /etc/zm/conf.d/zm_custom.conf.

Code: Select all

ZM_PATH_ZMS=/cgi-bin/nph-zms

What do your ZM logs say?

dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

Hi rockedge,
Thank you for replying.
Please bear with me if I asked silly questions...
Where exactly do you set /cgi-bin/nph-zms path? I looked in Option,Config.

I'm trying blindly here.
In general/source type -> what's the correct choice? ffmpeg?
In source/source path -> rtsp://user:mypassword@ip-address:554/ch01/1 or rtsp://ip-address:554/ch01/1 and set user/password somewhere else?
In ONVIF -> do I need to put user/password?

Note - I'm trying to access camera via NVR not directly. NVR and IP-cam have different IP addresses.

Attachments
2021-10-07-101156_1280x772_scrot.png
2021-10-07-101156_1280x772_scrot.png (211.07 KiB) Viewed 1363 times
dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

rockedge wrote: Wed Oct 06, 2021 11:09 pm

I assume it is running with Apache as the web server? Check that the zoneminder.conf is enabled.

I assume so, I followed the guide up there, which has this command.
apt install apache2 mariadb-server php libapache2-mod-php php-mysql

most likely you do not have the /cgi-bin/nph-zms path correctly configured. check your alias's or symlink! Or set it in /etc/zm/conf.d/zm_custom.conf.

No such file. Only have these 3 files in the dir. There's /etc/zm/zm.conf which I'm reading the content now.

Attachments
2021-10-07-103650_465x386_scrot.png
2021-10-07-103650_465x386_scrot.png (51.75 KiB) Viewed 1362 times
dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

rockedge wrote: Wed Oct 06, 2021 11:09 pm

Hello, I can help you perhaps. It is important to have the exact correct camera resolution. This can be checked in VLC when streaming the URL that works. Use the menu and look at the codec info. Also set to ffmpeg with 32 bit color unless specifically 24 bit.

Attachments
2021-10-07-105059_579x365_scrot.png
2021-10-07-105059_579x365_scrot.png (39.06 KiB) Viewed 1358 times
dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

Aha...I got picture now after setting the correct resolution 1080p (1920x1080). Thanks rockedge :thumbup:

How do I clear log? It's got more than 10000 entries now. I want so start 'fresh' and exploring what I can do in Zoneminder.

Attachments
2021-10-07-114148_1280x772_scrot.png
2021-10-07-114148_1280x772_scrot.png (106.87 KiB) Viewed 1350 times
User avatar
rockedge
Site Admin
Posts: 6521
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2727 times
Been thanked: 2614 times
Contact:

Re: Zoneminder install in BusterDog

Post by rockedge »

you can limit the saved log entries via filter setting at Options->Logging->LOG_DATABASE_LIMIT

I am using 2 hour

Screenshot(140).png
Screenshot(140).png (54.7 KiB) Viewed 1338 times
dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

rockedge wrote: Thu Oct 07, 2021 1:50 am

you can limit the saved log entries via filter setting at Options->Logging->LOG_DATABASE_LIMIT

I am using 2 hour

I follow you...2 hour.
Also the default setting LOG_LEVEL_FILE was debug, I changed it to error, will change it like yours (none) when I'm done fine tuning.

dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

I'm happy that at least I have a linux app that can be used with the system.

This questions are for my future exploring of Zoneminder.
In their (Swann) android app, you can use deterrent features of the camera by turning on light/strobe/siren.
Is there such features in Zoneminder?

FYI - I didn't do my homework before buying.
Lots of complain about Swann Android app. Battery drain!
In my case, I have so far used 3 mobile phones (2 Oppo F1, and Google Pixel 2XL).
It's OK so far with the Oppo, but the Pixel 2XL battery drains VERY fast when the app is installed.

dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

My zoneminder installation (v1.36.7) in PuppyLinux (BusterDog) is auto starting atm.
While exploring/tinkering zoneminder, I'd like to start it manually for the time being.
Meanwhile, I run 'service zoneminder stop' after finish booting/rebooting (or I can stop it thru Zoneminder WebGUI).

I'm trying to locate where it gets started from during boot, so I can comment out the line (or modify ?).

Not sure whether more appropriate to ask in Zoneminder or Puppy forum...so I ask on both.
https://forums.zoneminder.com/viewtopic ... 95#p123595

Thank you.

User avatar
fredx181
Posts: 3043
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 369 times
Been thanked: 1293 times
Contact:

Re: Zoneminder install in BusterDog

Post by fredx181 »

dcung wrote: Tue Oct 12, 2021 8:10 am

My zoneminder installation (v1.36.7) in PuppyLinux (BusterDog) is auto starting atm.
While exploring/tinkering zoneminder, I'd like to start it manually for the time being.
Meanwhile, I run 'service zoneminder stop' after finish booting/rebooting (or I can stop it thru Zoneminder WebGUI).

I'm trying to locate where it gets started from during boot, so I can comment out the line (or modify ?).

Not sure whether more appropriate to ask in Zoneminder or Puppy forum...so I ask on both.
https://forums.zoneminder.com/viewtopic ... 95#p123595

Thank you.

I think (untested) that you can disable the zoneminder initscript, e.g. for when running without systemd (default for Busterdog is running with the legacy initscripts):

Code: Select all

update-rc.d -f zoneminder remove
invoke-rc.d zoneminder stop    # or 'service zoneminder stop', as you do, does the same.

EDIT: To enable again: update-rc.d zoneminder defaults and invoke-rc.d zoneminder start

Just in case you are running the system with systemd, disable the service :
systemctl disable zoneminder.service

dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

fredx181 wrote: Tue Oct 12, 2021 12:39 pm

I think (untested) that you can disable the zoneminder initscript, e.g. for when running without systemd (default for Busterdog is running with the legacy initscripts):

Code: Select all

update-rc.d -f zoneminder remove
invoke-rc.d zoneminder stop    # or 'service zoneminder stop', as you do, does the same.

EDIT: To enable again: update-rc.d zoneminder defaults and invoke-rc.d zoneminder start

Just in case you are running the system with systemd, disable the service :
systemctl disable zoneminder.service

Thank you Fred... :thumbup:

It works. I can see now where it gets started from (ie. those /etc/rc.x directories).

I've also put a link to here in Zoneminder forum, in case someone else needs it.

User avatar
fredx181
Posts: 3043
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 369 times
Been thanked: 1293 times
Contact:

Re: Zoneminder install in BusterDog

Post by fredx181 »

It works. I can see now where it gets started from (ie. those /etc/rc.x directories).

Yes, but note that the standard way to configure is with the update-rc.d command, better not by deleting or creating manually in the /etc/rc.x directories.

dcung
Posts: 459
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 66 times

Re: Zoneminder install in BusterDog

Post by dcung »

fredx181 wrote: Tue Oct 12, 2021 8:48 pm

It works. I can see now where it gets started from (ie. those /etc/rc.x directories).

Yes, but note that the standard way to configure is with the update-rc.d command, better not by deleting or creating manually in the /etc/rc.x directories.

Got it. I did it thru the command. That (finding the locations) was just to satisfy my curiosity. Thank you. :thumbup2:

Post Reply

Return to “DebianDogs”