How to combine fossapup + webcam + motn detect +vrec?

Moderators: 666philb, Forum moderators

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

How to combine fossapup + webcam + motn detect +vrec?

Post by boof »

need software to monitor via desktop #3 w auto[?] record. advice pls

camera is star xxxxx Venus USB2

MOTION

/etc/motion/motion.conf

no pic, why pls?

# This config file was generated by motion 4.2.2
# Documentation: /usr/share/doc/motion/motion_guide.html
#
# This file contains only the basic configuration options to get a
# system working. There are many more options available. Please
# consult the documentation for the complete list of all options.
#

############################################################
# System control configuration parameters
############################################################

# Start in daemon (background) mode and release terminal.
daemon on

# Start in Setup-Mode, daemon disabled.
setup_mode off

# File to store the process ID.
pid_file value /var/run/moton/mgion.pid

# File to write logs messages into. If not defined stderr and syslog is used.
log_file /var/log/motion/motion.log

# Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL).
log_level 6

# Target directory for pictures, snapshots and movies
target_dir /var/lib/motion

#define source
input -1 #Webcam

# Video device (e.g. /dev/video0) to be used for capturing.
videodevice /dev/video1

# Parameters to control video device. See motion_guide.html
; vid_control_params value

# The full URL of the network camera stream.
; netcam_url value

# Name of mmal camera (e.g. vc.ril.camera for pi camera).
; mmalcam_name value

# Camera control parameters (see raspivid/raspistill tool documentation)
; mmalcam_control_params value ????????????????????????

############################################################
# Image Processing configuration parameters
############################################################

# Image width in pixels.
width 640

# Image height in pixels.
height 480

# Maximum number of frames to be captured per second.
framerate 15

# Text to be overlayed in the lower left corner of images
text_left CAMERA1

# Text to be overlayed in the lower right corner of images.
text_right %Y-%m-%d\n%T-%q

############################################################
# Motion detection configuration parameters
############################################################

# Always save pictures and movies even if there was no motion.
emulate_motion on

# Threshold for number of changed pixels that triggers motion.
threshold 500

# Noise threshold for the motion detection.
; noise_level 32

# Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel.
despeckle_filter EedDl

# Number of images that must contain motion to trigger an event.
minimum_motion_frames 1

# Gap in seconds of no motion detected that triggers the end of an event.
event_gap 60

# The number of pre-captured (buffered) pictures from before motion.
pre_capture 3

# Number of frames to capture after motion is no longer detected.
post_capture 0

############################################################
# Script execution configuration parameters
############################################################

# Command to be executed when an event starts.
; on_event_start value

# Command to be executed when an event ends.
; on_event_end value

# Command to be executed when a movie file is closed.
; on_movie_end value

############################################################
# Picture output configuration parameters
############################################################

# Output pictures when motion is detected
picture_output off

# File name(without extension) for pictures relative to target directory
picture_filename %Y%m%d%H%M%S-%q

############################################################
# Movie output configuration parameters
############################################################

# Create movies of motion events.
movie_output on

# Maximum length of movie in seconds.
movie_max_time 60

# The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
movie_quality 45

# Container/Codec to used for the movie. See motion_guide.html
movie_codec mkv

# File name(without extension) for movies relative to target directory
movie_filename %t-%v-%Y%m%d%H%M%S

############################################################
# Webcontrol configuration parameters
############################################################

# Port number used for the webcontrol.
webcontrol_port 8080

# Restrict webcontrol connections to the localhost.
webcontrol_localhost on

# Type of configuration options to allow via the webcontrol.
webcontrol_parms 0

############################################################
# Live stream configuration parameters
############################################################

# The port number for the live stream.
stream_port 8081

# Restrict stream connections to the localhost.
stream_localhost on

##############################################################
# Camera config files - One for each camera.
##############################################################
camera /etc/motion/camera1.conf
; camera /etc/motion/camera2.conf
; camera /etc/motion/camera3.conf
; camera /etc/motion/camera4.conf

