Project

General

Profile

Support #589

Install ZoneMinder on FreeBSD

Added by Daniel Curtis over 4 years ago. Updated over 4 years ago.

Status:
Suspended
Priority:
Normal
Assignee:
Category:
Multimedia Server
Target version:
Start date:
04/01/2015
Due date:
% Done:

50%

Estimated time:
2.00 h

Description

This is a guide for setting up ZoneMinder on FreeBSD 9.3.

NOTE: Zoneminder will not work in a jail because it required the use of shared memory. If you still want to install zoneminder in a jail you can enable shared memory in jails by enabling, which can be found here

Setting up the Environment

  • Start by making sure everything is up to date:
    pkg update && pkg upgrade
    portsnap fetch extract
    
  • Install portmaster:
    cd /usr/ports/ports-mgmt/portmaster
    make install clean
    pkg2ng
    

Install MySQL

  • Install MySQL server and client:
    portmaster databases/mysql56-server databases/mysql56-client
    
  • Start and enable MySQL at boot:
    echo 'mysql_enable="YES"' >> /etc/rc.conf
    service mysql-server start
    
  • Secure your installation:
    mysql_secure_installation
    

Install ZoneMinder

  • Install ZoneMinder:
    portmaster multimedia/zoneminder
    
  • Log into the MySQL server:
    mysql -u root -p
    
    • And setup the ZoneMinder database:
      source /usr/local/share/doc/zoneminder/zm_create.sql
      
    • Now setup a user for the ZoneMinder database:
      grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'SuperSecretPassword'; flush privileges;
      quit
      
  • Start and enable ZoneMinder at boot:
    echo 'zoneminder_enable="YES"' >> /etc/rc.conf
    service zoneminder start
    

History

#1 Updated by Daniel Curtis over 4 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • % Done changed from 0 to 50

#2 Updated by Daniel Curtis over 4 years ago

  • Description updated (diff)

#3 Updated by Daniel Curtis over 4 years ago

  • Description updated (diff)

#4 Updated by Daniel Curtis over 4 years ago

  • Status changed from In Progress to Feedback

#5 Updated by Daniel Curtis over 4 years ago

  • Status changed from Feedback to Suspended

Also available in: Atom PDF