Page 1 of 1

Does exist some easy install guide for Ubuntu + Zm 1.24 ?

Posted: Fri Jun 05, 2009 6:01 pm
by johnnytolengo
I am two day trying to install the zm new version in the last Ubuntu or Kubuntu without chances.

I wish minimal ubuntu + ffmpeg + Zoneminder 1.24.

I am deperate.


Please, help!

:(

Posted: Fri Jun 05, 2009 6:12 pm
by kingofkya
generic question more info needed


look at logs
whats not working
how is iot failing
hardware being used
etc.

Posted: Fri Jun 05, 2009 6:44 pm
by johnnytolengo
ohh I sorry, here is what i did:

Nueva instalacion ubuntu server.

2- aptitude update
aptitude full-upgrade

3- sudo wget ftp://www.northern-ridge.com.au/zonemin ... -1_all.deb
sudo dpkg -i libphp-serialization-perl_0.27-1_all.deb

4- aptitude install apache2 php5-mysql libapache2-mod-php5 mysql-server libmysqlclient15-dev libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libjpeg62 libjpeg62-dev libmime-perl libstdc++6 libwww-perl zlib1g zip unzip patch ntp openssl libpcre3-dev libssl-dev libjpeg-progs libcurl4-gnutls-dev munin munin-node libmime-lite-perl netpbm libbz2-dev subversion libavformat-dev libswscale-dev libavcodec-dev



5- sudo nano /etc/php5 /apache2/php.ini
date.timezone = Europe/YOURzone

sudo nano /etc/ntp.conf
server europe.pool.ntp.org
shutdown now –r

6- cd /usr/shared
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-shared --enable-postproc --enable-gpl --prefix=/opt/

(/usr/local/lib)

make
make install
apt-get install ffmpeg

7- sudo perl -MCPAN -e shell

install PHP::Serialization
exit

8- mkdir src & cd src
wget http://www2.zoneminder.com/downloads/Zo ... 4.1.tar.gz
tar –xvzf ZoneMinder-1.24.1.tar.gz
cd ZoneMinder-1.24.1
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=root --with-webgroup=root --with-ffmpeg=/opt
make
mysql -u root -p < db/zm_create.sql

mysql -u root -p
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit;
mysqladmin -u root -p reload
sudo make install

8- cd /etc/init.d/
nano zm

#!/bin/sh
# description: Control ZoneMinder as a Service
# chkconfig: 2345 35 15
# Source function library.
#. /etc/rc.d/init.d/functions
prog=ZoneMinder
ZM_PATH_BIN="/usr/local/bin"
command="$ZM_PATH_BIN/zmpkg.pl"
start() {
echo -n "Starting $prog: "
$ZM_PATH_BIN/zmfix –a
$command start
RETVAL=$?
[ $RETVAL = 0 ] && echo success
[ $RETVAL != 0 ] && echo failure
echo
[ $RETVAL = 0 ] && touch /var/lock/zm
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
#
# Why is this status check being done?
# as $command stop returns 1 if zoneminder
# is stopped, which will result in
# this returning 1, which will stuff
# dpkg when it tries to stop zoneminder before
# uninstalling . . .
#
result=`$command status`
if [ ! "$result" = "running" ]; then
echo "Zoneminder already stopped"
echo
RETVAL=0
else
$command stop
RETVAL=$?
[ $RETVAL = 0 ] && echo success
[ $RETVAL != 0 ] && echo failure
echo
[ $RETVAL = 0 ] && rm -f /var/lock/zm
fi
}
status() {
result=`$command status`
if [ "$result" = "running" ]; then
echo "ZoneMinder is running"
RETVAL=0
else
echo "ZoneMinder is stopped"
RETVAL=1
fi
}
case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart' | 'force-reload')
stop
start
;;
'status')
status
;;
*)
echo "Usage: $0 { start | stop | restart | status }"
RETVAL=1
;;
esac
exit $RETVAL


chmod 755 zm
chmod +x zm

sudo update-rc.d zm defaults
sudo /etc/init.d/zm restart


I think is it a better form to install it.

Thanks in advance .

J :)

Posted: Fri Jun 05, 2009 7:30 pm
by johnnytolengo
do you have some special form or steps to do the installation?
Could you share it with us?

thanks a lot.

J.

Posted: Fri Jun 05, 2009 7:46 pm
by kingofkya
good info but whats wrong with it can you not access the web page or camera not recording etc

Posted: Fri Jun 05, 2009 10:43 pm
by johnnytolengo
ohh thank you , i just install with the repository .deb and now works but
i still have some problems.

I have a card K-8800.

When i put max to 5 or 10 frames for the monitor the reaction in my screen is retarded a lot.

How is it posible?

I also tried the ZMLarch_1.24.1-4 live CD and the cameras are really alive (very fast).

How can i make it faster?

thank you one more time.

J.

Posted: Tue Jun 09, 2009 9:31 am
by baldrick
have you tried to do an install from the liveCD ? unless you need ubuntu

Posted: Tue Jun 09, 2009 10:06 am
by johnnytolengo
yes I did a install of liveCD but before the installation I got a double files in all system like:

zm.conf
~zm.conf
passwd
~passwd

this version is really basic, uses pacman and other structure of files. It doesn't fit me :( I work better on common distributions of debian or Centos.