##############################################################

camera1.confg ={}

console output

root# motion
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file /etc/motion/camera1.conf
[0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)
root#

# Directory to read '.conf' files for cameras.
##############################################################
; camera_dir /etc/motion/conf.d

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

Re: fossapup + webcam + motn detect +vrec

Post by rockedge »

Ever consider using ZoneMinder?

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: fossapup + webcam + motn detect +vrec

Post by peppyy »

rockedge wrote: Thu Jun 10, 2021 12:07 pm

Ever consider using ZoneMinder?

I am about there with this HIKVision camera. I was thinking about trying this https://www.hikvision.com/europe/suppor ... x-64-bit-/

I did have an old laptop with ME on it and it works with addons.

What ZM runs on Fossa64?

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by mikewalsh »

@boof :-

Rockedge is probably on the money with that suggestion. And if anybody knows how it works, he most assuredly does.....

Or, you could take a look at Xeoma. Easy-to-use, the free version lets you run up to 4 cameras....and motion detection comes built-in, OOTB.

Downloads here:-

https://felenasoft.com/xeoma/en/download/

It's basically an all-in-one 'binary', which can be run as a 'portable' app from anywhere. Unzip the download, and put the executable 'binary' anywhere you want.

Mike. ;)

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by boof »

usb camera failed-no o/p. v annoyed. lappy camera detected and working. can't aim at carport, so not useful. usb camera severa yrs old, but almost no use. failed after a few hrs const power, unless usb 's timing out ? xoma shows split screen for 2 cameras, but says no output #2, has no camera settings for it. /dev/video1 exists but maybe pre-fail. will delete and reboot to see if restored?

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by boof »

restored video1, but second usb camera wrong make/model. it is a Sun Microelectrnics Venus USB 2.0, not shown in lsusb. 2 cameras in lsusb appear to be lappy int camera?

Screenshot(1).jpg
Screenshot(1).jpg (160.45 KiB) Viewed 1469 times

edit:
cam is in use by other app or filter chain?

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by boof »

Xeoma working fine thks. watching video stream from web at same time a bit too much for my celeron based processor, but all good enuf. the movement sampling window flashes quickly, but fair enough. will pay fee soon.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

Xeoma is certainly an option in this case and although zoneminder would perform better on this particular machine Xeoma is much easier to get going and should do perfectly fine.

I haven't explored it as of late so I went ahead and downloaded the latest version and will be testing it out today. It does appear to work on a broad range of Puppy's and the free version should suffice for many use cases. One advantage zoneminder has regardless of it's complexity is the fact there are no fees and the software is free and free to use with 1 camera or a 1000+

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

Just tried Xeoma for linux on fossa64. Extracted to my applications, renamed to xeoma_free.app and it runs fine. Found my camera automatically.
I did find the interface a bit counter-intuitive being iconized however it has pretty good built in help in the tool tips.

The stream uses a lot more cpu and bandwidth than MPV and doesn't run as smoothly as just rstp connection.
It also appears to record on launch but that is most likely because I haven't played with it much yet.

Attachments
desktop(4).jpg
desktop(4).jpg (152.94 KiB) Viewed 1446 times

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by mikewalsh »

@peppyy :-

I only suggested Xeoma as an easy-to-use option; I initially discovered it when rockedge first began putting his ZoneMinder Puppies together, a few years back. I was interested enough that I began looking around for similar apps that would work with Puppy....and found Xeoma. Even then, I was impressed by the fact it was a single executable binary.....which just seemed to work in every Puppy I threw it at, 32- and 64-bit alike.

It's quite greedy with resources compared to some, I suppose, but you can't deny it's easy-to-use!

You CAN turn recording off, though it's a bit fiddly to find the option. (Those icons are NOT that 'intuitive', unfortunately.) Ya gotta "dig" a bit, I'm afraid..! :D

