<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Malakymr</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Malakymr"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Malakymr"/>
	<updated>2026-05-03T15:26:53Z</updated>
	<subtitle>User contributions</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</id>
		<title>User talk:MalakymR/draft/ZoneMinder</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=User_talk:MalakymR/draft/ZoneMinder&amp;diff=15449"/>
		<updated>2019-01-31T11:44:23Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: 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;hr /&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>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14798</id>
		<title>Gentoo Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14798"/>
		<updated>2017-08-25T15:30:39Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: Duplicate / obvious information removed - Gentoo&amp;#039;s install handbook covers this if really needed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Gentoo ==&lt;br /&gt;
Gentoo is a distribution that prides itself on being extra-configurable, processor native, and easy to update. Gentoo users usually compile their installation from srouce, but while it&amp;#039;s great to nitpick on the details, Gentoo also has the option of installing a precompiled system quickly from a LiveCD.&lt;br /&gt;
&lt;br /&gt;
== Why Gentoo? ==&lt;br /&gt;
* Other distros have a one-size-fits-all approach, including full GUI environments unnecessary for a ZoneMinder CCTV DVR box.&lt;br /&gt;
* Binary distributions make it difficult to locate the appropriate libraries for ZoneMinder to build properly. Packages for these distrubutions often do not include development libraries and headers necessary for building software from source.&lt;br /&gt;
* A Gentoo system is highly configurable, and is easy to update and maintain.&lt;br /&gt;
* Gentoo&amp;#039;s portage package system in conjunction with the emerge command makes it much easier to obtain the needed packages for ZoneMinder and whatever else you might need.&lt;br /&gt;
&lt;br /&gt;
== Installation of Gentoo Linux ==&lt;br /&gt;
Gentoo has its own comprehensive install guide which is regularly updated, this can be found in the [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
== Installing ZoneMinder for Gentoo ==&lt;br /&gt;
There are some 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 are currently (April 2017) masked.&lt;br /&gt;
You will need to unmask the package&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.keywords&lt;br /&gt;
www-misc/zoneminder ~amd64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you may also want to add the version to /etc/portage/package.unmask&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.unmask&lt;br /&gt;
=www-misc/zoneminder-1.30.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After unmasking you can now install via the emerge command.&lt;br /&gt;
&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;
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 select,insert,update,lock tables,delete 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.conf&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;
==== Additional Packages ====&lt;br /&gt;
&lt;br /&gt;
You may also want to install:&lt;br /&gt;
* pciutils - this is useful if you have pci based capture cards, probably not required if you intend to use IP cameras.&lt;br /&gt;
* usbutils - same as pciutils for usb cameras, may not be required.&lt;br /&gt;
* samba - to exchange files with Windows clients/servers.&lt;br /&gt;
&lt;br /&gt;
These packages are easily installed by typing emerge --ask &amp;lt;package_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Maintaining the System==&lt;br /&gt;
===Watchdogs===&lt;br /&gt;
===Avoiding a Full Disk===&lt;br /&gt;
====Automatic FTP of Events====&lt;br /&gt;
====Purge When Full Script====&lt;br /&gt;
The default install includes a purge script that will clear frames at 95% disk capacity. This can be modifed under &amp;quot;Filters&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14624</id>
		<title>Gentoo Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14624"/>
		<updated>2017-04-18T22:47:19Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: /* Installing ZoneMinder for Gentoo */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Gentoo ==&lt;br /&gt;
Gentoo is a distribution that prides itself on being extra-configurable, processor native, and easy to update. Gentoo users usually compile their installation from srouce, but while it&amp;#039;s great to nitpick on the details, Gentoo also has the option of installing a precompiled system quickly from a LiveCD.&lt;br /&gt;
&lt;br /&gt;
== Why Gentoo? ==&lt;br /&gt;
* Other distros have a one-size-fits-all approach, including full GUI environments unnecessary for a ZoneMinder CCTV DVR box.&lt;br /&gt;
* Binary distributions make it difficult to locate the appropriate libraries for ZoneMinder to build properly. Packages for these distrubutions often do not include development libraries and headers necessary for building software from source.&lt;br /&gt;
* A Gentoo system is highly configurable, and is easy to update and maintain.&lt;br /&gt;
* Gentoo&amp;#039;s portage package system in conjunction with the emerge command makes it much easier to obtain the needed packages for ZoneMinder and whatever else you might need.&lt;br /&gt;
&lt;br /&gt;
== What You Will Need ==&lt;br /&gt;
* A [http://www.gentoo.org/main/en/where.xml Gentoo LiveCD]&lt;br /&gt;
* An internet connection, to download and install the necessary packages.&lt;br /&gt;
&lt;br /&gt;
== Installation of Gentoo Linux ==&lt;br /&gt;
Gentoo has its own comprehensive install guide which is regularly updated, this can be found in the [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
== Installing ZoneMinder for Gentoo ==&lt;br /&gt;
There are some 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 are currently (April 2017) masked.&lt;br /&gt;
You will need to unmask the package&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.keywords&lt;br /&gt;
www-misc/zoneminder ~amd64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you may also want to add the version to /etc/portage/package.unmask&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.unmask&lt;br /&gt;
=www-misc/zoneminder-1.30.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After unmasking you can now install via the emerge command.&lt;br /&gt;
&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;
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;
mysql_secure_installation&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 select,insert,update,lock tables,delete 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.conf&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;
==== Additional Packages ====&lt;br /&gt;
&lt;br /&gt;
You may also want to install:&lt;br /&gt;
* pciutils - this is useful if you have pci based capture cards, probably not required if you intend to use IP cameras.&lt;br /&gt;
* usbutils - same as pciutils for usb cameras, may not be required.&lt;br /&gt;
* samba - to exchange files with Windows clients/servers.&lt;br /&gt;
&lt;br /&gt;
These packages are easily installed by typing emerge --ask &amp;lt;package_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Maintaining the System==&lt;br /&gt;
===Watchdogs===&lt;br /&gt;
===Avoiding a Full Disk===&lt;br /&gt;
====Automatic FTP of Events====&lt;br /&gt;
====Purge When Full Script====&lt;br /&gt;
The default install includes a purge script that will clear frames at 95% disk capacity. This can be modifed under &amp;quot;Filters&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14623</id>
		<title>Gentoo Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14623"/>
		<updated>2017-04-18T22:45:05Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: /* config file */ simplified config&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Gentoo ==&lt;br /&gt;
Gentoo is a distribution that prides itself on being extra-configurable, processor native, and easy to update. Gentoo users usually compile their installation from srouce, but while it&amp;#039;s great to nitpick on the details, Gentoo also has the option of installing a precompiled system quickly from a LiveCD.&lt;br /&gt;
&lt;br /&gt;
== Why Gentoo? ==&lt;br /&gt;
* Other distros have a one-size-fits-all approach, including full GUI environments unnecessary for a ZoneMinder CCTV DVR box.&lt;br /&gt;
* Binary distributions make it difficult to locate the appropriate libraries for ZoneMinder to build properly. Packages for these distrubutions often do not include development libraries and headers necessary for building software from source.&lt;br /&gt;
* A Gentoo system is highly configurable, and is easy to update and maintain.&lt;br /&gt;
* Gentoo&amp;#039;s portage package system in conjunction with the emerge command makes it much easier to obtain the needed packages for ZoneMinder and whatever else you might need.&lt;br /&gt;
&lt;br /&gt;
== What You Will Need ==&lt;br /&gt;
* A [http://www.gentoo.org/main/en/where.xml Gentoo LiveCD]&lt;br /&gt;
* An internet connection, to download and install the necessary packages.&lt;br /&gt;
&lt;br /&gt;
== Installation of Gentoo Linux ==&lt;br /&gt;
Gentoo has its own comprehensive install guide which is regularly updated, this can be found in the [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
== Installing ZoneMinder for Gentoo ==&lt;br /&gt;
There are some 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 are currently (April 2017) masked.&lt;br /&gt;
You will need to unmask the package&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.keywords&lt;br /&gt;
www-misc/zoneminder ~amd64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you may also want to add the version to /etc/portage/package/unmask&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.unmask&lt;br /&gt;
=www-misc/zoneminder-1.30.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After unmasking you can now install via the emerge command.&lt;br /&gt;
&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;
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;
mysql_secure_installation&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 select,insert,update,lock tables,delete 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.conf&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;
==== Additional Packages ====&lt;br /&gt;
&lt;br /&gt;
You may also want to install:&lt;br /&gt;
* pciutils - this is useful if you have pci based capture cards, probably not required if you intend to use IP cameras.&lt;br /&gt;
* usbutils - same as pciutils for usb cameras, may not be required.&lt;br /&gt;
* samba - to exchange files with Windows clients/servers.&lt;br /&gt;
&lt;br /&gt;
These packages are easily installed by typing emerge --ask &amp;lt;package_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Maintaining the System==&lt;br /&gt;
===Watchdogs===&lt;br /&gt;
===Avoiding a Full Disk===&lt;br /&gt;
====Automatic FTP of Events====&lt;br /&gt;
====Purge When Full Script====&lt;br /&gt;
The default install includes a purge script that will clear frames at 95% disk capacity. This can be modifed under &amp;quot;Filters&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14622</id>
		<title>Gentoo Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14622"/>
		<updated>2017-04-18T22:41:35Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: /* Purge When Full Script */ initial description&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Gentoo ==&lt;br /&gt;
Gentoo is a distribution that prides itself on being extra-configurable, processor native, and easy to update. Gentoo users usually compile their installation from srouce, but while it&amp;#039;s great to nitpick on the details, Gentoo also has the option of installing a precompiled system quickly from a LiveCD.&lt;br /&gt;
&lt;br /&gt;
== Why Gentoo? ==&lt;br /&gt;
* Other distros have a one-size-fits-all approach, including full GUI environments unnecessary for a ZoneMinder CCTV DVR box.&lt;br /&gt;
* Binary distributions make it difficult to locate the appropriate libraries for ZoneMinder to build properly. Packages for these distrubutions often do not include development libraries and headers necessary for building software from source.&lt;br /&gt;
* A Gentoo system is highly configurable, and is easy to update and maintain.&lt;br /&gt;
* Gentoo&amp;#039;s portage package system in conjunction with the emerge command makes it much easier to obtain the needed packages for ZoneMinder and whatever else you might need.&lt;br /&gt;
&lt;br /&gt;
== What You Will Need ==&lt;br /&gt;
* A [http://www.gentoo.org/main/en/where.xml Gentoo LiveCD]&lt;br /&gt;
* An internet connection, to download and install the necessary packages.&lt;br /&gt;
&lt;br /&gt;
== Installation of Gentoo Linux ==&lt;br /&gt;
Gentoo has its own comprehensive install guide which is regularly updated, this can be found in the [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
== Installing ZoneMinder for Gentoo ==&lt;br /&gt;
There are some 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 are currently (April 2017) masked.&lt;br /&gt;
You will need to unmask the package&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.keywords&lt;br /&gt;
www-misc/zoneminder ~amd64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you may also want to add the version to /etc/portage/package/unmask&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.unmask&lt;br /&gt;
=www-misc/zoneminder-1.30.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After unmasking you can now install via the emerge command.&lt;br /&gt;
&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;
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;
mysql_secure_installation&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 select,insert,update,lock tables,delete 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;
configure the included config file . Heres my working version. It includes the database username/password&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chickcam ~ # grep ^[A-Za-z] /etc/zm.conf&lt;br /&gt;
ZM_VERSION=1.22.3&lt;br /&gt;
ZM_PATH_BUILD=&amp;gt;/usr/share/zoneminder&lt;br /&gt;
ZM_TIME_BUILD=1170184168&lt;br /&gt;
ZM_PATH_BIN=/usr/bin&lt;br /&gt;
ZM_PATH_LIB=/usr/lib&lt;br /&gt;
ZM_PATH_CONF=/etc&lt;br /&gt;
ZM_PATH_WEB   =/&lt;br /&gt;
ZM_PATH_CGI =/var/www/localhost/cgi-bin&lt;br /&gt;
ZM_WEB_USER=apache&lt;br /&gt;
ZM_WEB_GROUP=apache&lt;br /&gt;
ZM_DB_HOST=localhost&lt;br /&gt;
ZM_DB_NAME=zm&lt;br /&gt;
ZM_DB_USER=zm&lt;br /&gt;
ZM_DB_PASS=xxxxx&lt;br /&gt;
chickcam ~ #     &amp;lt;/pre&amp;gt;                        &lt;br /&gt;
&lt;br /&gt;
==== Additional Packages ====&lt;br /&gt;
&lt;br /&gt;
You may also want to install:&lt;br /&gt;
* pciutils - this is useful if you have pci based capture cards, probably not required if you intend to use IP cameras.&lt;br /&gt;
* usbutils - same as pciutils for usb cameras, may not be required.&lt;br /&gt;
* samba - to exchange files with Windows clients/servers.&lt;br /&gt;
&lt;br /&gt;
These packages are easily installed by typing emerge --ask &amp;lt;package_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Maintaining the System==&lt;br /&gt;
===Watchdogs===&lt;br /&gt;
===Avoiding a Full Disk===&lt;br /&gt;
====Automatic FTP of Events====&lt;br /&gt;
====Purge When Full Script====&lt;br /&gt;
The default install includes a purge script that will clear frames at 95% disk capacity. This can be modifed under &amp;quot;Filters&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Talk:Gentoo_Install&amp;diff=14621</id>
		<title>Talk:Gentoo Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Talk:Gentoo_Install&amp;diff=14621"/>
		<updated>2017-04-18T21:09:18Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;shouldnt there be a link to www.gentoo.org with details about gentoo and how to install it and then all that could be removed from here .&lt;br /&gt;
&lt;br /&gt;
the pages here would then be either installation of an ebuild or compiling from source ( which could go to a separate page that could be more or less generic )&lt;br /&gt;
&lt;br /&gt;
I agree - I found it strange the instructions where written here too which prompted me to come here. I will remove this now, I am not even sure if there is a point to linking to a distro install at all. I am looking at writing up the install docs to be relevant to the current version. There is a section in there about v4l cameras but I am not experienced with this so not sure what to do. [[User:Fatalfuuu|Fatalfuuu]] ([[User talk:Fatalfuuu|talk]]) 19:52, 12 April 2017 (UTC)&lt;br /&gt;
&lt;br /&gt;
There is a very good entry over on Gentoo&amp;#039;s wiki https://wiki.gentoo.org/wiki/ZoneMinder - it may be worth mirroring this - or simply just linking out to there? [[User:Malakymr|Malakymr]] ([[User talk:Malakymr|talk]]) 21:09, 18 April 2017 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Does not compile with GCC 4.6 ==&lt;br /&gt;
&lt;br /&gt;
As at 31-Dec-2012, using the zoneminder ebuild located in the overlay &amp;#039;&amp;#039;zugaina&amp;#039;&amp;#039;, zoneminder does not compile on Gentoo with kernel 3.6.11 and GCC 4.6.3 p1.8&lt;br /&gt;
&lt;br /&gt;
A solution was suggested that [http://www.linuxquestions.org/questions/slackware-14/zoneminder-1-25-0-wont-build-in-slackware64-current-939357/ in this forum post], however, I found that the patches, as supplied, did not work.&lt;br /&gt;
&lt;br /&gt;
Suggestions welcomed.&lt;br /&gt;
&lt;br /&gt;
Zoneminder as of 1.28 has been added into the main distro repo, and works well, currently up to 1.30.0. I have started to look into maintaining this and the docs if everything goes well over the next few weeks. [[User:Malakymr|Malakymr]] ([[User talk:Malakymr|talk]]) 21:09, 18 April 2017 (UTC)&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=User:Malakymr&amp;diff=14620</id>
		<title>User:Malakymr</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=User:Malakymr&amp;diff=14620"/>
		<updated>2017-04-18T20:48:13Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: Created page with &amp;quot;Maintains gentoo wiki for zoneminder.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maintains gentoo wiki for zoneminder.&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14619</id>
		<title>Gentoo Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_Install&amp;diff=14619"/>
		<updated>2017-04-18T20:39:17Z</updated>

		<summary type="html">&lt;p&gt;Malakymr: /* configuring the camera */ removed old v4l - most installs will be via ip cameras now so this is redundant - would suggest separate research where required&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Gentoo ==&lt;br /&gt;
Gentoo is a distribution that prides itself on being extra-configurable, processor native, and easy to update. Gentoo users usually compile their installation from srouce, but while it&amp;#039;s great to nitpick on the details, Gentoo also has the option of installing a precompiled system quickly from a LiveCD.&lt;br /&gt;
&lt;br /&gt;
== Why Gentoo? ==&lt;br /&gt;
* Other distros have a one-size-fits-all approach, including full GUI environments unnecessary for a ZoneMinder CCTV DVR box.&lt;br /&gt;
* Binary distributions make it difficult to locate the appropriate libraries for ZoneMinder to build properly. Packages for these distrubutions often do not include development libraries and headers necessary for building software from source.&lt;br /&gt;
* A Gentoo system is highly configurable, and is easy to update and maintain.&lt;br /&gt;
* Gentoo&amp;#039;s portage package system in conjunction with the emerge command makes it much easier to obtain the needed packages for ZoneMinder and whatever else you might need.&lt;br /&gt;
&lt;br /&gt;
== What You Will Need ==&lt;br /&gt;
* A [http://www.gentoo.org/main/en/where.xml Gentoo LiveCD]&lt;br /&gt;
* An internet connection, to download and install the necessary packages.&lt;br /&gt;
&lt;br /&gt;
== Installation of Gentoo Linux ==&lt;br /&gt;
Gentoo has its own comprehensive install guide which is regularly updated, this can be found in the [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
== Installing ZoneMinder for Gentoo ==&lt;br /&gt;
There are some 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 are currently (April 2017) masked.&lt;br /&gt;
You will need to unmask the package&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.keywords&lt;br /&gt;
www-misc/zoneminder ~amd64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you may also want to add the version to /etc/portage/package/unmask&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/portage/package.unmask&lt;br /&gt;
=www-misc/zoneminder-1.30.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After unmasking you can now install via the emerge command.&lt;br /&gt;
&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;
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;
mysql_secure_installation&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 select,insert,update,lock tables,delete 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;
configure the included config file . Heres my working version. It includes the database username/password&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chickcam ~ # grep ^[A-Za-z] /etc/zm.conf&lt;br /&gt;
ZM_VERSION=1.22.3&lt;br /&gt;
ZM_PATH_BUILD=&amp;gt;/usr/share/zoneminder&lt;br /&gt;
ZM_TIME_BUILD=1170184168&lt;br /&gt;
ZM_PATH_BIN=/usr/bin&lt;br /&gt;
ZM_PATH_LIB=/usr/lib&lt;br /&gt;
ZM_PATH_CONF=/etc&lt;br /&gt;
ZM_PATH_WEB   =/&lt;br /&gt;
ZM_PATH_CGI =/var/www/localhost/cgi-bin&lt;br /&gt;
ZM_WEB_USER=apache&lt;br /&gt;
ZM_WEB_GROUP=apache&lt;br /&gt;
ZM_DB_HOST=localhost&lt;br /&gt;
ZM_DB_NAME=zm&lt;br /&gt;
ZM_DB_USER=zm&lt;br /&gt;
ZM_DB_PASS=xxxxx&lt;br /&gt;
chickcam ~ #     &amp;lt;/pre&amp;gt;                        &lt;br /&gt;
&lt;br /&gt;
==== Additional Packages ====&lt;br /&gt;
&lt;br /&gt;
You may also want to install:&lt;br /&gt;
* pciutils - this is useful if you have pci based capture cards, probably not required if you intend to use IP cameras.&lt;br /&gt;
* usbutils - same as pciutils for usb cameras, may not be required.&lt;br /&gt;
* samba - to exchange files with Windows clients/servers.&lt;br /&gt;
&lt;br /&gt;
These packages are easily installed by typing emerge --ask &amp;lt;package_name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Maintaining the System==&lt;br /&gt;
===Watchdogs===&lt;br /&gt;
===Avoiding a Full Disk===&lt;br /&gt;
====Automatic FTP of Events====&lt;br /&gt;
====Purge When Full Script====&lt;/div&gt;</summary>
		<author><name>Malakymr</name></author>
	</entry>
</feed>