Fedora

From ZoneMinder Wiki
Jump to navigationJump to search

The Fedora Project is a Red Hat sponsored, community-supported open source project. Its stated goal is to promote the rapid progress of free (as in freedom) and open source software and content, and its rapid innovation is possible using open processes and public forums.

The project is led by the Fedora Project Board, which is comprised of community leaders and Red Hat members, and this group steers the direction of the project and of Fedora Core, the Linux distribution it develops. Red Hat employees work with the code alongside community members, and many Fedora Project innovations make their way into new releases of Red Hat Enterprise Linux.

ZoneMinder is developed on the Fedora distribution and no special actions are usually required for installation.

For problems with ZoneMinder packages from the Fedora Extras Repo, contact the package maintainer Martin Ebourne (mebourne).

Fedora 11 and 12

You should be able to just do "yum install zoneminder", create the zm database, find the zm_create.sql file (rpm -ql zoneminder) and import it to mysql, then start zoneminder. This didn't work for me so I had to compile. Version 1.23.3 compiled ok on Fedora 9/10/11 but I had problems with version 1.24.2. This was due to php.ini section short_open_tag = Off, set to on

short_open_tag = On

Restart/reload apache

sudo service httpd restart

The other problem was zm_create.sql had duplicate indexes reported using phpMyAdmin. Removed all "INSERT INTO MonitorPresets" and "INSERT INTO MonitorPresets" in zm_create.sql and that imported cleanly.

http://www.zoneminder.com/forums/viewtopic.php?p=50242

Manual Install Version 1.24.2

Problems with compiling fixed by adding #include <cstdio> to all .cpp files in src directory and removing ccache package (yum remove ccache)

http://www.zoneminder.com/forums/viewtopic.php?p=55152

http://www.zoneminder.com/forums/viewtopic.php?t=12515&sid=0da85eb2fc78917d7a78cf788603a320

If using ffmpeg and ffmpeg-devel packages you may see problem compiling with libavutil.a . I could not get ffmpeg to compile so downloaded the Fedora source package and compiled it manually.

yumdownloader --source ffmpeg

sudo rpm -Uvh ffmpeg-0.5-5.20091026svn.fc12.src.rpm

Needed the following packages

sudo yum install dirac-devel faad2-devel gsm-devel imlib2-devel lame-devel libdc1394-devel libtheora-devel libvdpau-devel openjpeg-devel schroedinger-devel speex-devel texi2html x264-devel xvidcore-devel yasm

See http://fozzolog.fozzilinymoo.org/tech/2009/11/recompiling-ffmpeg-for-fedora-12-to-add-faac-support.html (don't need to add faac support, just follow procedure)

My rpmbuild failed so from the BUILD/ffmpeg-20091026

make
sudo make install
sudo make install-libs

and configured ZoneMinder to use /usr/local for FFMPEG

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost \
ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs="-L/usr -L/usr/lib/mysql" ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local

Fedora 8

  • Have packages for Apache and MySQL installed on the system.
  • Install the zoneminder RPM package on the system
Fedora Information for package zoneminder
* http://koji.fedoraproject.org/koji/packageinfo?packageID=4691
  • Configure zoneminder
  • Make sure Apache and MySQL services are running
  • Edit the zoneminder.conf apache configuration file to allow web connections
 vi /etc/httpd/conf.d/zoneminder.conf
  • Build the MySQL database table for zoneminder
 mysql -p -u root mysql < /usr/share/zoneminder/db/zm_create.sql > mysqladmin -p -u root reload

The Fedora RPM creates /var/log/zoneminder, but the database scripts point logs to /tmp, rather than the new directory.

  • Click Options, Paths tab, and change
 ZM_PATH_LOGS = /var/log/zoneminder
  • Click Options, Debug tab, and change
 ZM_EXTRA_DEBUG_LOG = /var/log/zoneminder/zm_debug.log+
  • Install ffmpeg on Fedora.

Due to licensing the ffmpeg package is absent from Fedora. It can be added from Livna.

 wget http://rpm.livna.org/livna-release-8.rpm
 rpm -ih livna-release-8.rpm
 yum install ffmpeg
 yum install ffmpeg-devel

Which provides the following: ffmpeg-libs-0.4.9-0.41.20071011.lvn8, ffmpeg-0.4.9-0.41.20071011.lvn8, ffmpeg-devel-0.4.9-0.41.20071011.lvn8

  • Test ffmpeg
 ffmpeg -f image2 -i %03d-capture.jpg /tmp/movie.mpg

Fedora 7

Fedora Core 6

Fedora Core 4

Set web user and group correctly and set the log dir to a writeable location. With FC4 there are three things that must be done to get ZM running,:

  1. is in the /etc/ld.so.conf.d/ dir created a file with 775 perm called zm.conf and add the line '/usr/local/lib' to it and type 'ldconfig' once it is added, also with a fresh install of FC4 make sure SE linux is disabled if you are not using it. Check your log path in options under the paths tab. This will tell you were the log are going to be put.
  2. Second make sure the path exists.
  3. Third create the log files if they do not exist and make sure that they have the correct permissions. If zm can not open and write the log files, it will not start.