For a freebie, it's quite impressive, considering just how many options Felenasoft have managed to pack into it.....

Mike. ;)

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

@mikewalsh I find it interesting that reading and searching the Xeoma manual, I can't find a way to have it record only motion triggered events. I was hoping to use it to detect swarms of bees on my swarm trap and record just that, and unauthorized visitors, rather than constant recording.

I know that the camera itself has that ability however in order to set them on the camera requires an operating system with web controls that I haven't run in years. ;) The other issue with the camera is that it doesn't seem to recognize the Linux file system directly, even when I manually try to enter the path. (Of course that is controlled by the software interface).

Might have to set up one of my spare comps dedicated for Zoneminder.

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

With zoneminder one of the main features is reflected in the name....Zones. You can create zones in the camera field of vision that do different things with variable sensitivity and purpose. With different zone types and then the filter system one can pin point certain events.

I wrote a script for someone who lives on a ranch in a remote corner of the world and they needed to detect NO motion over a period of time. Meaning they had an extremely important sump pump that a camera looked at directly. If the pump was functioning correctly it turned on once or twice maybe more every 30 minutes. If there was NO movement and zoneminder's motion detection did not activate as it should periodically, ZoneMinder threw and alarm event and sent an email and push notifications to their mobile devices warning of a possible pump failure. As ZM development went on I think now it is possible to measure the time between motion detection events to determine if there are zero events over that time. In principle added a zero event warning which is exactly the opposite of what you need.

There are many settings to vary the degree of accuracy and if I help you we just might be able to use object recognition to tell if the swarm are bees or not......crazy might be using face detection to identify individual bees... for fun I use a camera at my cat's feeding area and face recognition to identify which cat is hanging around by name. Just have several photos of each cat and place them in the right directory and off we go.....but that is total overkill for what I really need and is just for fun.

I am confident that you can get ZM to detect bees swarming and send you notification that it's happening.

Screenshot(101).png
Screenshot(101).png (374.06 KiB) Viewed 1315 times
Screenshot(102).png
Screenshot(102).png (71.42 KiB) Viewed 1312 times
User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

@rockedge So what is the best way to install Zoneminder in a frugal fossa 64? Do I use the zoneminder_1.34.26-focal2_amd64.deb (6.5 MiB) and then look for missing libraries? I am guessing that would be the correct one for an AMD Fx-6300 Six-Core Processor.

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

First you need the web server, PHP, mysql (mariadb) installed. This will save you from too much stress. The version you have chosen will be fine for Fossapup64 and is a stable release I think. You can get my scripts and look through those, and you can use them as a guide if you want to be more hands on. Another option is just run the scripts and see how it goes.
Once you have the LAMP stack up and running then click on the ZM .deb file. You will need to also create the database and initialize it. I like to use phpmyadmin for this after I do the database .SQL import of the ZM structure. The script does this for you but a manual approach will let you know how it all works on another level. This all may sound daunting but it is really not too bad. In my script I use Hiawatha (LHMP) as the web server but Apache is more the standard LAMP and is also pretty easy to get going and ZM is more or less developed with Apache as the default web server.
Will you be trying it out today?

Also later on you can look into using zmNinja https://pliablepixels.github.io/ alongside of zoneminder.

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

@rockedge It appears that somehow I broke the PPM in fossa64 since I cant retrieve any info about dependencies or deps from any of the sources. It simply sits there for ever without updating.

It says I already have mysql client installed. (See screenshots).

I am just in to strange a place tonight to figure it all out :oops:
I thank you for all your help but I should probably try again tomorrow.

Attachments
desktop(6).jpg
desktop(6).jpg (7.22 KiB) Viewed 1287 times
desktop(5).jpg
desktop(5).jpg (21.67 KiB) Viewed 1287 times

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

@peppyy that's fine. Perhaps we can go step by step tomorrow, to get ZM going.

