<?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=Gentoo_ZioPRoTo</id>
	<title>Gentoo ZioPRoTo - 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=Gentoo_ZioPRoTo"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_ZioPRoTo&amp;action=history"/>
	<updated>2026-04-19T20:19:22Z</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=Gentoo_ZioPRoTo&amp;diff=1844&amp;oldid=prev</id>
		<title>Jan: Gentoo moved to Gentoo ZioPRoTo</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_ZioPRoTo&amp;diff=1844&amp;oldid=prev"/>
		<updated>2007-01-19T12:42:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/Gentoo&quot; title=&quot;Gentoo&quot;&gt;Gentoo&lt;/a&gt; moved to &lt;a href=&quot;/Gentoo_ZioPRoTo&quot; title=&quot;Gentoo ZioPRoTo&quot;&gt;Gentoo ZioPRoTo&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:42, 19 January 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Gentoo_ZioPRoTo&amp;diff=1778&amp;oldid=prev</id>
		<title>Jameswilson at 23:25, 20 November 2006</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Gentoo_ZioPRoTo&amp;diff=1778&amp;oldid=prev"/>
		<updated>2006-11-20T23:25:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I wrote a little bit of documentation, I guess this might be good for the Community.&lt;br /&gt;
&lt;br /&gt;
ZioPRoTo (Saverio Proto)&lt;br /&gt;
&lt;br /&gt;
http://zioproto.ninux.org/howto/ZoneMinder%20on%20Gentoo%20HowTo%20ZioPRoTo%20ENGLISH%20V1pre2.pdf&lt;br /&gt;
http://zioproto.ninux.org/howto/ZoneMinder%20on%20Gentoo%20HowTo%20ZioPRoTo%20V1pre2.pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This document tells you how to make a ZoneMinder Server on Gentoo Linux&lt;br /&gt;
I spent a couple of days reading the ZoneMinder Forum to have a nice ZoneMinder installation on&lt;br /&gt;
Gentoo, so in this thread I&amp;#039;m trying to write down the complete guide Smile&lt;br /&gt;
Few easy steps to install ZoneMinder on Gentoo Smile&lt;br /&gt;
First of all install Gentoo&lt;br /&gt;
I used version 2006.1 to write the HowTo&lt;br /&gt;
Grab the Live CD and make a networkless installation, installing no extra packages. Just the base&lt;br /&gt;
system.&lt;br /&gt;
Once installed modify the file /etc/make.conf&lt;br /&gt;
You must set ACCEPT_KEYWORDS=&amp;quot;~x86&amp;quot; because ZoneMinder is still not stable in the&lt;br /&gt;
Portage. This will change in the future, keep in mind this document is dated October 2006&lt;br /&gt;
SYNC and GENTOO_MIRRORS are just to have faster download sources.&lt;br /&gt;
Here is my Make.conf example:&lt;br /&gt;
------------------------------------------------------------------------------------------&lt;br /&gt;
# These settings were set by the catalyst build script that&lt;br /&gt;
automatically built this stage&lt;br /&gt;
# Please consult /etc/make.conf.example for a more detailed&lt;br /&gt;
example&lt;br /&gt;
#CFLAGS=&amp;quot;-O2 -march=i686 -pipe&amp;quot;&lt;br /&gt;
CFLAGS=&amp;quot;-march=i686 -O2 -pipe&amp;quot;&lt;br /&gt;
CHOST=&amp;quot;i686-pc-linux-gnu&amp;quot;&lt;br /&gt;
CXXFLAGS=&amp;quot;${CFLAGS}&amp;quot;&lt;br /&gt;
MAKEOPTS=&amp;quot;&amp;quot;&lt;br /&gt;
ACCEPT_KEYWORDS=&amp;quot;~x86&amp;quot;&lt;br /&gt;
USE=&amp;quot;-cups mpeg apache2 php mysql -X java samba -gtk swat png tiff&lt;br /&gt;
gif jpeg -opengl alsa -firefox -kde dvdr encode mp3 vorbis -gnome&lt;br /&gt;
-new-login xml graphviz bzip2 bash-completion&amp;quot;&lt;br /&gt;
FEATURES=&amp;quot;&amp;quot;&lt;br /&gt;
SYNC=&amp;quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&amp;quot;&lt;br /&gt;
GENTOO_MIRRORS=&amp;quot;ftp://ftp.unina.it/pub/linux/distributions/gentoo&amp;quot;&lt;br /&gt;
LINGUAS=&amp;quot;it&amp;quot;&lt;br /&gt;
--------------------------------------------------------------------------------------------&lt;br /&gt;
Now you can go ahead and use emerge to install what you need:&lt;br /&gt;
emerge --sync update list of packets&lt;br /&gt;
emerge portage update portage&lt;br /&gt;
emerge --update world update all system&lt;br /&gt;
etc-update update config files&lt;br /&gt;
emerge libpcre If you dont install this manually now, later on&lt;br /&gt;
zoneminder will complain about this in the syslog.&lt;br /&gt;
emerge zoneminder zoneminder, automatically this will also install apache2&lt;br /&gt;
mysql and php&lt;br /&gt;
When emerge is done, last few lines on the console will show how to modify /etc/zm.conf and how&lt;br /&gt;
to prepare the mysql database.&lt;br /&gt;
Let’s see now these two steps:&lt;br /&gt;
I used apache2, with apache2 may be a little different&lt;br /&gt;
/etc/zm.conf&lt;br /&gt;
-------------------------------------------------------&lt;br /&gt;
ZM_PATH_BUILD = /usr/share/zoneminder&lt;br /&gt;
ZM_PATH_WEB = /var/www/localhost/htdocs/zoneminder&lt;br /&gt;
ZM_PATH_CGI = /var/www/localhost/cgi-bin&lt;br /&gt;
# ZoneMinder database hostname or ip address&lt;br /&gt;
ZM_DB_HOST=localhost&lt;br /&gt;
# ZoneMinder database name&lt;br /&gt;
ZM_DB_NAME=zm&lt;br /&gt;
# ZoneMinder database user&lt;br /&gt;
ZM_DB_USER=zm&lt;br /&gt;
# ZoneMinder database password&lt;br /&gt;
ZM_DB_PASS=zm&lt;br /&gt;
---------------------------------------------------------&lt;br /&gt;
Now run mysql_install_db if this is your first mysql startup.&lt;br /&gt;
And then mysql /etc/init.d/mysql start&lt;br /&gt;
Now we create the database tables needed by zoneminder:&lt;br /&gt;
mysql -u root &amp;lt; /usr/share/zoneminder/db/zm_create.sql&lt;br /&gt;
Into /etc/zm.conf just use root as your DB user so you dont have to create a user. Of course it&lt;br /&gt;
is better to create a user, but I’m not explaining this here now.&lt;br /&gt;
Now let’s start apache2 /etc/init.d/apache2 start. Point your browser at&lt;br /&gt;
http://IP/zoneminder and we should see the ZoneMinder console.&lt;br /&gt;
We are almost done, just a few things to fix:&lt;br /&gt;
to make everything start automatically when the machine boots:&lt;br /&gt;
rc-update add apache2 default&lt;br /&gt;
rc-update add mysql default&lt;br /&gt;
rc-update add zoneminder default&lt;br /&gt;
Now modify /etc/sysctl.conf inserting these two lines:&lt;br /&gt;
kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&lt;br /&gt;
If you dont do this, ZoneMinder won’t have enough shared memory and will not work with images&lt;br /&gt;
bigger than 320x240.&lt;br /&gt;
The Start/Stop script provided with the package is not working, so on the ZoneMinder forum I&lt;br /&gt;
found information about how to fix the problem:&lt;br /&gt;
Modify /etc/passwd&lt;br /&gt;
Replace:&lt;br /&gt;
apache:x:81:81:added by portage for apache:/var/www:/usr/sbin/nologin&lt;br /&gt;
with:&lt;br /&gt;
apache:x:81:81:added by portage for apache:/var/www:/bin/bash&lt;br /&gt;
We let the apache user execute commando (warning this is a securty threat!)&lt;br /&gt;
We put this brand new file /etc/init.d/zoneminder:&lt;br /&gt;
---------------------------------------------------------------------------------------------------&lt;br /&gt;
#!/sbin/runscript&lt;br /&gt;
# Start and stop zoneminder (for Gentoo)&lt;br /&gt;
opts=&amp;quot;start stop status&amp;quot;&lt;br /&gt;
depend() {&lt;br /&gt;
use mysql apache2&lt;br /&gt;
}&lt;br /&gt;
prog=ZoneMinder&lt;br /&gt;
ZM_PATH_BIN=&amp;quot;/usr/bin&amp;quot;&lt;br /&gt;
command=&amp;quot;$ZM_PATH_BIN/zmpkg.pl&amp;quot;&lt;br /&gt;
start() {&lt;br /&gt;
ebegin &amp;quot;Starting $prog&amp;quot;&lt;br /&gt;
$command start&lt;br /&gt;
eend $? &amp;quot;Failed to start $prog&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
stop() {&lt;br /&gt;
ebegin &amp;quot;Stopping $prog&amp;quot;&lt;br /&gt;
$command stop&lt;br /&gt;
eend $? &amp;quot;Failed to stop $prog&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
status() {&lt;br /&gt;
result=`$command status`&lt;br /&gt;
if [ &amp;quot;$result&amp;quot; = &amp;quot;running&amp;quot; ]; then&lt;br /&gt;
echo &amp;quot;ZoneMinder is running&amp;quot;&lt;br /&gt;
RETVAL=0&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;ZoneMinder is stopped&amp;quot;&lt;br /&gt;
RETVAL=1&lt;br /&gt;
fi&lt;br /&gt;
exit ${RETVAL}&lt;br /&gt;
}&lt;br /&gt;
--------------------------------------------------------------------------------------------------------&lt;br /&gt;
Start/stop script is fixed.&lt;br /&gt;
Last patches:&lt;br /&gt;
cd /var/www/localhost/htdocs/zoneminder&lt;br /&gt;
chmod 777 events/&lt;br /&gt;
mkdir temp/&lt;br /&gt;
chmod 777 temp/&lt;br /&gt;
I hope this will be useful to someone until ZoneMinder becames a stable package for Gentoo &lt;br /&gt;
ZioPRoTo (Saverio Proto)&lt;/div&gt;</summary>
		<author><name>Jameswilson</name></author>
	</entry>
</feed>