Getting ZoneMinder into debian and ubuntu

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Bother

Post by PeterHoward »

I even previewed to double-check and missed it. The second line should, of course, be

Code: Select all

sudo /etc/init.d/apache2 reload
rjewell
Posts: 23
Joined: Fri Mar 03, 2006 12:38 am
Location: CA

OK, getting there

Post by rjewell »

So, that gets zm up and running! I think this was my big problem because I remember zm "installing" in previous attempts and I was just confused why the code wasn't there and the browser didn't work. Can/should the installer do this?

Anyway, the database problems were probably a side effect of installing/reinstalling in multiple ways when the above didn't work.

After work I am hoping to have time for more fun. I am still having problems creating my camera monitors. Is there a log file that would tell what part of my monitor is invalid (displayed in red so far). Please note, I had zm running on this machine last week so the hardware should be good.

Thanks!
Ryan
rjewell
Posts: 23
Joined: Fri Mar 03, 2006 12:38 am
Location: CA

nevermind

Post by rjewell »

OK, the monitor started so ignore the last post. I will try to test everything this evening. Thank you for taking the time to make the package and helping me out!
Ryan
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Re: OK, getting there

Post by PeterHoward »

rjewell wrote:So, that gets zm up and running! I think this was my big problem because I remember zm "installing" in previous attempts and I was just confused why the code wasn't there and the browser didn't work. Can/should the installer do this?
That bieng a question I am still mulling over. Looking at other packages, squirrelmail leaves it up to the admin to do the link, mediawiki does it for you. I may put it in as a postinst question . . .
rjewell
Posts: 23
Joined: Fri Mar 03, 2006 12:38 am
Location: CA

Re: OK, getting there

Post by rjewell »

OK, I am still hoping to have more time on this tonight...

I don't think I have enough experience to have an opinion on creating the link. It seems like some steps should be taken to avoid confusion and questions when someone like me installs the package though. Most of the packages I've kept were ones that were simple to setup.

I got bold and tried to map /var/cache/zoneminder onto a different/bigger partition. I will have to search for the correct procedure here.

I'm not sure if this is related. When I stopped zm from the terminal I got errors talking about /var/www/zm/html. I never realized there was such a directory... I purged the package and tried to re-install it. I get similar errors (see below).

So, if you have an opinion/information feel free to post. I think it's equally possible I am creating the problems and will spend more time with this.

Code: Select all

root@ubuntu:/home/ryan/Desktop# dpkg --install zoneminder_1.22.3-6_i386.deb
Selecting previously deselected package zoneminder.
(Reading database ... 112152 files and directories currently installed.)
Unpacking zoneminder (from zoneminder_1.22.3-6_i386.deb) ...
Setting up zoneminder (1.22.3-6) ...
Starting ZoneMinder: Can't chdir to '/var/www/zm/html': No such file or directory at /usr/local/share/perl/5.8.7/ZoneMinder/Debug.pm line 349
        ZoneMinder::Debug::Fatal('Can\'t chdir to \'/var/www/zm/html\': No such file or directory') called at /usr/bin/zmpkg.pl line 95
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--install):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 zoneminder
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post by PeterHoward »

That last looks like a real bug. I'm not seeing it but I will investigate.
rjewell
Posts: 23
Joined: Fri Mar 03, 2006 12:38 am
Location: CA

zm/html

Post by rjewell »

I never really knew there was a zm/html dir. I remember seeing this recently when I went to upgrade (before trying your package). I think one of the wiki's set this as a path to configure or something. It also may have been in my startup script. Anyway, if there is any info I can provide let me know. I tried to purge and reinstall and consistently get this error.

Thanks.
Ryan
jpgeerets
Posts: 3
Joined: Fri Apr 20, 2007 2:19 pm

Post by jpgeerets »

hi folks,

i want to install zoneminder on my ubuntu server machine. there is no gui on it. i hope that isnt needed...

i have downloaded the *.deb file a few mins ago.
when i want to install this using

Code: Select all

 sudo dpkg -i zoneminder_1.22.3-6_i386.deb
the server tells me i dont have installed php4 or php5.
well, php5 is installed, also mysql.
there r several cms-sites running on it... :-)

perhaps it is possible to install zm with apt-get?
any idea?

thanks in advance!

Jean-Paul
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yes apt-get can be used as per the instructions in the wiki that are located here.
jpgeerets
Posts: 3
Joined: Fri Apr 20, 2007 2:19 pm

Post by jpgeerets »

ubuntu-server works with same repository's as debian?
i can put the debian repository's in the sourcelist and instal it that simple?

thanks in advancer!

Jean-Paul
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

ewww, That I don't know....
I seen that you were installing a deb file and overlooked that you posted that you're using Ubuntu.
jpgeerets
Posts: 3
Joined: Fri Apr 20, 2007 2:19 pm

Post by jpgeerets »

ok
no problem.

perhaps someone else has a good idea... :-)
rjewell
Posts: 23
Joined: Fri Mar 03, 2006 12:38 am
Location: CA

a *little* information

Post by rjewell »

I think someone else that knows more will weigh in. There are a few wiki's that detail the steps of installing zm on ubuntu. I've manually installed 3 times. There are certain dependencies that don't seem to be covered in the wiki instructions though. Each time I spend hours searching posts trying to find the missing pieces (video codecs I think).

I'm pretty certain you can't apt-get yet. I thought this is what Peter is working toward with these deb's. I think he said he will work on getting into the ubuntu repo's once debian is done.
rjewell
Posts: 23
Joined: Fri Mar 03, 2006 12:38 am
Location: CA

note

Post by rjewell »

Hi again Peter.

I just wanted to let you know... I created the zm/html directory I was getting errors about. This allowed the package to install successfully. I did end up finding the note about having to create the symbolic link (readme.debian). Finally, I learned I also have to create the startup script. It would be nice if that were in the package too.

Thanks.

Ryan
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Re: note

Post by PeterHoward »

rjewell wrote: Finally, I learned I also have to create the startup script. It would be nice if that were in the package too.
??????????????????

You shouldn't have to create anything. The startup script is definitely part of the package . . . which startup script are you referring to?
Post Reply