You will need Apache (maybe we will go Hiawatha)
from the PPM we will grab mariaDB by searching for mariadb-server, this database server is a MySQL swap in and in some ways superior. Otherwise you will need mysql-server from the PPM.

We will go over it all later when you are ready

And by the way the dev's over at the ZoneMinder project are interested in what you're doing and would like to include an article in the ZoneMinder Blog. Perhaps if we get it going well enough!

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

@rockedge Installed mariadb-server which said it was missing was libatm.so.1
which I can't see any need ATM asynchronous transfer mode.
I have not yet installed PHP , I can if I need that too.

From what I have read, zmNinja is for mobile clients, (which I do not have any of). I might have missed something there.

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

PHP 7 is needed for sure. zmNinja also has a desktop version as an app image that I like to use instead of a browser and the ZM web console at times. It is a bell and whistle in your case though

I just remembered I had some troubles getting mariaDB installed on Fossa64 and switched to the mysql-server. I'll have to try that out again later.

This is the list of the PHP lib's to add. The Fossa64 versions will be different more like php 7.4 but you will get the idea

Code: Select all

# install PHP
pkg add php-cgi_7.2 php-curl php-gd php-mysql php-dev_7.2
pkg add mime-support php-common php7.2-cli php7.2-common php7.2-dev php7.2-json php7.2-opcache  php7.2-readline shtool
pkg add php-xml
pkg add php-memcache_3.0.9 php-mbstring
pkg add libjs-mootools_1.4.5
pkg add libmp4v2 libvlc
pkg add php7.2-soap php7.2-bcmath php7.2-bz2

You can use the PPM to achieve the same

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

Start with Apache and enable the configs and modules. Then add PHP and test in a browser with a small php script in the web root

info.php

Code: Select all

<?php
 phpinfo();
?>

call it up in a browser something like http://localhost/info.php

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

Okay, I think I have everything installed so far.

Start with Apache and enable the configs and modules. Then add PHP and test in a browser with a small php script in the web root

info.php

I have no experience with Apache at all. To tell the truth I have never heard of a location called web root. :lol: I have worked with a few simple scrips before but it has been a while.
Here is what I installed from PPM, some was already installed.

Attachments
installed-6-21-10a.jpg
installed-6-21-10a.jpg (138.98 KiB) Viewed 1269 times

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

in a terminal create a new user named www-data

Code: Select all

adduser www-data

Starting to look good...open a terminal and type apache2ctl start we should see errors.

the web root with apache is /var/www/html usually. All of the Apache mods and configs are in /etc/apache2

once we see errors on the attempted start we can enable the needed Apache configs and modules. Once you see how it's done you will be off to the races in that respect

Also Fossapup64 has a Hiawatha web server installed already, this is a very good web server as well and at some point I will guide you in setting that up to run ZM as well. Hiawatha's web root is /root/Web-Server which belongs to the user webuser:webgroup already built in.

With both web servers the web root can be configured to be somewhere else, but we will go default all the way for now.

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

@rockedge root# apache2ctl start
AH00534: apache2: Configuration error: No MPM loaded.

Attachments
installed-6-21-4pm.jpg
installed-6-21-4pm.jpg (69.27 KiB) Viewed 1294 times

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

Okay, that's an error expected! That is a module that conflicts with another an we will bring that in order next. I am making some screenshots for you so I'll be back (as Arni says)

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

I found a thread where you were explaining it and set up the symlinks. Been doing a lot of reading on this rainy morning ;)

Looking at the screenshot I just noticed I un-commented the ServerRoot line when I added the ServerName. I'll put that back the way it was until told to do so.

Attachments
symlinks1.jpg
symlinks1.jpg (76.35 KiB) Viewed 1272 times

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

Leave it! You are correct with the ServerName and ServerRoot and leave them now as you indicate in the screenshot.
You will need to enable all of the Apache mods. Symlink all of them except the mpm_worker.conf,mpm_worker.load and mpm_event.conf, mpm_event.load

