Ubuntu 24.04 and Zoneminder install
Ubuntu 24.04 and Zoneminder install
I would like to know how to install Zoneminder in Ubuntu 24.04.
I have already tried it, but I can't get the program to work. Now my English is not great, but does anyone know how I can achieve this with a simple explanation and not with many complicated terms. Previously I had Ubuntu 22.04 and had zm enabled. But the PC crashed and I have now installed the latest version of Ubuntu. I'd like to hear it from someone. And please don't use too many difficult terms. I don't always understand this. I also use a translator otherwise it won't work.
add-apt-repository ppa:iconnor/zoneminder-1.36 is not working by me.
Thank you in advance.
Greetings from Holland
I have already tried it, but I can't get the program to work. Now my English is not great, but does anyone know how I can achieve this with a simple explanation and not with many complicated terms. Previously I had Ubuntu 22.04 and had zm enabled. But the PC crashed and I have now installed the latest version of Ubuntu. I'd like to hear it from someone. And please don't use too many difficult terms. I don't always understand this. I also use a translator otherwise it won't work.
add-apt-repository ppa:iconnor/zoneminder-1.36 is not working by me.
Thank you in advance.
Greetings from Holland
Re: Ubuntu 24.04 and Zoneminder install
Here is a link to install instructions that contains a script to install Zoneminder. I have not run it on Ubuntu 24.04 but it should work. If I get a chance later today I will load up Ubuntu 24.04 and give it a try.
https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
Edit: I did a quick install of Ubuntu 24.04 server and performed an install per the WIKI instructions and Zoneminder is properly installed.
https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
Edit: I did a quick install of Ubuntu 24.04 server and performed an install per the WIKI instructions and Zoneminder is properly installed.
Re: Ubuntu 24.04 and Zoneminder install
I ran the Wiki Zoneminder, but Zoneminder won't start.
Of course I don't know what I'm doing wrong, but I didn't see any error messages in the terminal.
What now??
It is not an easy program to install. It wasn't easy last time either.
Of course I don't know what I'm doing wrong, but I didn't see any error messages in the terminal.
What now??
It is not an easy program to install. It wasn't easy last time either.
Re: Ubuntu 24.04 and Zoneminder install
May be best to start with a clean install of Ubuntu server. Then follow the WIKI install. Use Mariadb server and not MySQL. The install script will set up and start Zoneminder. Make sure you use http://serveripaddress/zm to access Zoneminder. If you use a Ubunto desktop version use http://localhost/zm
Re: Ubuntu 24.04 and Zoneminder install
I have a clean Ubuntu Desktop on the PC. Nothing else on it.
Then started putting Zoneminder on it. I used exactly the order from Wiki. No error messages received. Then localhost/zm No result.
This is what I get to see. I don't know what it means.
ZoneMinder Error
Unable to connect to ZM db using dsn ZM_DB_TYPE:host=ZM_DB_HOST;dbname=ZM_DB_NAME
could not find driver
ZoneMinder will retry connection in 11 seconds.
Reload
Then started putting Zoneminder on it. I used exactly the order from Wiki. No error messages received. Then localhost/zm No result.
This is what I get to see. I don't know what it means.
ZoneMinder Error
Unable to connect to ZM db using dsn ZM_DB_TYPE:host=ZM_DB_HOST;dbname=ZM_DB_NAME
could not find driver
ZoneMinder will retry connection in 11 seconds.
Reload
Re: Ubuntu 24.04 and Zoneminder install
What I meant was to reinstall Ubuntu then run the Zoneminder install.
I installed Ubuntu 24.04 Desktop on my test machine. After logging in I opened a terminal and ran: sudo su
I then installed LAMP with : apt install apache2 php mariadb-server php-mysql libapache2-mod-php
I then ran: nano zm-install
and pasted the script into it
#!/bin/sh
clear
read -p "This script installs ZoneMinder 1.36.x on Ubuntu 24.04, 22.04, 20.04 or 18.04 with LAMP (MySQL or Mariadb) installed...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder.
Press enter to continue" nothing
apt install -y software-properties-common
clear
add-apt-repository ppa:iconnor/zoneminder-1.36
apt update
clear
apt install -y zoneminder
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
clear
read -p "Install complete. Open Zoneminder/Options and set the timezone. Press enter to continue" nothing
clear
Saved and exited nano with CTRL + o and CTRL + x
Then: chmod 755 zm-install
Then: ./zm-install
When the script was done I opened Firefox and entered: localhost/zm and the Zoneminder start page came right up.
I installed Ubuntu 24.04 Desktop on my test machine. After logging in I opened a terminal and ran: sudo su
I then installed LAMP with : apt install apache2 php mariadb-server php-mysql libapache2-mod-php
I then ran: nano zm-install
and pasted the script into it
#!/bin/sh
clear
read -p "This script installs ZoneMinder 1.36.x on Ubuntu 24.04, 22.04, 20.04 or 18.04 with LAMP (MySQL or Mariadb) installed...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder.
Press enter to continue" nothing
apt install -y software-properties-common
clear
add-apt-repository ppa:iconnor/zoneminder-1.36
apt update
clear
apt install -y zoneminder
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
clear
read -p "Install complete. Open Zoneminder/Options and set the timezone. Press enter to continue" nothing
clear
Saved and exited nano with CTRL + o and CTRL + x
Then: chmod 755 zm-install
Then: ./zm-install
When the script was done I opened Firefox and entered: localhost/zm and the Zoneminder start page came right up.
Re: Ubuntu 24.04 and Zoneminder install
Sorry, but I have already reinstalled Ubuntu 4 times. Nothing else was installed. Then followed the instructions exactly.
localhost/zm in firefox.
No zoneminder in the web browser. Blank screen
There must be something wrong with the program zm to install. Furthermore, I would not know how to install this program.
Last time I also spent a few weeks trying to get zm on my PC.
In the end it didn't work on a PC, but on an Odroid with Debian on it.
I really can't get Zoneminder installed on a PC with Ubuntu on it.
Whichever version I try. Not even in Docker. I really don't know what the problem is.
localhost/zm in firefox.
No zoneminder in the web browser. Blank screen
There must be something wrong with the program zm to install. Furthermore, I would not know how to install this program.
Last time I also spent a few weeks trying to get zm on my PC.
In the end it didn't work on a PC, but on an Odroid with Debian on it.
I really can't get Zoneminder installed on a PC with Ubuntu on it.
Whichever version I try. Not even in Docker. I really don't know what the problem is.
Re: Ubuntu 24.04 and Zoneminder install
Just an update.
Today I equipped the PC with a blank Ubuntu 22.04.
Hopefully I got it done with this version.
But also with 22.04 no Zoneminder.
Here too a blank screen.
I'm afraid nothing will work out with this program.
Today I equipped the PC with a blank Ubuntu 22.04.
Hopefully I got it done with this version.
But also with 22.04 no Zoneminder.
Here too a blank screen.
I'm afraid nothing will work out with this program.
Re: Ubuntu 24.04 and Zoneminder install
Could it be that there is a language difference? As English, well American English, is my native language I do not have an idea what folks in other lands experience. If you are not experienced with Linux and the Linux variations and using the command line you may have problems. Debian and Ubuntu are close to being the same as Ubuntu is based on Debian. The Zoneminder install procedures are very similar for each.
When you try to access the Zoneminder setup you are using the desktop Firefox on the Ubuntu PC that Zoneminder was installed? If you are using another PC you should access the Zoneminder setup with: http://ubuntu-pc-ip-address/zm
If you feel that using the install script is not working here is a step by step install to use with a desktop version of Ubuntu:
Open a Terminal
Become root by entering: sudo su then press Enter. You will be asked for your password.
Enter: apt install apache2 php mariadb-server php-mysql libapache2-mod-php software-properties-common Then press Enter to run the install.
Enter: add-apt-repository ppa:iconnor/zoneminder-1.36 Then press Enter to add the repository and respond to the prompts.
Enter: apt update Then press Enter
Enter: apt install -y zoneminder Then press Enter to install Zoneminder and its dependencies
When the above finishes enter the following one line at a time and press Enter after each entry:
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
Zoneminder should be installed and accessable at http://server-ip-address/zm
When you try to access the Zoneminder setup you are using the desktop Firefox on the Ubuntu PC that Zoneminder was installed? If you are using another PC you should access the Zoneminder setup with: http://ubuntu-pc-ip-address/zm
If you feel that using the install script is not working here is a step by step install to use with a desktop version of Ubuntu:
Open a Terminal
Become root by entering: sudo su then press Enter. You will be asked for your password.
Enter: apt install apache2 php mariadb-server php-mysql libapache2-mod-php software-properties-common Then press Enter to run the install.
Enter: add-apt-repository ppa:iconnor/zoneminder-1.36 Then press Enter to add the repository and respond to the prompts.
Enter: apt update Then press Enter
Enter: apt install -y zoneminder Then press Enter to install Zoneminder and its dependencies
When the above finishes enter the following one line at a time and press Enter after each entry:
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
a2enmod headers
a2enmod expires
service apache2 reload
Zoneminder should be installed and accessable at http://server-ip-address/zm
Re: Ubuntu 24.04 and Zoneminder install
I use the PC that has zoneminder on it.
I use all common English terms.
Will give it another try tomorrow.
But after trying so many times, I don't think it will work.
Already evening here (time difference)
I use all common English terms.
Will give it another try tomorrow.
But after trying so many times, I don't think it will work.
Already evening here (time difference)
-
- Posts: 23
- Joined: Tue Mar 25, 2025 2:19 pm
Re: Ubuntu 24.04 and Zoneminder install
You have to put your database type, host, username and password in /etc/zm/zm.confThis is what I get to see. I don't know what it means.
ZoneMinder Error
Unable to connect to ZM db using dsn ZM_DB_TYPE:host=ZM_DB_HOST;dbname=ZM_DB_NAME
Find the parts that look like this and change them to match your setup. Mine looks something like:
Code: Select all
# ZoneMinder database type: so far only mysql is supported
ZM_DB_TYPE=mysql
# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost
# ZoneMinder database name
ZM_DB_NAME=zmdb
# ZoneMinder database user
ZM_DB_USER=zmuser
# ZoneMinder database password
ZM_DB_PASS=zmpass
Re: Ubuntu 24.04 and Zoneminder install
Sorry, but I give up.
The implementation of bbunge gives quite a lot of error messages. one after another.
The command add-apt-repository ppa:iconnor/zoneminder-1.36 fails.
It takes about 10 minutes for something to happen, and then timeout error. Then I continued and only see errors.
Still a blank screen in the end. No Zoneminder.
Reinstalled Ubuntu twice today. Formatted the hard drive, and then followed the instructions exactly in English. No translation used of the pages. Used copy and paste so I don't make typing mistakes.
I don't understand radam.robertson's explanation. I'm not good at changing text in certain files. I managed to install zoneminder twice. A few years ago via YouTube
https://www.youtube.com/watch?v=RhBsW8HkOG4&t=65s
And once on an Odroid. It took me quite some time to get this done both times. Normally I have no trouble installing programs, but with Zoneminder it's a nightmare. I'll just look for another program for my IP camera, or buy a recorder. That may be the best option.
How you manage this is a mystery to me.
Long story, but hopefully understandable
The implementation of bbunge gives quite a lot of error messages. one after another.
The command add-apt-repository ppa:iconnor/zoneminder-1.36 fails.
It takes about 10 minutes for something to happen, and then timeout error. Then I continued and only see errors.
Still a blank screen in the end. No Zoneminder.
Reinstalled Ubuntu twice today. Formatted the hard drive, and then followed the instructions exactly in English. No translation used of the pages. Used copy and paste so I don't make typing mistakes.
I don't understand radam.robertson's explanation. I'm not good at changing text in certain files. I managed to install zoneminder twice. A few years ago via YouTube
https://www.youtube.com/watch?v=RhBsW8HkOG4&t=65s
And once on an Odroid. It took me quite some time to get this done both times. Normally I have no trouble installing programs, but with Zoneminder it's a nightmare. I'll just look for another program for my IP camera, or buy a recorder. That may be the best option.
How you manage this is a mystery to me.
Long story, but hopefully understandable
Re: Ubuntu 24.04 and Zoneminder install
This sounds like a problem with your installation method -- you cannot execute a command, have it error and fail, and then just continue with the steps. You need to resolve errors one at a time as you come across them, otherwise subsequent steps will fail or worse will partly succeed and then break something.
You need to edit /etc/zm/zm.conf in your usual text editor. The file contains configuration you need to personalise for _your_ system setup. Having nothing in there, or defaults that don't match your system, will not work.
Re: Ubuntu 24.04 and Zoneminder install
I understand that if something is wrong, don't continue.
But what should you do?
If add-apt-repository ppa:iconnor/zoneminder-1.36 doesn't go further, then I don't know what else.
This is what I get
root@edwin-450-101nd:/home/edwin# add-apt-repository ppa:iconnor/zoneminder-1.36
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 364, in <module>
sys.exit(0 if addaptrepo.main() else 1)
File "/usr/bin/add-apt-repository", line 347, in main
shortcut = handler(source, **shortcut_params)
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
return handler(shortcut, **kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__
if self.lpppa.publish_debug_symbols:
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
self._lpteam = self.lp.people(self.teamname)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
return cls(
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
super(Launchpad, self).__init__(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__
self._wadl = self._browser.get_wadl_application(self._root_uri)
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
response, content = self._request(url, media_type=wadl_type)
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
response, content = self._request_and_retry(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
response, content = self._connection.request(
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1693, in request
(response, new_content) = self._request(
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
response, content = super(LaunchpadOAuthAwareHttp, self)._request(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
return super(RestfulHttp, self)._request(
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request
conn.connect()
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1153, in connect
sock.connect((self.host, self.port))
TimeoutError: [Errno 110] Connection timed out
Only timeout error. Why ???? No idea what this all means
I have reinstalled Ubuntu as many times and tried to install zoneminder, which I think is enough.
I don't know how to edit /etc/zm/zm.conf.
I see that there is enough information in there, but I have no idea about this.
I can adjust it, but what should I adjust?? No idea.
No understanding of this machine language.
It's just a tricky program to install. I see plenty of problems here on this forum.
Enough information from various people, but when I execute the information nothing happens.
Blank site at localhost/zm
But what should you do?
If add-apt-repository ppa:iconnor/zoneminder-1.36 doesn't go further, then I don't know what else.
This is what I get
root@edwin-450-101nd:/home/edwin# add-apt-repository ppa:iconnor/zoneminder-1.36
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 364, in <module>
sys.exit(0 if addaptrepo.main() else 1)
File "/usr/bin/add-apt-repository", line 347, in main
shortcut = handler(source, **shortcut_params)
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
return handler(shortcut, **kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__
if self.lpppa.publish_debug_symbols:
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
self._lpteam = self.lp.people(self.teamname)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
return cls(
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
super(Launchpad, self).__init__(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__
self._wadl = self._browser.get_wadl_application(self._root_uri)
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
response, content = self._request(url, media_type=wadl_type)
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
response, content = self._request_and_retry(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
response, content = self._connection.request(
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1693, in request
(response, new_content) = self._request(
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
response, content = super(LaunchpadOAuthAwareHttp, self)._request(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
return super(RestfulHttp, self)._request(
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request
conn.connect()
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1153, in connect
sock.connect((self.host, self.port))
TimeoutError: [Errno 110] Connection timed out
Only timeout error. Why ???? No idea what this all means
I have reinstalled Ubuntu as many times and tried to install zoneminder, which I think is enough.
I don't know how to edit /etc/zm/zm.conf.
I see that there is enough information in there, but I have no idea about this.
I can adjust it, but what should I adjust?? No idea.
No understanding of this machine language.
It's just a tricky program to install. I see plenty of problems here on this forum.
Enough information from various people, but when I execute the information nothing happens.
Blank site at localhost/zm
Re: Ubuntu 24.04 and Zoneminder install
Are you doing the install as root? Do you do "sudo su" and get a prompt for a password?
Any install on Linux needs to be done as root which is the administrator. Maybe that is why your commands are4 failing.
Any install on Linux needs to be done as root which is the administrator. Maybe that is why your commands are4 failing.