Difference between revisions of "Sabayon Linux with ZM 1.22.3 Step-by-Step"

From ZoneMinder Wiki
Jump to navigationJump to search
(Undo revision 5300 by Archersg (talk))
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
http://img246.imageshack.us/img246/9420/sabayonzmiv7.jpg
http://img246.imageshack.us/img246/9420/sabayonzmiv7.jpg


Hi togehter,
Hi together,


here's a HowTo for installing ZM 1.22.3 on Sabayon Linux 3.2.
here's a HowTo for installing ZM 1.22.3 on Sabayon Linux 3.2.
Line 7: Line 7:
This is by the way the fastest methode to get a working ZM.
This is by the way the fastest methode to get a working ZM.


I've needed less the 1,5 hours for installing Sabayon and ZoneMinder.
I've needed less then 1,5 hours for installing Sabayon and ZoneMinder.




Line 25: Line 25:
== Preparation ==
== Preparation ==
Download the [http://www.sabayonlinux.org/index.php?option=com_content&task=view&id=16&Itemid=27 Sabayon Linux miniEdition], burn it, and install it.
Download the [http://www.sabayonlinux.org/index.php?option=com_content&task=view&id=16&Itemid=27 Sabayon Linux miniEdition], burn it, and install it.
----


== Installing ZM ==
== Installing ZM ==
Line 40: Line 39:




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


Line 50: Line 50:


http://img404.imageshack.us/img404/1903/lehrergs6.gif  Otherwise you  don't have permission for remote access on your MySQL Database.
http://img404.imageshack.us/img404/1903/lehrergs6.gif  Otherwise you  don't have permission for remote access on your MySQL Database.


2.]  Type this:
2.]  Type this:
'''/etc/init.d/mysql start'''
 
'''# /etc/init.d/mysql start'''


'''# mysql_install_db '''
'''# mysql_install_db '''
Line 60: Line 62:
'''# /usr/bin/mysqld_safe & '''
'''# /usr/bin/mysqld_safe & '''


'''# /etc/init.d/mysql start'''


=> Now MySQL is ready for use.
=> Now MySQL is ready for use.


== Create the MySQL Database for ZoneMinder ==
== Create the MySQL Database for ZoneMinder ==
Line 159: Line 158:
== Installing Cambozola ==
== Installing Cambozola ==


If you want to use Cambozola, type this:
If you want to use [http://www.charliemouse.com/code/cambozola/index.html Cambozola], type this:


'''# emerge dev-java/ant'''
'''# emerge dev-java/ant'''
Line 178: Line 177:


That's all, now you can configure your ZoneMinder, --> have fun.
That's all, now you can configure your ZoneMinder, --> have fun.
----
I hope it was helpfull.
cu
R2D2

Latest revision as of 22:16, 15 May 2012

http://img246.imageshack.us/img246/9420/sabayonzmiv7.jpg

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.


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...


Home of Sabayon Linux

http://www.sabayonlinux.org/



Preparation

Download the Sabayon Linux miniEdition, burn it, and install it.

Installing ZM

Open a Terminal and do the following Steps:

# emerge --sync

# emerge portage

# emerge zoneminder


Configure MySQL

1.] Edit the /etc/mysql/my.cnf

Search for:

bind-address = 127.0.0.1

and change it to:

# bind-address = 127.0.0.1

http://img404.imageshack.us/img404/1903/lehrergs6.gif Otherwise you don't have permission for remote access on your MySQL Database.


2.] Type this:

# /etc/init.d/mysql start

# mysql_install_db

# cd /usr

# /usr/bin/mysqld_safe &


=> Now MySQL is ready for use.

Create the MySQL Database for ZoneMinder

Type this:

# 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

Configure ZoneMinder

Edit the /etc/zm.conf

Change

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

to

ZM_PATH_BUILD=/usr/share/zoneminder

change

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

to

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

change

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

to

ZM_PATH_CGI=/var/www/localhost/cgi-bin


Misc

1.] Starting Apache Webserver

# /etc/init.d/apache2 start

2.] Put the Apache Webserver into Runlevel "default"

# rc-update -a apache2 default

3.] Put MySQL into Runlevel "default"

# rc-update -a mysql default

http://img404.imageshack.us/img404/1903/lehrergs6.gif If want to check which Daemon is runing on which Runlevel, type:

# rc-update -s

http://img404.imageshack.us/img404/1903/lehrergs6.gif If you want ZoneMinder should starting automaticly on each Start, type:

# rc-update -a zoneminder default


Starting ZoneMinder

# /etc/init.d/zoneminder start


Testing ZoneMinder

Open a Webbrowser an type:

http://<IP_of_your_ZM-Machine>/zoneminder

If everthing went all right, you sould see something like this:

http://img184.imageshack.us/img184/7439/zm199el8.jpg


Installing Cambozola

If you want to use Cambozola, type this:

# 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.


I hope it was helpfull.

cu

R2D2