Zoneminder on FreeNAS

Status
Not open for further replies.

Marcet

Contributor
Joined
May 31, 2013
Messages
193

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
confirm it works by stopping the jail, running the command, then checking the output. the command worked for me, but I didn't try it as an init command.
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
Will do more testing. Maybe Pre-Init is to early ?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Will do more testing. Maybe Pre-Init is to early ?
hmm, your probably right. we just need to before the jail is started, but after the pool is mounted
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ahh, not sure then. maybe mounting tmpfs isn't possible from the freenas webui
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
When I tried with post-init, the jail didn't start well.
I had to restart it manually to get the web ui of zoneminder running.
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
What if we disable autostart and have a post-init script to mount tmpfs and start the jail ?
 

avguy4612

Cadet
Joined
Jul 6, 2016
Messages
2
Hey All. Thank you for all of your hard work putting together this guide. I have ZM up and running now so how do I point it to a share on Freenas to store the footage?
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
Hey All. Thank you for all of your hard work putting together this guide. I have ZM up and running now so how do I point it to a share on Freenas to store the footage?
I've mounted two datasets to the jail mapped to :
/usr/local/www/zoneminder/events
/usr/local/www/zoneminder/images
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I've mounted two datasets to the jail mapped to :
/usr/local/www/zoneminder/events
/usr/local/www/zoneminder/images

Did this worked without synlink'ing them? Never done that in FN/FreeBSD. In Linux was hell to get the permissions working, but that was mapping a smb share in fstab (probably the same as adding a storage to the jail in FN?)
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
Did this worked without synlink'ing them? Never done that in FN/FreeBSD. In Linux was hell to get the permissions working, but that was mapping a smb share in fstab (probably the same as adding a storage to the jail in FN?)
Sure, it works as is. No tricks to do.
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
As for mounting tmpfs. There is a .<jailname>.meta folder containing an fstab file and some pre-start and post-start files as well.
Is it the way to go ?
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
confirm it works by stopping the jail, running the command, then checking the output. the command worked for me, but I didn't try it as an init command.
I had no success even using your method.
Have you used some sysctls option ?
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I had no success even using your method.
Have you used some sysctls option ?

My FreeBSD VM was BAU install. My FN is running kern.chroot_allow_open_directories=2 just as a workaround to dhclient not obtaining the IPs until the fix is released. Would say that wouldn't affect the install.
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
My FreeBSD VM was BAU install. My FN is running kern.chroot_allow_open_directories=2 just as a workaround to dhclient not obtaining the IPs until the fix is released. Would say that wouldn't affect the install.
I have no install problem.
I'm searching a way to mount tmpfs to /tmp in the jail.
 

frozn00

Explorer
Joined
Dec 18, 2014
Messages
57
I am currently running Freenas 9.3. So is there a pbi that can be used to install Zoneminder on freenas? If so how stable is it? Thank you!
 

frozn00

Explorer
Joined
Dec 18, 2014
Messages
57
I did run into an issue after running make install clean. I had to answer OK to a few of the install questions and pretty much left whatever was checked at default. The installation got to curl-7.50.1 and I received the error after selecting OK:

Code:
You have a /usr/local/lib/libcrypto.so file installed, but the framework is unable
to determine what port it comes from.
Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again.
*** [check-makevars] Error code 1

Stop in /usr/ports/ftp/curl.
*** [install] Error code 1

Stop in /usr/ports/ftp/curl.
*** [lib-depends] Error code 1

Stop in /usr/ports/devel/cmake.
*** [install] Error code 1

Stop in /usr/ports/devel/cmake.
*** [build-depends] Error code 1

Stop in /usr/ports/multimedia/zoneminder.
*** [install] Error code 1

Stop in /usr/ports/multimedia/zoneminder.
root@jail_1:/usr/ports/multimedia/zoneminder #


Do I actually need to do what it says
Code:
Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again.
if so what does that mean and how do I correct the problem and come back and pickup where the install left off or do I have to do a make install clean again after the problem is fixed? Thank you very much!
 

frozn00

Explorer
Joined
Dec 18, 2014
Messages
57
Actually tried another make install clean and get:

Code:
Stop in /usr/ports/multimedia/zoneminder.
root@jail_1:/usr/ports/multimedia/zoneminder #
root@jail_1:/usr/ports/multimedia/zoneminder # make install clean
===>   zoneminder-1.30.0_3 depends on package: p5-DBI>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-DBD-mysql>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Date-Manip>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Test-LWP-UserAgent>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Sys-Mmap>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-LWP-Protocol-https>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Sys-CPU>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Sys-MemInfo>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Data-Dump>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-SOAP-WSDL>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-Data-UUID>=0 - found
===>   zoneminder-1.30.0_3 depends on package: p5-IO-Socket-Multicast>=0 - found
===>   zoneminder-1.30.0_3 depends on executable: ffmpeg - found
===>   zoneminder-1.30.0_3 depends on file: /usr/local/include/linux/videodev2.h - found
===>   zoneminder-1.30.0_3 depends on file: /usr/local/bin/cmake - not found
===>   cmake-3.6.1 depends on executable: sphinx-build - found
===>   cmake-3.6.1 depends on shared library: libcurl.so - not found
===>  curl-7.50.1 GSSAPI_BASE is not compatible with OpenSSL from ports. Use
other GSSAPI options or OpenSSL from base system.
*** [install] Error code 1

Stop in /usr/ports/ftp/curl.
*** [lib-depends] Error code 1

Stop in /usr/ports/devel/cmake.
*** [install] Error code 1

Stop in /usr/ports/devel/cmake.
*** [build-depends] Error code 1

Stop in /usr/ports/multimedia/zoneminder.
*** [install] Error code 1

Stop in /usr/ports/multimedia/zoneminder.
root@jail_1:/usr/ports/multimedia/zoneminder #
 
Status
Not open for further replies.
Top