<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/index.php?action=history&amp;feed=atom&amp;title=User_talk%3AMalakymR%2Fdraft%2FZoneMinder</id>
	<title>User talk:MalakymR/draft/ZoneMinder - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/index.php?action=history&amp;feed=atom&amp;title=User_talk%3AMalakymR%2Fdraft%2FZoneMinder"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=User_talk:MalakymR/draft/ZoneMinder&amp;action=history"/>
	<updated>2026-05-03T16:13:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=User_talk:MalakymR/draft/ZoneMinder&amp;diff=15449&amp;oldid=prev</id>
		<title>Malakymr: Created page with &quot;== Installing ZoneMinder for Gentoo == There are ZoneMinder packages (called &#039;ebuilds&#039;) available for Gentoo in the &#039;portage&#039; tree. https://packages.gentoo.org/packages/www-mi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=User_talk:MalakymR/draft/ZoneMinder&amp;diff=15449&amp;oldid=prev"/>
		<updated>2019-01-31T11:44:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Installing ZoneMinder for Gentoo == There are ZoneMinder packages (called &amp;#039;ebuilds&amp;#039;) available for Gentoo in the &amp;#039;portage&amp;#039; tree. https://packages.gentoo.org/packages/www-mi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Installing ZoneMinder for Gentoo ==&lt;br /&gt;
There are ZoneMinder packages (called &amp;#039;ebuilds&amp;#039;) available for Gentoo in the &amp;#039;portage&amp;#039; tree. https://packages.gentoo.org/packages/www-misc/zoneminder&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder ebuilds (as of Jan 2019) are out of date. To get up to date versions including a live git version add the mkr-overlay.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge -a layman&lt;br /&gt;
layman -a mkr-overlay (Note: pending addition to gentoo&amp;#039;s overlay repo list - can be added directly to local repo list if needed)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want the latest RELEASE then simply emerge zoneminder.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge --ask zoneminder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to run from git master then specify the 9999 ebuild that downloads live from github.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge --ask =zoneminder:9999&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: 9999 will not update with emerge update commands and needs to rerun as and when. Running live git versions is risky and requires reading change note for breaking system changes.&lt;br /&gt;
&lt;br /&gt;
This should pull in apache, php and mariadb/mysql as required.&lt;br /&gt;
&lt;br /&gt;
Apache still needs setting up to use PHP if you haven&amp;#039;t already done it. /etc/conf.d/apache2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
APACHE2_OPTS=&amp;quot;-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -D PROXY&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZoneMinder currently depends on mysql. Gentoo will install [https://packages.gentoo.org/packages/dev-db/mariadb dev-db/maria] by default unless you configure otherwise. This will need to be configured prior to running ZoneMinder and adding its database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge --config mariadb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once configured, you will need to add the zm database and install the default tables.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -uroot -p -e &amp;quot;create database zm;&amp;quot;&lt;br /&gt;
mysql -uroot -p zm &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
mysql -uroot -p&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; use zm; grant lock tables,alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on zm.* to &amp;#039;zmuser&amp;#039;@localhost identified by &amp;#039;zmpass&amp;#039;;&lt;br /&gt;
mysql&amp;gt; flush privileges;&lt;br /&gt;
mysql&amp;gt; exit;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Config File ===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder&amp;#039;s config file is located at /etc/zm/zm.conf though this is not meant to be changed.&lt;br /&gt;
&lt;br /&gt;
Create your own /etc/zm/conf.d/03-custom.conf with your new settings&lt;br /&gt;
&lt;br /&gt;
A default install will only require your database details to be updated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ZM_DB_USER=zmuser&lt;br /&gt;
ZM_DB_PASS=zmpass&lt;br /&gt;
&amp;lt;/pre&amp;gt;                        &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is an example apache2 vhost config that can simply be extracted and normally works for all situations.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bzcat /usr/share/doc/zoneminder-*/10_zoneminder.conf.bz2 &amp;gt; /etc/apache2/vhosts.d/10_zoneminder.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This sets ZM up in a /zm sub directory. (Note: work needs to be done here to default it to / and vhost this dir via a single alias or hostname)&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
</feed>