Page 1 of 1

zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 11:26 am
by linuxcar1
so i have installed zoneminder with these instructions:
https://zoneminder.readthedocs.io/en/la ... untu-16-04

but Step 8 gives troubles.
so step 8 says: Open up a browser and go to http://hostname_or_ip/zm - should bring up ZoneMinder Console.

Wel my ip cam adres is: 192.168.1.100
but when i hit http://192.168.1.100/zm i get "404 - Not Found"

so i am very new with linux overall and zoneminder special so please tell me in easy words/instructions how to fix this.

my camera is a Foscam FI9828P V2

Re: zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 11:36 am
by bbunge
Start over with the install instructions in the ZM WIKI for your version of Ubuntu. For 16.04 there is a shell script that does almost everythingfor you!

Re: zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 11:46 am
by linuxcar1
bbunge wrote: Fri Jun 08, 2018 11:36 am Start over with the install instructions in the ZM WIKI for your version of Ubuntu. For 16.04 there is a shell script that does almost everythingfor you!
i think you mean this?
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
https://onedrive.live.com/?authkey=%21A ... 2A9DCA1993

edit: i have done this Install Zoneminder shell script but still get a 404 - Not Found page...

i missing something here.
do i must install a network installer like this? https://www.ubuntu.com/download/alternative-downloads

Re: zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 2:56 pm
by DVB Hardware
Mine runs fine on Mint 18.3
http://192.168.1.100/zm is wrong should be http://localhost/zm

Re: zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 3:41 pm
by linuxcar1
DVB Hardware wrote: Fri Jun 08, 2018 2:56 pm Mine runs fine on Mint 18.3
http://192.168.1.100/zm is wrong should be http://localhost/zm
when i do http://localhost/zm i get: Unable to connect to ZM db.SQLSTATE[HY000] [1698] Access denied for user 'zmuser'@'localhost'

edit: yes i got it working now :D
ok... now what?

Do i must install a ubuntu server to get this work?
i only want the cameras te work from home location...

Re: zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 4:32 pm
by juanmoura
Make this and your problem will be solved.

sudo mysql -u root -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"

Re: zoneminder on linux mint 18.3. problems.

Posted: Fri Jun 08, 2018 8:07 pm
by bbunge
linuxcar1 wrote: Fri Jun 08, 2018 11:46 am
bbunge wrote: Fri Jun 08, 2018 11:36 am Start over with the install instructions in the ZM WIKI for your version of Ubuntu. For 16.04 there is a shell script that does almost everythingfor you!
i think you mean this?
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
https://onedrive.live.com/?authkey=%21A ... 2A9DCA1993

edit: i have done this Install Zoneminder shell script but still get a 404 - Not Found page...

i missing something here.
do i must install a network installer like this? https://www.ubuntu.com/download/alternative-downloads
Nope. This one: https://wiki.zoneminder.com/Shell_scrip ... 28MySQL.29

With a desktop install of Ubuntu 16.04 or one of its "family" running this install script will install Mariadb, Apache2, PHP and Zoneminder. It has to be run as a super user or root (sudo su). You will need to change the PATH_ZMS.

Re: zoneminder on linux mint 18.3. problems.

Posted: Tue Jun 12, 2018 10:41 am
by linuxcar1
bbunge wrote: Fri Jun 08, 2018 11:36 am Start over with the install instructions in the ZM WIKI for your version of Ubuntu. For 16.04 there is a shell script that does almost everythingfor you!
bbunge wrote: Fri Jun 08, 2018 11:36 am This one: https://wiki.zoneminder.com/Shell_scrip ... 28MySQL.29

With a desktop install of Ubuntu 16.04 or one of its "family" running this install script will install Mariadb, Apache2, PHP and Zoneminder. It has to be run as a super user or root (sudo su). You will need to change the PATH_ZMS.
i dont understand.
How do i get this script to work and how do i change the PATH ZMS. :oops:

Re: zoneminder on linux mint 18.3. problems.

Posted: Tue Jun 12, 2018 11:34 am
by rockedge
download or create the script (copy paste). enter the directory the script is in. use "./script_name.sh" to start it.
at the end when it is finished this will appear :

Code: Select all

Open Zoneminder in a web browser (http://server-ip/zm). Click on Options - Paths and change PATH_ZMS to /zm/cgi-bin/nph-zms Click the Save button. Press enter to continue
once you have ZM going you will be able to modify PATH_ZMS using the Options->Paths menu to get you to the right place to change it.

Re: zoneminder on linux mint 18.3. problems.

Posted: Tue Jun 12, 2018 12:52 pm
by linuxcar1
rockedge wrote: Tue Jun 12, 2018 11:34 am download or create the script (copy paste). enter the directory the script is in. use "./script_name.sh" to start it.
at the end when it is finished this will appear :

Code: Select all

Open Zoneminder in a web browser (http://server-ip/zm). Click on Options - Paths and change PATH_ZMS to /zm/cgi-bin/nph-zms Click the Save button. Press enter to continue
once you have ZM going you will be able to modify PATH_ZMS using the Options->Paths menu to get you to the right place to change it.
so i have copy/paste the script in a gedit. (because i dont see any download button on that page)
i named it zmscript2.ch and place it in Documents map.

Then terminal:
cd Documents
ls (i see the script)
sudo ./zmscript2.sh

answer: ./zmscript2.sh: command not found

uuuhhh dont understand..

edit: a i see it now, it is: sudo bash zmscript2.sh

Re: zoneminder on linux mint 18.3. problems.

Posted: Tue Jun 12, 2018 3:05 pm
by linuxcar1
script one gives what problems:


script 1 gives what problems:

E: Unable to lock directory /var/cache/apt/archives/
Failed to execute operation: No such file or directory
Failed to start zoneminder.service: Unit zoneminder.service not found.
The user `www-data' is already a member of `video'.
zmscript3.sh: line 26: a2enmod: command not found
zmscript3.sh: line 27: a2enconf: command not found
zmscript3.sh: line 28: a2enmod: command not found
chown: cannot access '/usr/share/zoneminder/': No such file or directory
apache2: unrecognized service
Open Zoneminder in a web browser (http://server-ip/zm).

http://server-ip/zm = buying this domain???

Re: zoneminder on linux mint 18.3. problems.

Posted: Thu Jun 14, 2018 1:33 pm
by rockedge
Okay I ran into this also before. I do not think the Apache web server was installed. Double check that Apache,PHP,mariaBD OR mysql is installed. the www-data error is okay. the a2enmod and apache2 being unrecognized indicates no Apache was installed. I notice that the script does not include that.
http://server-ip/zm = buying this domain???
the server-ip is a varible to indicate that you must change this to whatever domain name the zoneminder system will have....
in your case just try http://localhost/zm

do you know how to fix these things?

Re: zoneminder on linux mint 18.3. problems.

Posted: Thu Jun 14, 2018 9:06 pm
by bbunge
You have to run the script as root! And run it in a terminal!! Use nano to create the file not gedit!!!