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