Suse 11.1 and ZoneMinder

From ZoneMinder Wiki
Jump to navigationJump to search

This is an update from the Suse 10.1 Install for ZoneMinder. Read that section first. You can find it here: http://www.zoneminder.com/wiki/index.php/SuSE_10.1_and_ZoneMinder This is a work in progress and is incomplete. It covers building and installation of Zoneminder on OpenSuse 11.1. For use of Zoneminder, check the Wiki or Forum. Use at your own risk.


Install Packages

Install these packages from either Yast2 Software Management or from the Suse online software search at http://software.opensuse.org/search: Some of these files are dependencies, and will be added automatically from other packages. There was no simple way to get the main files needed, so here is the list and the search term used for you to find them easily. You need to add the packman.unixheads.com repository for suse/11.1 to your yast2 repositories. You also need to install the build tools gcc and the libs for mpeg and jpeg from 10.1 wiki page.

Packages to Add from 10.1 - incomplete

        apache2
        apache2-worker
        apache2-mod_perl
        apache2-mod_php5
        apache2-mod-apparmor
        php5
        php5-mysql
        mysql
        libmysql-devel
        gcc
        gcc-c++
        libmpeg2
        libmpeg2-devel
        ffmpeg
        libffmpeg0
        libffmpeg-devel
        libjpeg
        libjpeg-devel
        pcre-devel
        xawtv
        openssl
        openssl-devel 

Patterns filter

Add Base Development and C/C++ Development.

Search in Name and Summary for "php"

apache2-mod_php5
perl-php-serialization
php5
php5-bz2
php5-ctype
php5-devel
php5-dom
php5-gd
php5-hash
php5-iconv
php5-json
php5-mcrypt
php5-mysql
php5-openssl
php5-pdo
php5-sockets
php5-sqlite
php5-tokenizer
php5-xmlreader
php5-xmlwriter
php5-zlib
php5-doc

Search in Name and Summary for "perl"

apache2-mod_perl
apache2-mod_perl-devel
exiftool
limal-ca-mgm-perl
limal-nfs-server-perl
limal-perl
pcre
pcre-devel
perl
perl-Arvhive-Zip
perl-base
perl-Bootloader
perl-Class-Singleton
perl-Config-Crontab
perl-Crypt-SmbHash
perl-Crypt-SSLeay
perl-Data-ShowTable
perl-Data-Manip
perl-DateTime
perl-DateTime-Locale
perl-DateTime-TimeZone
perl-DBD-mysql
perl-DBD-SQLite
perl-DBI
perl-Digest-HMAC
perl-Digest-MD4
perl-Digest-SHA1
perl-doc
perl-File-Tail
perl-Finance-Quote
perl-gettext
perl-HTML-Parser
perl-HTML-TableExtract
perl-HTML-Tagset
perl-IO-SocketSSL
perl-IO-stringy
perl-libapparmor
perl-libwww-perl
perl-list-MoreUtils
perl-MailTools
perl-MIME-Lite
perl-MIME-tools
perl-Net-Daemon
perl-Net-DNS
perl-Net-IP
perl-Net-SSLeay
perl-NetxAP
perl-Params-Validate
perl-Parse-RecDescent
perl-php-serialization
perl-PIRPC
perl-RPC-XML
perl-spamassassin
perl-TermReadKey
perl-TermReadLine-Gnu
perl-Tie-IxHash
perl-TimeDate
perl-URI
perl-X500-DN
perl-XML-LibXML
perl-XML-LibXMML-Common
perl-XML-NamespaceSupport
perl-XML-Parser
perl-XML-SAX
perl-XML-Simple
perl-XML-Writer
perl-XML-XPath
perl-YAML
sax2-libsax-perl
yast2-perl-bindings

Search in Name and Summary for "apache"

