Getting ZoneMinder into debian and ubuntu
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
Sorry about the delay on response. You can get them from http://mentors.debian.net/debian/pool/m ... oneminder/ or from ftp://www.northern-ridge.com.au/zonemindermuzzol wrote:can you provide source debs?
i mean the .dsc + .tar.gz + .changes files.
i would like to test them on my ubuntu system.
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
Finally!!!!!!!!
For those still watching this topic . . . Zoneminder was finally accepted into Debian unstable this morning.
Phew!
And its the 1.22.3-3 version which installs properly (as opposed to the "don't try to install this unless you like pain" -1 version)
Phew!
And its the 1.22.3-3 version which installs properly (as opposed to the "don't try to install this unless you like pain" -1 version)
Re: Finally!!!!!!!!
excellent!PeterHoward wrote:For those still watching this topic . . . Zoneminder was finally accepted into Debian unstable this morning.
Phew!
And its the 1.22.3-3 version which installs properly (as opposed to the "don't try to install this unless you like pain" -1 version)
exciting!
I'm happy you're creating a package. I have installed zm a few times and it's tough work. The howto's for ubuntu skip steps and I spend countless nights searching posts.
I am trying to use the deb on dapper and have a few problems. Are there instructions somewhere?
I removed my zm database and get an error that the package can't connect to it. Should I create that? It seems like I need to go through a few of the installation steps.
I also had issues because I wasn't using the stock username/password. Is it zmpass?.
prepare_cached can't be called on an undefined value at config.pm line 91.
There were other compilation failures but I would like to fix the obvious problems first.
I am trying to use the deb on dapper and have a few problems. Are there instructions somewhere?
I removed my zm database and get an error that the package can't connect to it. Should I create that? It seems like I need to go through a few of the installation steps.
I also had issues because I wasn't using the stock username/password. Is it zmpass?.
prepare_cached can't be called on an undefined value at config.pm line 91.
There were other compilation failures but I would like to fix the obvious problems first.
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
Re: exciting!
No formal instructions; it should just install. The only special detail is in the README.debian file (to do with linking the apache config file).I am trying to use the deb on dapper and have a few problems. Are there instructions somewhere?
The package attempts to create the database from scratch; I'm not 100% sure what's going wrong here, but if there's not zm database at all in mysql it should create it properly (and yes, the default username & passwd are used in the package)I removed my zm database and get an error that the package can't connect to it. Should I create that? It seems like I need to go through a few of the installation steps.
I also had issues because I wasn't using the stock username/password. Is it zmpass?.
Sounds like this is just fallout from the above.prepare_cached can't be called on an undefined value at config.pm line 91.
Which version of the package are you using? You say "compilation failures" - are you trying to build from the source package?There were other compilation failures but I would like to fix the obvious problems first.
PJH
Re: exciting!
I am using 1.22.3-6 that I downloaded from your site yesterday. I am probably making some simple mistake...The package attempts to create the database from scratch; I'm not 100% sure what's going wrong here, but if there's not zm database at all in mysql it should create it properly (and yes, the default username & passwd are used in the package)
This is from the terminal window feedback when you install the package via the gui. It talks about compilation failures. The first problem is that DBI connect failed because the database zm is unknown.Which version of the package are you using? You say "compilation failures" - are you trying to build from the source package?
Do I need to create a mysql account before running this and/or is there assumption about mysql root access to create the database?
Thanks for the help. I appreciate your taking the time to create a package for this!
Ryan
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
How did you install mysql? The relevant bits from the postinstall script are:
So it expects the standard debian.cnf to be there. If you installed mysql via apt-get, it should be there.
Code: Select all
mysqladmin --defaults-file=/etc/mysql/debian.cnf -f reload
cat /usr/share/zoneminder/zm_create.sql | mysql --defaults-file=/etc/mysql/debian.cnf
echo 'grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "{deleted}";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql
more info
I believe it was there from the original ubuntu installation. I use apt-get or synaptic to install/update.How did you install mysql?
Code: Select all
mysqladmin --defaults-file=/etc/mysql/debian.cnf -f reload
cat /usr/share/zoneminder/zm_create.sql | mysql --defaults-file=/etc/mysql/debian.cnf
echo 'grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "{deleted}";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql
I checked and it's there.So it expects the standard debian.cnf to be there. If you installed mysql via apt-get, it should be there.
Could you explain the passwords to me? First, where you have "deleted" above, are you hiding the password or is this the real code? I have been using "zmpass" for zmuser. I don't understand how an installer can create the databases without root access to mysql...
I ran the above code and it created the database. I still get the same error when I install the package. Access denied for user 'zmuser'@localhost (using password: YES).
Thanks again!
Ryan
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
Are you able to purge the package? i.e.
(Don't try reinstalling after that; I need to check up something and I primarily want to see if that works)
Code: Select all
sudo dpkg --purge zoneminder
think purge worked
I believe the purge worked but I got similar error messages (shown below). The database was gone. Thanks.
Ryan
ryan@ubuntu:~$ sudo dpkg --purge zoneminder
Password:
(Reading database ... 112357 files and directories currently installed.)
Removing zoneminder ...
Stopping ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/local/share/perl/5.8.7/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/local/share/perl/5.8.7/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.7/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/share/perl/5.8.7/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.7/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
Zoneminder already stopped
Database "zm" dropped
Purging configuration files for zoneminder ...
Ryan
ryan@ubuntu:~$ sudo dpkg --purge zoneminder
Password:
(Reading database ... 112357 files and directories currently installed.)
Removing zoneminder ...
Stopping ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/local/share/perl/5.8.7/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/local/share/perl/5.8.7/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.7/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/local/share/perl/5.8.7/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.7/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
Zoneminder already stopped
Database "zm" dropped
Purging configuration files for zoneminder ...
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
Clearing out residue
Now go into mysql as root, and change to database mysql.
Look for any mention of zoneminder (e.g. "zmuser") in the table "user" and get rid of it.
Then try the reinstall over; i.e. "sudo dpkg install zoneminder_1.22.3-6_i386.deb" and, if necessary, "sudo apt-get -f install" and see what happens.
Look for any mention of zoneminder (e.g. "zmuser") in the table "user" and get rid of it.
Then try the reinstall over; i.e. "sudo dpkg install zoneminder_1.22.3-6_i386.deb" and, if necessary, "sudo apt-get -f install" and see what happens.
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
README.debian
To save you looking right now:
Code: Select all
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zm.conf
sudo /etc/init.d/apache2/reload