SUSE 10 OSS Installation intruction with network camera
Posted: Sun Feb 12, 2006 4:02 pm
Well here is a step by step newbie kit (made by a noob.... me) to install ZoneMinder under SUSE 10.0 OSS.
This is only a short HowTo on how to install all off the required pieces of software on SUSE 10.0 OSS, it is not intended to be a reference because i do not specify any of the security rules or optimisations needed for a production server.
I just specify the main steps to get Zone Minder Running.
enjoy !
Fresh install Suse 10 OSS 64Bits (net install)
Base installation without additionnal package
My network parameters for network install:
Start servers
Updating perl CPANand installing perl packages
I've done all off the perl related installation under user root because of problems with cpan packages installation
Downloading and installing latest Zoneminder release :
Extract tarball
Now Configuration Time !
Login to MySQL
Under MySQL prompt type
Now compile and install this nice piece of software !
Dealing with the Shared Memory problem
just add the following lines to your /etc/sysctl.conf file:
Configure ZoneMinder to be started at boot time
Now you can reboot your computer to apply changes
Well we are at the end of the process
Start all servers if they are not allready started when you boot your computer :
Now open your browser and point to http://localhost/zm.php
Create your monitor and start playing !
Logs are in /tmp
This is only a short HowTo on how to install all off the required pieces of software on SUSE 10.0 OSS, it is not intended to be a reference because i do not specify any of the security rules or optimisations needed for a production server.
I just specify the main steps to get Zone Minder Running.
enjoy !
Fresh install Suse 10 OSS 64Bits (net install)
Base installation without additionnal package
My network parameters for network install:
- Type : FTP
Server Ip : 193.190.198.20
Path : mirror/ftp.opensuse.org/opensuse/distribution/SL-10.0-OSS/inst-source
- Type : HTTP
Server : packman.rsync.zmi.at
Path : suse/10.0
- apache2-worker
apache2
apache2-mod_perl
apache2-mod_php4
php4-session updated 2006-03-24 thnax to mickecarlsson
mod_php4-core
mysql
mysql-devel
gcc
gcc-c++
libmpeg2-devel
ffmpeg
libjpeg-devel
pcre-devel
xawtv
lynx Updated 2006-03-23 : needed by cpan configuration
ncftp Updated 2006-03-23 : needed by cpan configuration
openssl-devel
Code: Select all
su -
cd /etc/rc.d/rc5.d
ln -s ../apache2 S98apache2
ln -s ../apache2 K01apache2
ln -s ../mysql S98mysql
ln -s ../mysql K01mysql
Code: Select all
sudo /etc/rc.d/apache2 start
sudo /etc/rc.d/mysql start
I've done all off the perl related installation under user root because of problems with cpan packages installation
Code: Select all
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
Extract tarball
Code: Select all
tar zxvf ZoneMinderTarball.tar.gz
cd ZoneMinderSourceDirectory
Code: Select all
./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 --with-libarch=lib64
Code: Select all
mysql -h localhost -u root -p
Code: Select all
source db/zm_create.sql;
grant select,insert,update,delete on zm.* to 'zm'@localhost identified by 'zm';
flush privileges;
quit
Now compile and install this nice piece of software !
Code: Select all
make
sudo make install
just add the following lines to your /etc/sysctl.conf file:
Code: Select all
kernel.shmall = 134217728
kernel.shmmax = 134217728
Configure ZoneMinder to be started at boot time
Code: Select all
su -
# from zoneminder source directory
cp scripts/zm /etc/rc.d
cd /etc/rc.d
chmod +x zm
# edit zm with your favorite text editor (vi ?)
# remove the line related to include functions
# replace all occurences of echo_success by echo success
# replace all occurences of echo_failure by echo failure
# save the changes (ie :x!)
cd rc5.d
ln -s ../zm S99zm
ln -s ../zm K00zm
Well we are at the end of the process
Start all servers if they are not allready started when you boot your computer :
Code: Select all
sudo /etc/rc.d/apache2 start
sudo /etc/rc.d/mysql start
sudo zmpkg.pl start
Create your monitor and start playing !
Logs are in /tmp
- zmaudit.log
zmupdate.log
zmwatch.log => take attention to this one because the shared memory problem is reported here
zmpkg.log
zmdc.log
- Case : Antec SLK3000b
Power suply : Fortron 350W
Mother board : MSI K8MM
CPU : Sempron 2600+
Ram : 512 Mo DDR PC3200
HDD : 80 Go Maxtor
Graphic card : ASUS GEFORCE4 TI4200 AGP 8X
Network Camera : TrendNet TV-IP200W
Code: Select all