apache2
apache2-devel
apache2-doc
apache2-example-pages
apache2-mod_apparmor
apache2-mod_perl
apache2-mod_perl-devel
apache2-mod_php5
apache2-prefork
apache2-utils
apache2-worker
libapr1
libapr1-devel
libapr-util1
libapr-util1-devel
system-config-httpd

Search in Name and Summary for "mysql"

libmysqlclient15
libmysqlclient-devel
libmysqlclient_r15
ligqt4-sql-mysql
mysql
mysql-adminstrator
mysql-client
mysql-gui-tools
mysql-query-browser
perl-DBD-mysql
php5-mysql

Search in Name and Summary for "openssl"

libopenssl0_9_8
libopenssl-devel
openssl
openssl-certs
php5-openssl


In the Suse 10.1 install, there is a step for updating the Perl programs. If you want to add that step, then go to the Suse 10.1 Wiki install page. See above for link.

Dowload Zoneminder

Download the Zoneminder 1.23.3 sources from http://www.zoneminder.com/downloads.html to your build directory. Untar the archive from here: http://www2.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz or from the downloads page.

> tar -xvzrf Zoneminder-1.23.3.tar.gz
> cd Zoneminder-1.23.3

Configure the build for Suse 11.1

You can configure with either /var/www/html and /var/www/cgi-bin or with /srv/www/htdocs and /srv/www/cgi-bin. Just be sure that when you configure the Apache Web Server that you use the same directories.

> ./configure --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin ZM_SSL_LIB=openssl --with-webuser=wwwrun
 --with-webgroup=www ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass 

Build Zoneminder

> make 

Configure mysql

See Suse 10.1 for mysql configuration. You can find it here: http://www.zoneminder.com/wiki/index.php/SuSE_10.1_and_ZoneMinder When done with that, continue.

I have also included the GUI tool for mysql administration, so you can use that instead. It is mysql-adminstrator. There was not a documentation package for mysql, but you can use the man pages or go to the mysql web site. For the man page, from a command line:

 man mysql

For the mysql web page: http://www.mysql.com For the command line as in 10.1, you would do this:

> mysql -u root -p mysql < db/zm_create.sql
> mysql -u root -p mysql
Enter password:
mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass' ;
mysql> quit
> mysqladmin -u root -p reload

Install Zoneminder

Enter root password and install.

> su
# make install

Edit zm.conf file to be sure that it has zmuser and zmpass (it should).

Configure apache2 web server

Read the apache documentation that was installed above or from the web site http://www.apache.org. After installation of packages with Suse 11.1, you can see what files it added by restarting the Software Management tool with Yast2 and then searching for the package name and clicking the "File List" tab. This will show you the directories for user documentation. Point your browser to the index.html file. For a funny reason, I had to add ".en" at the end of the apache user documentation files to get the English html file to display, like this:

file:///usr/share/apache2/manual/index.html.en

The documentation helps. That is why I included it in the packages. You will need to configure the Apache web server for the directories that you configured the build for. Then, you can test to see if your browser supports the short php tags or not. Try these two test1.php and test2.php files to see if they work after you start your Apache Web Server. See below for how to do that.

test1.php:    <? print "It Works"; ?>
test2.php     <?php print "It Works"; ?>

Start servers

/etc/init.d/mysql start
rcapache2 start
zmpkg.pl start

Test PHP on the browser interface

Create this file in your /var/www/html directory and call it test.php

<?php print "It works!"; ?>

Point your browser to localhost: http://localhost

You should see the html version of It Works!

Point your browser to localhost/test.php: http://localhost/test.php

You should see the php version of It Works!

Start Zoneminder

Point your browser to localhost/zm.php: http://localhost/zm.php

You can create a link in your html or htdocs page for "zonemider" if you want, and then point your browser to: http://localhost/zoneminder

You should see the Zoneminder web interface.

Configure Startup of Servers

Go to the Suse 10.1 install and use that. You can find it here: http://www.zoneminder.com/wiki/index.php/SuSE_10.1_and_ZoneMinder

--We4zonM 02:27, 17 January 2009 (UTC)