zoneminder on linux mint 18.3. problems.

Forum for questions and support relating to the 1.31.x releases only.
Locked
linuxcar1
Posts: 8
Joined: Fri Jun 08, 2018 11:17 am

zoneminder on linux mint 18.3. problems.

Post 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
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zoneminder on linux mint 18.3. problems.

Post 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!
linuxcar1
Posts: 8
Joined: Fri Jun 08, 2018 11:17 am

Re: zoneminder on linux mint 18.3. problems.

Post 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
DVB Hardware
Posts: 201
Joined: Thu Jan 01, 2015 5:12 pm
Location: Rhode Island

Re: zoneminder on linux mint 18.3. problems.

Post by DVB Hardware »

Mine runs fine on Mint 18.3
http://192.168.1.100/zm is wrong should be http://localhost/zm
Linux Mint 21 Cinnamon Mariadb 10.6.x using Master 1.37.x latest always

DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
linuxcar1
Posts: 8
Joined: Fri Jun 08, 2018 11:17 am

Re: zoneminder on linux mint 18.3. problems.

Post 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...
juanmoura
Posts: 91
Joined: Fri Nov 24, 2017 11:46 am

Re: zoneminder on linux mint 18.3. problems.

Post 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';"
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zoneminder on linux mint 18.3. problems.

Post 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.
linuxcar1
Posts: 8
Joined: Fri Jun 08, 2018 11:17 am

Re: zoneminder on linux mint 18.3. problems.

Post 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:
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: zoneminder on linux mint 18.3. problems.

Post 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.
linuxcar1
Posts: 8
Joined: Fri Jun 08, 2018 11:17 am

Re: zoneminder on linux mint 18.3. problems.

Post 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
linuxcar1
Posts: 8
Joined: Fri Jun 08, 2018 11:17 am

Re: zoneminder on linux mint 18.3. problems.

Post 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???
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: zoneminder on linux mint 18.3. problems.

Post 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?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zoneminder on linux mint 18.3. problems.

Post by bbunge »

You have to run the script as root! And run it in a terminal!! Use nano to create the file not gedit!!!
Locked