[HowTo] Installing ZM 1.22.3 on Sabayon Linux 3.2

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

[HowTo] Installing ZM 1.22.3 on Sabayon Linux 3.2

Post by R2D2 »

Image

Hi together,
here's a HowTo for installing ZM 1.22.3 on Sabayon Linux 3.2.

This is by the way the fastest methode to get a working ZM.
I've needed less then 1,5 hours for installing Sabayon and ZoneMinder. :lol:

:arrow: What is Sabayone Linux?
SabayonLinux is based on the source-based distro named Gentoo - http://gentoo.org. Gentoo is a highly customizable distro which we have used as our base and using their excellent development techniques, we have created a pre-configured distribution with the tenets of Performance, Versatility, and Stability. If you have any more question about what Gentoo is and its philosophy, please visit their website.

read more...
:arrow: Home of Sabayon Linux
http://www.sabayonlinux.org/


:arrow: Preparation
Download the Sabayon Linux miniEdition, burn it, and install it.

:arrow: Installing ZM
Open a Terminal and do the following Steps:

Code: Select all

# emerge --sync
# emerge portage
# emerge zoneminder
:arrow: Configure MySQL

1.] Edit the /etc/mysql/my.cnf
Search for:

Code: Select all

bind-address				= 127.0.0.1
and change it to:

Code: Select all

# bind-address				= 127.0.0.1
Image Otherwise you don't have permission for remote access on your MySQL Database. :wink:

2.] Type this:

Code: Select all

# /etc/init.d/mysql start
# mysql_install_db 
# cd /usr 
# /usr/bin/mysqld_safe & 
=> Now MySQL is ready for use.

:arrow: Create the MySQL Database for ZoneMinder

Type this:

Code: Select all

# cd /usr/share/zoneminder
# mysql mysql < db/zm_create.sql 

# mysql mysql 

   mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass'; 

   mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'%' identified by 'zmpass'; 

   mysql> quit 

# mysqladmin reload 
:arrow: Configure ZoneMinder

Edit the /etc/zm.conf

Change

Code: Select all

# ZM_PATH_BUILD=/var/tmp/portage/www-misc/zoneminder-1.22.3/work/ZoneMinder-1.22.3
to

Code: Select all

ZM_PATH_BUILD=/usr/share/zoneminder
change

Code: Select all

ZM_PATH_WEB=/usr/share/webapps/zoneminder/1.22.3/htdocs
to

Code: Select all

ZM_PATH_WEB=/var/www/localhost/htdocs/zoneminder
change

Code: Select all

ZM_PATH_CGI=/usr/share/webapps/zoneminder/1.22.3/hostroot/cgi-bin
to

Code: Select all

ZM_PATH_CGI=/var/www/localhost/cgi-bin
:arrow: Misc

1.] Starting Apache Webserver

Code: Select all

/etc/init.d/apache2 start
2.] Put the Apache Webserver into Runlevel "default"

Code: Select all

rc-update -a apache2 default
3.] Put MySQL into Runlevel "default"

Code: Select all

rc-update -a mysql default
Image If want to check which Daemon is runing on which Runlevel, type:

Code: Select all

rc-update -s
Image If you want ZoneMinder should starting automaticly on each Start, type:

Code: Select all

rc-update -a zoneminder default
:arrow: Starting ZoneMinder

Code: Select all

/etc/init.d/zoneminder start
:arrow: Testing ZoneMinder

Open a Webbrowser an type:

Code: Select all

http://<IP_of_your_ZM-Machine>/zoneminder
If everthing went all right, you sould see something like this:

Image

:arrow: Installing Cambozola

If you want to use Cambozola, type this:

Code: Select all

# emerge dev-java/ant
# cd /usr/local/src 
# wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz 
# tar xvfz cambozola-latest.tar.gz 
# cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/localhost/htdocs/zoneminder
# chmod 775 /var/www/localhost/htdocs/zoneminder/cambozola.jar 
Then under Options --> Images enable ZM_OPT_CAMBOZOLA


That's all, now you can configure your ZoneMinder, --> have fun.

...Also in Wiki
Last edited by R2D2 on Mon Dec 25, 2006 8:46 pm, edited 5 times in total.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks very much for this. I was just going to mention the Wiki :D
Phil
yoshi
Posts: 4
Joined: Wed Apr 25, 2007 4:13 pm
Location: Bristol UK

Post by yoshi »

Thanks for this R2D2 will be trying this tonight ;-)
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Post by R2D2 »

yoshi wrote:Thanks for this R2D2 will be trying this tonight ;-)
...and please post the result. :wink:
yoshi
Posts: 4
Joined: Wed Apr 25, 2007 4:13 pm
Location: Bristol UK

results

Post by yoshi »

followed exactly as described on a fresh liveDVD install (but it is 3.4 loop1)
this is what I got
>>> Emerging (14 of 14) www-misc/zoneminder-1.22.3 to /
* ZoneMinder-1.22.3.tar.gz RMD160 ;-)
... [ ok ]
* ZoneMinder-1.22.3.tar.gz SHA1 ;-)
... [ ok ]
* ZoneMinder-1.22.3.tar.gz SHA256 ;-)
... [ ok ]
* ZoneMinder-1.22.3.tar.gz size ;-)
... [ ok ]
* checking ebuild checksums ;-)
... [ ok ]
* checking auxfile checksums ;-)
... [ ok ]
* checking miscfile checksums ;-)
... [ ok ]
* checking ZoneMinder-1.22.3.tar.gz ;-)
... [ ok ]
* Fatal error:
* Fatal error: There is a problem with your configuration file.
* Fatal error: webapp-config tried to read the variable "config_protect"
* Fatal error: and received the following error:
* Fatal error:
* Fatal error: Bad value substitution:
* Fatal error: section: [USER]
* Fatal error: option : config_protect
* Fatal error: key : nxdir
* Fatal error: rawval : /etc ${NXDIR}/home /etc /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm/
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config
* Fatal error:
* Fatal error: Please note that webapp-config is not written in bash anymore
* Fatal error: and that you cannot use the bash scripting features.
* Fatal error(s) - aborting

!!! ERROR: www-misc/zoneminder-1.22.3 failed.
any ideas?
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Post by R2D2 »

Hi,

you can tray to disable config_protect in /etc/make.conf

Searching for entries like:

CONFIG_PROTECT=

And uncomment this lines with #

Than do emerge -av zoneminder again.
Post Reply