Zoneminder on F96-CE_4 with Hiawatha Web Server

Moderator: Forum moderators

Post Reply
User avatar
rockedge
Site Admin
Posts: 6594
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2794 times
Been thanked: 2663 times
Contact:

Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by rockedge »

Working on an updated version of a set of scripts that will install ZoneMinder security camera manager/NVR using the existing Hiawatha web server in F96-CE_4

The original scripts were offered for Fossapup64-9.5 but I haven't run it in over a year so some updating and maintenance will need to occur.

First run shows promise....Zoneminder 1.37.57 with zmNinja Desktop version as an alternative front-end ->

Screenshot(2).jpg
Screenshot(2).jpg (46.53 KiB) Viewed 1124 times
User avatar
p310don
Posts: 369
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 73 times
Been thanked: 107 times

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by p310don »

I love the idea of Zoneminder, but have never had any luck getting cameras that work properly with it. Recently ended up buying an expensive proprietary camera system instead.

Is there a trick to getting webcams to work with it?

User avatar
rockedge
Site Admin
Posts: 6594
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2794 times
Been thanked: 2663 times
Contact:

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by rockedge »

p310don wrote:

Is there a trick to getting webcams to work with it?

Very important is to make sure the webcam can be accessed by the web server owner.

Lets say the web server is running under user www-data. Ensure that www-data has the permissions to access /dev/video0

Best practice is to add www-data to the video group.

Quick way in a terminal:

Code: Select all

chown www-data /dev/video0

Another variation that may work:

Code: Select all

chown www-data /dev/video*
Clarity
Posts: 3920
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1651 times
Been thanked: 535 times

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by Clarity »

I think this effort has transferable promise. As you reflect in the opening post (OP), distro tailoring is at play.

Could the identifiable steps you employ moving from old to F96 also be the same/identical to transfer onto a BKWP64 platform, as well?

Thus more individuals would/may be involved in test/use/idea-sharing of Zoneminder for home camera uses. As I move further into the year, I intend to migrate RTSP use from Windows to Linux.

Great idea you propose in the OP.

User avatar
rockedge
Site Admin
Posts: 6594
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2794 times
Been thanked: 2663 times
Contact:

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by rockedge »

Ready for testing are the two scripts that will install ZoneMinder on a fresh install of F96-CE_4

  1. Start a fresh version of F96-CE_4 and create a save folder and reboot.

  2. Load the Devx SFS.

  3. Download scripts and remove fake ".gz" and make executable.

  4. Open a terminal and run 01 then 02 and after they finish, in the same terminal type zmpkg.pl start

  5. Start a browser and enter the URL http://localhost/zm

Hopefully someone can test an installation run to see if it works for them :ugeek:

Attachments
02-install-zm_F96.sh.gz
remove fake gz
(76.82 KiB) Downloaded 27 times
01-install-mariadb_F96.sh.gz
remove fake gz
(1.17 KiB) Downloaded 20 times
dcung
Posts: 474
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 58 times
Been thanked: 68 times

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by dcung »

I tried it.

Note - I have no F96-CE experience.

Start fresh F96-CE_4 frugal install. Follow @rockedge instructions above.

Screenshot-1.png
Screenshot-1.png (393.9 KiB) Viewed 838 times

.
.
.
Got this error in Firefox browser - http://localhost/zm

Code: Select all

Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /usr/share/zoneminder/www/includes/config.php:147 Stack trace: #0 /usr/share/zoneminder/www/index.php(23): require_once() #1 {main} thrown in /usr/share/zoneminder/www/includes/config.php on line 147

