SuSE 10.1 and ZoneMinder
Dgsconseil was kind enough to write a step-by-step
newbie kit to install ZoneMinder under SUSE
10.0 OSS. I copied it and modified it to for
SuSE 10.1 with a GUI and the KDE. Base installation with KDE Desktop and additional packages
Once the Installation is finished, open the YAST control center. (Under System)
I've done all off the perl related installation under user root because of problems with cpan packages installation. It seems like a slow process, have patience.
From within a terminal window:
From within a terminal window:
Download and save ZoneMinder tarball from: Extract tarball http://www.zoneminder.com/wiki/index.php/1.22.2_Patches
To apply the patch you should do the following
Within a Terminal window, in ZoneMinder-1.22.2 directory
Within a Terminal window, Make sure you’re in the ZoneMinder-1.22.2 directory and Login to MySQL (PW is probably blank)
Under the MySQL prompt -
(Entering Each line will echo a bunch of lines, just ignore them)
Within a Terminal window, Make sure you’re in the ZoneMinder-1.22.2 directory
Now compile and install this nice piece of software !
Within a Terminal window, Make sure you’re in the ZoneMinder-1.22.2 directory
Copy the /srv/www/htdocs/zm.php file on top of the /srv/www/htdocs/index.php file. Add the following lines to your /etc/sysctl.conf file: Now you can reboot your computer to apply changes
Well we are at the end of the process...
Now open your web browser and point to http://localhost/
If that doesn’t work, try http://localhost/zm.php
Here are some options I use when configuring a monitor for my Axis IP camera at 640x480, color.:
This is only a short How-To on how I installed SuSE and
ZoneMinder software on SUSE 10.1 OSS,
it is not intended to be a reference because I do not specify any of the
security rules or optimizations needed for a production server. I just specify the main steps to get Zone
Minder Running.
By the
way, this is not the smallest installation possible. It’s just what I used and it worked. It seemed that if I skipped any of the additional packages, I’d
run into trouble.
Contents
Fresh install of SuSE 10.1 OSS (CD install)
If using the firewall, add HTTP Server to the Allowed Services list, if you want to access ZoneMinder with a web browser.
Configure via YAST Software Management
Update perl with CPAN and install perl packages
From within a Terminal window:
perl -MCPAN -e shell
install Bundle::CPAN
reload CPAN
install Archive::Tar (seems to be optional => depend on the way you install yourdistro)
install Archive::Zip (seems to be optional => depend on the way you install yourdistro)
install MIME::Lite
install MIME::Tools
install DateTime
install Date::Manip updated 2006-03-04 thanx to mickecarlsson
install Bundle::libnet
install Device::SerialPort
install Astro::SunTime Updated 2006 03 24 correct spelling error on SunTime (thanx to mickecarlsson)
install X10
Configure servers to be started at boot time
su -
cd /etc/rc.d/rc5.d
ln -s ../apache2 S98apache2
ln -s ../apache2 K01apache2
ln -s ../mysql S98mysql
ln -s ../mysql K01mysql
Start servers manually
sudo /etc/rc.d/apache2 start
sudo /etc/rc.d/mysql start
Download and install latest Zoneminder release (v1.22.2) :
http://www2.zoneminder.com/downloads/ZoneMinder-1.22.2.tar.gz
From within a Terminal window, inside directory that ZoneMinder download was saved to
tar zxvf ZoneMinder-1.22.2.tar.gz
cd ZoneMinder-1.22.2
Download and apply the v1.22.2 patch for ffmpeg from Wiki
Configure ZoneMinder
./configure --with-webdir=/srv/www/htdocs --with-cgidir=/srv/www/cgi-bin --with-webgroup=www --with-webuser=wwwrun ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zm
Configure MySQL
mysql -h localhost -u root -p
source db/zm_create.sql;
grant select,insert,update,delete on zm.* to 'zm'@localhost identified by 'zm';
flush privileges;
quit
Compile ZoneMinder
make
sudo make install
Configure ZoneMinder to be started at boot time
su -
# from zoneminder source directory
cp scripts/zm /etc/rc.d
cd /etc/rc.d
chmod +x zm
cd rc5.d
ln -s ../zm S99zm
ln -s ../zm K00zm
Logoff and logon as root, or create a new session as root.
Make minor changes in the htdocs folder
Rename or delete the /srv/www/htdocs/index.html file
(I chose 256,000,000 because my cams are 640x480)
# Memory modifications for ZoneMinder
kernel.shmall = 256000000
kernel.shmmax = 256000000
Start all servers if they are not already started when you boot your computer :
From within a Terminal window
sudo /etc/rc.d/apache2 start
sudo /etc/rc.d/mysql start
sudo zmpkg.pl start
Create your monitor and start viewing
If you want to utilize mpeg instead of jpeg, use this for the host path:
Remote Host Path = /axis-cgi/mjpg/video.cgi?
Apache2 Logs are in /var/logs