Page 1 of 1

ZomeMinder Help on Debian 4.0

Posted: Wed Jun 20, 2007 1:03 pm
by Carlwill
I have Debian freshly installed on a new machine and then just installed ZM via APT-GET which downloaded ffmpeg, PHP, MySQL, and Apache2. Pretty much everything I need to run ZM on a Debian machine. Now I am stuck at the configuration process.

I am able to access my Debian server via http which just displays the default apache2 page saying "it works".

I now am trying to understand how to get access to the ZM GUI webpage? Obviously I don't have a "zm" or "zoneminder" path under my Apache document root which is /var/www/.

Can someone please explain what my next step should be? I would guess I would have to create a /zm folder in the Apache document root or do some kind of re-direct but I am really not sure.

Thanks for any assistance.

*PS*
I have checked some of the few Debian guides that are on this forum and find they are far too dated. Some show people recommending a script edit in /etc/init.d/zm (which is now /zonemind) and I think that edit is no longer necessary so I am worried about outdated info or making un-necessary changes.

re

Posted: Wed Jun 20, 2007 2:22 pm
by nadir
you must just make a link:

cd /etc/apache2/conf.d
ln -s /etc/zm/apache.conf zm.conf

re

Posted: Wed Jun 20, 2007 2:23 pm
by nadir
don't forget to reload apache2

Posted: Wed Jun 20, 2007 5:39 pm
by Lee Sharp
Also, the path is not visible. It is within apache, not the file system.

Posted: Wed Jun 20, 2007 6:10 pm
by cordel
The docments should have been installed in /usr/share/doc/zm and a README.deb should have all the details.

Posted: Thu Jun 21, 2007 2:21 pm
by Carlwill
Thanks guys - I made the link and also found the documents in the path you supplied.

My final question is the most important I guess...

I just simply installed zm via APT-GET and then created a symbolic link. Of course I made sure Apache was running working 1st but that is all I did. When I installed zm via APT, it auto installed all the required services like MySQL and PHP but I am not sure now if I need to create a database in MySQL manually of if zm already did this for me? I guess what I am trying to say is I know jack about SQL databases and am not sure if I need to manually create one in my SQL to get zm working. When SQL was installed, it did ask me to create a root password for the MySQL admin but that was all I have done unless installing zm already auto created some kind of database for me.

Suggestions ? Comments ?

Posted: Thu Jun 21, 2007 5:49 pm
by Lee Sharp
The package creates the database for you. You only have to create the links. Here is my cheat sheet.

Code: Select all

Link Apache
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

Restart Apache
sudo apache2ctl restart

suid zmfix
sudo chmod 4755 /usr/bin/zmfix

Run zmfix
zmfix -a

edit /etc/sysctl.conf and add the following lines (for 128meg shared mem)

kernel.shmall = 134217728
kernel.shmmax = 134217728

Download cambozola.jar and put it in /usr/share/zoneminder
Enable in options->Images.

test with xawtv (-nodga may be needed)

may need to edit /etc/modprobe.d/options with
options bttv card=77,77,77,77
and restart

Posted: Thu Jun 21, 2007 8:41 pm
by Carlwill
Thanks so much!

I will try this when I get back into the office on Friday! I will post back my results. :D

Posted: Fri Jun 22, 2007 1:00 pm
by Carlwill
Lee Sharp wrote:The package creates the database for you. You only have to create the links. Here is my cheat sheet.

Code: Select all

Link Apache
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

Restart Apache
sudo apache2ctl restart

suid zmfix
sudo chmod 4755 /usr/bin/zmfix

Run zmfix
zmfix -a

edit /etc/sysctl.conf and add the following lines (for 128meg shared mem)

kernel.shmall = 134217728
kernel.shmmax = 134217728

Download cambozola.jar and put it in /usr/share/zoneminder
Enable in options->Images.

test with xawtv (-nodga may be needed)

may need to edit /etc/modprobe.d/options with
options bttv card=77,77,77,77
and restart
OK - I seem to be good until I reach the section about editing the /etc/sysctl.conf.

I opened that in vi and did not see the "kernel" entries you mentioned so I assumed I should just add them rather than change the value. By adding them, I went all the way to the bottom of the text file and pasted them in there so I hope that it will be fine but I will let you be the judge.

Next - I downloaded a file from Google called "Cambozola" and extracted it but I assumed it was a simple .jar file but when I extracted that, I get the following:

Code: Select all

cwilliams@cwilliams:~/Desktop$ ls
cambozola-0.68  cambozola-latest.tar.gz  prec_380.GHO  README.Debian  README.html  sources.list
cwilliams@cwilliams:~/Desktop$ cd cambozola-0.68/
cwilliams@cwilliams:~/Desktop/cambozola-0.68$ ls
application.properties  bldsrc  build.xml  dist  dist.sh  example.html  LICENSE  README.html  src  watermarks
I started looking through all the folders and found a directory which held cambozola.jar and then a file called cambozola-server.jar but only moved the one you noted and left the "server" one alone. Next you specify I need to "enable images" but where do I do this and or how?

Posted: Fri Jun 22, 2007 11:44 pm
by Lee Sharp
You did fine on the share memory. However, for cambozala, use the version from the ZM website. It is older, and works better.