Also symlink all of the files in /etc/apache2/conf-available to /etc/apache2/conf-enabled

Symlink /etc/apache2/sites-available/000-default.conf to /etc/apache2/sites-enabled/localhost-zm.conf

This is what I added...the paths in the config file will be somewhat different for you and only the ServerName is the difference between /etc/apache2/sites-enabled/192.168.0.24-zm.conf and /etc/apache2/sites-enabled/localhost-zm.conf. I have the second one to be able to use the sub-net IP instead of localhost

Code: Select all

<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.
	ServerName 192.168.0.24

	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/hiawatha
	ScriptAlias /cgi-bin /usr/lib/zoneminder/cgi-bin
    <Directory "/usr/lib/zoneminder/cgi-bin">
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
    </Directory>
	
    Alias /phpmyadmin /usr/share/phpmyadmin
   <Directory /usr/share/phpmyadmin>
     Options -Indexes +FollowSymLinks
    <IfModule mod_dir.c>
     DirectoryIndex index.php
    </IfModule>
   </Directory>
   
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
</Directory>   
   
   
	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

these versions have some lines from the soon to be installed /etc/apache2/conf-available/zoneminder.conf which will be symlinked to /etc/apache2/conf-enabled/zoneminder.conf
which I found worked better.....because we must think outside of the box with Puppy Linux sometimes, and some of this stuff I am showing you took years of trial and error to get going smoothly, where in Ubuntu the package manager does it all including the database set up. Which we have not yet started.

once you have the symlinks in place try again apache2ctl start and report the result!

If it works the terminal will return to the command line prompt without any text

Screenshot(23).png
Screenshot(23).png (4.12 KiB) Viewed 1264 times
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2742 times
Been thanked: 2619 times
Contact:

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

If that happens in a browser try http://localhost

You may see a test page or just a empty directory list. Now make a php program called info.php in the web root.

Code: Select all

<?php
  phpinfo();
?>

now in the browser (if all the above worked) try http://localhost/info.php you should see a blank page

User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

Getting closer.
Do I need to install ZM before creating the next links?

Attachments
symlinks3.jpg
symlinks3.jpg (48.36 KiB) Viewed 1255 times
symlinks2.jpg
symlinks2.jpg (162.58 KiB) Viewed 1255 times

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

Clarity
Posts: 3821
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1621 times
Been thanked: 520 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by Clarity »

This thread starts with the OP's "Xeoma" camera concerns arriving at a solution.

This thread has taken on a completely new life as it has mophed to ZM only. I consider ZM an important discussion. Shouldn't the ZM discussion and its progress be moved and contained in its own ZM thread?

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

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by rockedge »

@peppyy We can go a head and add the ZM parts as we go.

Do you see something like this using http://localhost/info.php?

(11).png
(11).png (89.89 KiB) Viewed 1244 times
User avatar
peppyy
Posts: 330
Joined: Fri Jan 22, 2021 2:11 pm
Location: VT USA
Has thanked: 66 times
Been thanked: 28 times

Re: How to combine fossapup + webcam + motn detect +vrec?

Post by peppyy »

@rockedge It appears that Apache2 does not like the command 'ServerName'
apache2ctl start
AH00526: Syntax error on line 70 of /etc/apache2/apache2.conf:
Invalid command 'SeverName', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.

Also http://localhost is 'unable to connect' however cups at localhost:631 is fine. I am guessing I missed a step somewhere.

I do not have a file named /etc/apache2/sites-enabled/localhost-zm.conf
Do I need to create it first?

Puppy Linux. It just works!
Foassapup 9.5 64-(Frugal) Mobo, M5A99FX PRO - CPU, AMD FX-6300 6 core - mem,32GB - Storage
ssd 128GB M4 - ssd-256GB APS - ssd-1TB PNY - GPU GeForce GTX 1060 GAMING X 6G. Yes it's a Mutt.

Post Reply

Return to “Fossapup64”