Page 1 of 1

debian 4.0 HOWTO installation

Posted: Sun May 13, 2007 11:48 pm
by marculin
Hello, I have download a debian 4.0 and your manual of installation!
The server apache and module php work (with phpinfo() it's ok) but zoneminder it's not work under apache.
I think because this file not exist

Code: Select all

Type vi /var/www/zm/zm.php

Find setcookie by pressing ESC and typing :?setcookie

Create a new line under the setcookie statement by pressing ESC and o

Add the following line under setcookie (press ESC and i to insert) :
	setcookie (“cookies”,$cookies);
Anyone have any idea?

Posted: Mon May 14, 2007 4:05 am
by Lee Sharp
How did you install zoneminder? Compiled, or from the packages in the debian repositories?

Posted: Mon May 14, 2007 7:56 am
by marculin
from repository unstable!
I have download debian 3.1 and I go to try with this!

Posted: Mon May 14, 2007 9:26 am
by marculin
I restart installation!

-I have installed Debian 4.0
-edit /etc/apt/source.list with unstable version
-apt-get update
-apt-get install zoneminder

Code: Select all

 apt-get install zoneminder
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
I seguenti pacchetti verranno inoltre installati:
  apache2-mpm-prefork apache2-utils apache2.2-common ffmpeg liba52-0.7.4
  libapache2-mod-php5 libapr1 libaprutil1 libasound2 libavcodec0d
  libavformat0d libc6 libc6-i686 libconvert-binhex-perl libdate-manip-perl
  libdbd-mysql-perl libdbi-perl libdc1394-13 libdirectfb-0.9-25 libexpat1
  libgsm1 libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
  libio-stringy-perl libjpeg62 libkeyutils1 libkrb53 libmailtools-perl
  libmime-perl libmysqlclient15off libnet-daemon-perl libogg0 libplrpc-perl
  libpq5 libraw1394-8 libsdl1.2debian libsdl1.2debian-alsa libsqlite3-0
  libsvga1 libsysfs2 libtimedate-perl liburi-perl libvorbis0a libvorbisenc2
  libwww-perl libxml2 libzzip-0-12 locales mysql-client-5.0 mysql-common
  mysql-server mysql-server-5.0 php4-common php5 php5-common php5-mysql psmisc
  svgalibg1 tzdata
Pacchetti suggeriti:
  php-pear libasound2-plugins glibc-doc dbishell krb5-doc krb5-user
  libcompress-zlib-perl libraw1394-doc libio-socket-ssl-perl tinyca
Pacchetti raccomandati:
  libhtml-format-perl xml-core
I seguenti pacchetti NUOVI (NEW) saranno installati:
  apache2-mpm-prefork apache2-utils apache2.2-common ffmpeg liba52-0.7.4
  libapache2-mod-php5 libapr1 libaprutil1 libasound2 libavcodec0d
  libavformat0d libconvert-binhex-perl libdate-manip-perl libdbd-mysql-perl
  libdbi-perl libdc1394-13 libdirectfb-0.9-25 libexpat1 libgsm1
  libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libio-stringy-perl
  libjpeg62 libkeyutils1 libmailtools-perl libmime-perl libmysqlclient15off
  libnet-daemon-perl libogg0 libplrpc-perl libpq5 libraw1394-8 libsdl1.2debian
  libsdl1.2debian-alsa libsqlite3-0 libsvga1 libsysfs2 libtimedate-perl
  liburi-perl libvorbis0a libvorbisenc2 libwww-perl libxml2 libzzip-0-12
  mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php4-common php5
  php5-common php5-mysql psmisc svgalibg1 zoneminder
I seguenti pacchetti saranno aggiornati:
  libc6 libc6-i686 libkrb53 locales tzdata
5 aggiornati, 56 installati, 0 da rimuovere e 100 non aggiornati.
à necessario prendere 58,4MB/59,4MB di archivi.
Dopo l'estrazione, verranno occupati 130MB di spazio su disco.
Continuare [S/n]?
at term apt-get apache and zoneminder start automatically
If I go to http://IP it redirect to http://IP/apache2-default/ and it print "it works!".

-ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zm.conf
-/etc/init.d/apache2 reload

-http://IP/zm

okay it work...very well!
If you want use this like howto!!

Still one problem.
View image (with livecd it work very well with this configuration)
Image
How I can find a problem?thank you

Posted: Mon May 14, 2007 10:07 am
by marculin
If I put

Code: Select all

chmod 777 video0
it work (but not ip camera).
What is a correct permission for video0 (default is 660)?
ip camera because don't work?
thank

Posted: Mon May 14, 2007 10:44 am
by marculin
in /var/log/messages

Code: Select all

 WAR [Unable to use netcam regexps as not compiled with libpcre]
I have
-dpkg --purge zoneminder
-apt-get install libpcre3 libpcre3-dev
-apt-get install zoneminder

But problem not solved...ip camera not work
thank you

Posted: Mon May 14, 2007 11:01 am
by PeterHoward
marculin wrote:in /var/log/messages

Code: Select all

 WAR [Unable to use netcam regexps as not compiled with libpcre]
I have
-dpkg --purge zoneminder
-apt-get install libpcre3 libpcre3-dev
-apt-get install zoneminder

But problem not solved...ip camera not work
thank you
OK. My bad for not building the debian package with pcre.

Are you familiar with the debian BTS? If so can you generate a bug there? It will remind me to do this.

Regardless, I'll try to resolve this for you by the end of the week.

PJH

Posted: Mon May 14, 2007 12:09 pm
by marculin
I don't know debian BTS :(
Thank you but I don't think which libpcre it's my problem because
-with mandriva live cd and option
ZM_OPT_REMOTE_CAMERAS not checked
ZM_NETCAM_REGEXPS not checked
my ip cam work

instead with debian 4.0 (zoneminder by repository) with same config don't work.....I don't find a solution!
with "ZM_NETCAM_REGEXPS not checked" not have the error in /var/log/messages but it don't work

what of tasks?

Posted: Mon May 14, 2007 12:40 pm
by marculin
SOLVED :lol:

Code: Select all

debian:/tmp# more /proc/sys/kernel/shmmax
33554432
debian:/tmp# cat /proc/sys/kernel/shmall
2097152
debian:/tmp# echo 134217728 >/proc/sys/kernel/shmmax
debian:/tmp# echo 134217728 >/proc/sys/kernel/shmall
Still a problem of permission video0!
How I can change perm at boot for /dev/video0 (and what?)?
thank you

Posted: Mon May 14, 2007 10:14 pm
by wilso027
On Ubuntu systems which is based on Debian you can add your user to the video group in /etc/groups and that should get it. You may also want to check

Code: Select all

/etc/udev/rules.d
directory and see if you can modify the settings there.

Allan

Posted: Mon May 14, 2007 10:21 pm
by PeterHoward
Also, do a search on "zmfix" in the forums. IIRC I saw someone integrate that into startup.

Posted: Thu May 17, 2007 11:40 am
by John Williams
zmfix did not work for me. creating a video group and adding www-data user to that group worked and persists across reboots. chmoding the /dev entry works but only until the next reboot.

Posted: Sun May 20, 2007 8:30 am
by marculin
I add user to video and work ;) thank!