Page 2 of 4
Posted: Thu Aug 24, 2006 9:14 am
by Airwolf
Hi Phil - having only basic linux knowledge i am struggling a bit with this.
here is the output
zmuser@garyg-desktop:~$ ls -ld /var/www/zm/graphics
ls: /var/www/zm/graphics: Not a directory
I think i may revert back to installing Ubuntu and starting from scratch again
any further advise is appreciated
Posted: Thu Aug 24, 2006 9:25 am
by zoneminder
Ok, this is looking weird, try just
Posted: Thu Aug 24, 2006 9:34 am
by Airwolf
here you go
zmuser@garyg-desktop:~$ ls -ld /var/www/zm
-rw-r--r-- 1 root root 42531 2006-08-21 14:57 /var/www/zm
thanks
Posted: Thu Aug 24, 2006 10:27 am
by zoneminder
Rats, missed off the trailing slash, should be
Posted: Thu Aug 24, 2006 10:28 am
by Airwolf
as before
zmuser@garyg-desktop:~$ ls -ld /var/www/zm/
ls: /var/www/zm/: Not a directory
Posted: Fri Aug 25, 2006 8:20 am
by Airwolf
hi phil
went down the reinstall from scratch route and i get the ZM console
Now going to try and define monitors/ zones etc.
thanks for your help
Posted: Tue Aug 29, 2006 4:18 pm
by zoneminder
Good, thanks for letting us know.
Posted: Sun Oct 22, 2006 12:34 am
by cbarr
This thread has been extremely helpful to me for getting this installed and somewhat running, but I've run into a problem.
ZM is installed in the www directory and when I navigate to
http://localhost/zm/ all I get is a message saying "Could not select database: Unknown database 'zm'". So, I checked out what phpMyAdmin has to say, and it's only got the "information_schema" database, and no zm database.
So I manually created the zm database, but that only does me so much good since it's empty - duh. This is what the login page spits out: "Table 'zm.Config' doesn't exist
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/zm/zm_config.php on line 169"
Where do I go from here to get the database populated?
Posted: Sun Oct 22, 2006 5:00 am
by cordel
See the README:
5. Installation
For a new installation the next thing you will need to do is create your database and database users. So type the commands as follows,
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
If you already created the zm database you might have to delete it first
mysqladmin drop zm and then the above syntax should work just fine.
Regards,
Corey
Posted: Sun Oct 22, 2006 10:56 am
by mric
Hi everybody,
i've a problem with zoneminder installation on Ubuntu PPC (Mac) version
The dev : libjpeg-mmx-dev ,doesn't exist for ppc (french ubuntu forum said it to me) , do you have an other issue ?

Posted: Sun Oct 22, 2006 2:06 pm
by cbarr
cordel wrote:See the README:
5. Installation
For a new installation the next thing you will need to do is create your database and database users. So type the commands as follows,
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
If you already created the zm database you might have to delete it first
mysqladmin drop zm and then the above syntax should work just fine.
Regards,
Corey
I have already done this part, so now I have an empty database and a username to log on to it with. What do I do next? DO I populate the database with data now, or do I leave it empty and just tell ZM somehow what my username and password are?
Posted: Sun Oct 22, 2006 3:24 pm
by R2D2
R2D2 wrote:This was my installation way. --> works fine
Add these lines in /etc/apt/source.list
#
# deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
deb
http://de.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src
http://de.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb
http://de.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src
http://de.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb
http://de.archive.ubuntu.com/ubuntu/ dapper universe
deb-src
http://de.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb
http://de.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src
http://de.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb
http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src
http://security.ubuntu.com/ubuntu dapper-security main restricted
deb
http://security.ubuntu.com/ubuntu dapper-security universe
deb-src
http://security.ubuntu.com/ubuntu dapper-security universe
apt-get update
apt-get install apache2 php5 php5-mysql libapache2-mod-auth-mysql mysql-server g++ make netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql-perl libpcre3-dev libmysqlclient12-dev libcurl3-openssl-dev libjpeg-mmx-dev liblwp-protocol-http-socketunix-perl phpmyadmin mc ffmpeg xawtv xinetd samba swat
(~ 97,5 MB)
/etc/init.d/apache2 restart
Download ZM
cd /usr/local/src
wget http://www2.zoneminder.com/downloads/Zo ... 2.2.tar.gz
tar -xvzf ZoneMinder-1.22.2.tar.gz
cd ZoneMinder-1.22.2
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data
mysql
mysql < db/zm_create.sql
mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
mysql> quit
mysqladmin reload
make install
and finally....
connect to
http://your-zm-machine/zm
Change this options
System/ZM_AUTH_RELAY - none
Cambozola
cd /usr/local/src
apt-get install ant
wget http://www.charliemouse.com/code/camboz ... est.tar.gz
tar xvfz cambozola-latest.tar.gz
cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/zm
chmod 775 /var/www/zm/cambozola.jar
Then under the tools or Images tab (depending on the version) enable ZM_OPT_CAMBOZOLA
Use this way and it will work.

Posted: Sun Oct 22, 2006 3:35 pm
by cbarr
Thats the method I used actually, I tried the way in the Wiki first and it didn't work and it installed it in some other directory, so I tried this way and its gotten me farther.
The only thing I haven't done yet is the Cambozola, but I would imagine that has little to do with my database being empty.
Once again I ask: how do I populate my database?? It is empty! Any ideas?
Posted: Sun Oct 22, 2006 4:13 pm
by R2D2
cbarr wrote:Thats the method I used actually, I tried the way in the Wiki first and it didn't work and it installed it in some other directory, so I tried this way and its gotten me farther.
The only thing I haven't done yet is the Cambozola, but I would imagine that has little to do with my database being empty.
Once again I ask: how do I populate my database?? It is empty! Any ideas?
mysql
mysql < db/zm_create.sql
mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
mysql> quit
mysqladmin reload
Posted: Sun Oct 22, 2006 7:31 pm
by cbarr
lol ok ok - I know, it should create it but it doesn't. I also have to use sudo to get the mysql command to work.
Code: Select all
chris@home-security:~$ sudo mysql
Password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 5.0.22-Debian_0ubuntu6.06.2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> mysql < db/zm_create.sql
-> mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
Query OK, 0 rows affected (0.12 sec)
mysql> quit
Bye