Warning: PHP Startup: Unable to load dynamic library 'apc.so' (tried: /usr/lib/php/20190902/apc.so (/usr/lib/php/20190902/apc.so: undefined symbol: zif_apcu_store), /usr/lib/php/20190902/apc.so.so (/usr/lib/php/20190902/apc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

My googling indicated that may need to activate intl extension in php.ini, but I have no idea how to do so...yet.
https://github.com/ZoneMinder/zoneminder/issues/3542
https://forums.zoneminder.com/viewtopic.php?t=31917

User avatar
rockedge
Site Admin
Posts: 6594
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2794 times
Been thanked: 2663 times
Contact:

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by rockedge »

There is a small problem in the script that is putting the PHP .ini files in the wrong place!
The directory /etc/php/7.4/mods-available should look like this ->

Screenshot.jpg
Screenshot.jpg (42.56 KiB) Viewed 806 times

With the symlinks in /etc/php/7.4/cgi/conf.d ->

Screenshot(1).jpg
Screenshot(1).jpg (47.5 KiB) Viewed 806 times

There might be a problem that the PHP php-apcu and php-apcu-bc did not load correctly!
Down load and click on the package and petget will install it.
php-apcu_5.1.18+4.0.11-1build1_amd64.deb
php-apcu-bc_1.0.5-2build1_amd64.deb

This should fix it! In a terminal use zmpkg.pl start and go to a browser and again enter the URL http://localhost/zm

Restarting the Hiawatha server in a terminal is your friend.......

Code: Select all

hiawatha ## Start the server
killall hiawatha   ## Stop the server
dcung
Posts: 474
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 58 times
Been thanked: 68 times

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by dcung »

This is what is in my F96-CE.

Screenshot(2).png
Screenshot(2).png (140.69 KiB) Viewed 781 times

I moved the files as per your screenshots above, and create symlinks.

Screenshot(3).png
Screenshot(3).png (109.83 KiB) Viewed 781 times

Download and install the deb files.

Screenshot(1).png
Screenshot(1).png (29.81 KiB) Viewed 781 times

In a terminal use zmpkg.pl start and go to a browser and again enter the URL http://localhost/zm

Tried both restarting Hiawatha, and reboot.
Both gives this - in Firefox.

Code: Select all

Unable to connect

An error occurred during a connection to localhost.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web.

I think this is 'too challenging' for my skill level. :)
I give up. Thanks for assistance @rockedge :thumbup:

Clarity
Posts: 3920
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1651 times
Been thanked: 535 times

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by Clarity »

I tried the request. Results are enclosed in this post.

I decided in my quest to accomplish 3 objectives:

  1. Start from a pristine F96 and install the requested packaging for a functional facility to support cameras in a QEMU VM

  2. Initially test for a 1st-hand look at an operational ZM facility of which I have never seen before

  3. REmaster the final arrival creating a NEW ZM ISO for use.

Scenario
Opened a VM booting the ISO file from my Ventoy USB
First Boot

  1. F96 Menu's stanza line contained psave=Persistence:/Sessions/ (which is a QEMU created QCOW2 drive)

    F96CE4 ISO via QEMU.jpg
    F96CE4 ISO via QEMU.jpg (15.16 KiB) Viewed 725 times
  2. After FirstRUN changes on desktop, I searched and found the DEVX file and installed the SFS.

  3. I downloaded this threads 01....sh and 02....sh scripts to root's My Applications/bin folder, making them executable

  4. I rebooted allowing the pristine to save the session appropriately in the Persistence drive and folder

Next Boot

  1. Ran 01...sh noticing a early error in the scripts operation

    F96CE4 ISO via QEMU(1).jpg
    F96CE4 ISO via QEMU(1).jpg (81.5 KiB) Viewed 725 times
  2. Upon its completion, ran 02....

  3. 02...sh completes and in the terminal, I ran the zmpkg.pl start command resulting in an error
    [Next, I opened a browser to localhost/zm also resulting in an error

F96CE4 ISO via QEMU(6).jpg
F96CE4 ISO via QEMU(6).jpg (104.13 KiB) Viewed 725 times

Questions

  • Could I have ran the 2 scripts before doing the 1st Reboot after installing the DEVX SFS?

  • Is there any sample videos or screen-shots in the order of operational behavior assuming all had gone without errors?

  • What would you recommend as the preferred way to remaster into a bootable ISO upon this completion?

User avatar
rockedge
Site Admin
Posts: 6594
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2794 times
Been thanked: 2663 times
Contact:

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by rockedge »

@Clarity It is very close to running correctly. You have the same problem as I described in the above post.

Rearrange the PHP .ini files and symlinks and download the 2 .deb files and click on them to install. Then the ZM console will work correctly

Clarity
Posts: 3920
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1651 times
Been thanked: 535 times

Re: Zoneminder on F96-CE_4 with Hiawatha Web Server

Post by Clarity »

Could you review my earlier questions. I could use a best recommendation of which of the 'remaster' utilities, built-in F96, to use to easily create an ISO from this work-effort. I seem to remember a problem with either the @amethyst's utiltiy for an ISO or from the one that comes with WoofCE,IIRC.

F96CE4 ISO via QEMU(7).jpg
F96CE4 ISO via QEMU(7).jpg (157.79 KiB) Viewed 580 times
Post Reply

Return to “F96-CE”