Zoneminder on FreeNAS

Status
Not open for further replies.

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
wow, that could be pretty professional looking with some fine tuning. nice job

I'd rather not contribute too much, sorry, my guides/notes to myself are always as barren as possible to keep the person guessing, lol.

Like every good FreeBSD guy :)

here's some suggestions on what you have. * why are you installing php / php-mysl? these are dependencies of ZM and will be installed with it.[/QUOTE said:
Because I've noticed some dependencies were not installed, so started installing FEMP after the ZM port to try to make it work. One of my comments in the document is that MySQL is not installed and I assume is needed as dependency. Also on item 1 of the README leads the reader to the assumption you got to have nginx and mysql running on the same server, so one could start by installing FEMP anyways.

* why do you say to edit rc.conf in some places said:
Easy fix. Just playing around to learn ;)

* why is your nginx config so complicated? ZM can live with the simple one from the readme said:
I'm just following the instructions from a rookie's perspective, so built it based on the examples to install FEMP, removed the server session and added yours. If I only need the server session, I can make that change in the document.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the zoneminder package doesn't depend on a mysql server because you could have that on another jail/server, just like your webserver could be on another host.

try installing zoneminder v1.30 again in a fresh jail and you'll see it pulls in php56 & php56-mysql.

to clarify, ZM doesn't require nginx/fcgiwrap specifically, it just requires a webserver with cgi support, you could do this with apache if you like instead.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
the zoneminder package doesn't depend on a mysql server because you could have that on another jail/server, just like your webserver could be on another host.

try installing zoneminder v1.30 again in a fresh jail and you'll see it pulls in php56 & php56-mysql.

to clarify, ZM doesn't require nginx/fcgiwrap specifically, it just requires a webserver with cgi support, you could do this with apache if you like instead.

I'm working with a FreeBSD VM on virtualbox, so the test will be from it - will report results below.

My $0.02 is that the how-to should have how to install a working copy of ZM without assuming the user has/knows how to do that and/or link to an existing one (I sure don't), so the easiest way is to have a jail or VM or physical box configured from A through Z.

I don't have any passion for Apache or nginx. I'll continue with nginx for two reasons: (1) You know nginx ;) and (2) It seems to be lighter (although we are using MySQL instead of SQLite that I've heard is easier on resources).

Output from pkg install zoneminder


New packages to be INSTALLED:
zoneminder: 1.25.0_7
pcre: 8.38_1
php56-session: 5.6.22
php56: 5.6.22
libxml2: 2.9.3
mysql56-client: 5.6.30
libedit: 3.1.20150325_2
gcc: 4.8.5_2
mpc: 1.0.3
gmp: 5.1.3_3
mpfr: 3.1.3_1
binutils: 2.25.1_1,1
gcc-ecj: 4.5
jpeg-turbo: 1.4.2
ffmpeg0: 0.7.17_2,1
libtheora: 1.1.1_6
libvorbis: 1.3.5,3
libogg: 1.3.2_1,4
libvpx: 1.5.0_1
xvid: 1.3.4,1
schroedinger: 1.0.11_4
orc: 0.4.25
freetype2: 2.6.3
libx264: 0.144.2533_1
opencv-core: 2.4.9_3
php56-json: 5.6.22
sudo: 1.8.16_1
netpbm: 10.35.98
jbigkit: 2.1_1
jasper: 1.900.1_16
tiff: 4.0.6_1
png: 1.6.21
php56-mysql: 5.6.22

The process will require 528 MiB more space.
93 MiB to be downloaded.

Proceed with this action? [y/N]:


I can see php56 and php56-mysql above, but see zoneminder 1.25, not 1.30.

Updated the ports and tried again:

root@freebsd-1:/usr/ports/multimedia # pkg install zoneminder
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 33 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
zoneminder: 1.25.0_7

Same 1.25.0_7. Is this correct?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
not sure why 1.25 is still offered in the repo you are using. I just tested in a jail on FreeNAS and got v1.30, though with all the X dependencies I was complaining about. I personally would compile from ports so I could choose what gets installed.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
not sure why 1.25 is still offered in the repo you are using. I just tested in a jail on FreeNAS and got v1.30, though with all the X dependencies I was complaining about. I personally would compile from ports so I could choose what gets installed.

That's is going beyond what I know who to do at this point, so if someone want's to continue the write-up I can send the doc, instead of the pdf. I do have it running on my ubuntu and was only trying to get it working for the FN folks to use.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
That's is going beyond what I know who to do at this point, so if someone want's to continue the write-up I can send the doc, instead of the pdf. I do have it running on my ubuntu and was only trying to get it working for the FN folks to use.
compiling from ports, is about as simple as installing from pkg. you update your ports tree 'portsnap fetch install/update'
enter the directory you want to install compile/install it
'cd /usr/ports/multimedia/zoneminder
make install clean'
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Will try ... do I need to install the dependencies as won't be with pkg?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Will try ... do I need to install the dependencies as won't be with pkg?
no, ports will install them all. though things could take a while depending on your system, you could manually grab dependencies from pkg first, another trick is to 'make config-recursive' first, so you can leave the install process alone after you go through the options.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
What FreeBSD version do you have?
I've done my testing on a vanilla jail on freenas, I think they are 10.3.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
What FreeBSD version do you have?
I've done my testing on a vanilla jail on freenas, I think they are 10.3.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
With make from zm port it does install 1.30

upload_2016-6-16_15-33-40.png
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Last one... 99% there, as zm started. Probably nginx configuration?
 

Attachments

  • Zoneminder FreeBSD installation 0.02.pdf
    304.9 KB · Views: 696

melloa

Wizard
Joined
May 22, 2016
Messages
1,749

Wallybanger

Contributor
Joined
Apr 17, 2016
Messages
150
Last one... 99% there, as zm started. Probably nginx configuration?
That all looks great. So are you running FreeBSD in a jail? Does that use the FreeNAS kernal or will it use up extra resources?

I have 9 HDDs and a stick of ram sitting on my desk with more stuff on the way. Hopefully I will be doing this soon!
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
That all looks great. So are you running FreeBSD in a jail? Does that use the FreeNAS kernal or will it use up extra resources?

I have 9 HDDs and a stick of ram sitting on my desk with more stuff on the way. Hopefully I will be doing this soon!

Nope, FreeBSD 10.3 Virtualbox VM. Easy to snapshot back and forth while debugging my mistakes. Will move to FN when it's working. I did install it on a VM inside a jail last week for testing and run it on an ubuntu box.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Double check the how-to and let me know what corrections to make so we can make it available to all?

And by the way, bad phrasing here ... Not trying to say to anyone to do anything.
 
Status
Not open for further replies.
Top