Ubuntu 24.04.1 LTS and ZM?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
juanboy2k
Posts: 24
Joined: Tue Jun 09, 2020 3:22 pm

Ubuntu 24.04.1 LTS and ZM?

Post by juanboy2k »

SO i have this new "release available" notice for 24.04.1 I'm presently at 22.04.5 LTS. (I'm on ZM 1.36.36).

Am I going to have to restore things and debug for a long time if I do the release upgrade or should it be fairly smooth?

I am reviewing some of the notes previously .. and it seems more scary than i want to tackle right now ... ?!

thanks!
eggenbef
Posts: 21
Joined: Tue Aug 27, 2024 1:13 pm

Re: Ubuntu 24.04.1 LTS and ZM?

Post by eggenbef »

currently i am also running zm on 22.04. the two options i am looking into to get zm and the eventserver running on 24.04 are (1) zm 1.36.33 which is part of the LTS distribution and (2) zm 1.36.35 which seems to be available as a ppa for 24.04 (https://launchpad.net/~iconnor/+archive ... lter=noble). the installation guides for (1) which i found turned out to omit most of the various configuration steps required after the installation of the package. currently i am stuck with the installation of the enventserver though but this doesn't seem to be an issue related to 24.04. once resolved i will probably give (2) a try... :)
User avatar
Andyrh
Posts: 281
Joined: Sat Oct 28, 2017 3:55 am

Re: Ubuntu 24.04.1 LTS and ZM?

Post by Andyrh »

I am running 22.04 and I am in no hurry to upgrade. There are no features in 24 that I need. I may not upgrade the OS until version 28. I have been doing this too long to rush into upgrades. As long as I am getting security patches I am good.

What is your driving reason to upgrade? I am curious if I missed something interesting.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Ubuntu 24.04.1 LTS and ZM?

Post by iconnor »

24.04 makes event server harder to install. You have to add --break-system to the pip install commands. ZM itself should be fine. I havn't had any issues.
juanboy2k
Posts: 24
Joined: Tue Jun 09, 2020 3:22 pm

Re: Ubuntu 24.04.1 LTS and ZM?

Post by juanboy2k »

ok .. thank so -- i have no over arching reason to update to 24.0x ... i just usually like to stay "current" whatever that means.

if 22 will be around long enough, then i'll keep applying security patches and await further orders.

thanks :)
eggenbef
Posts: 21
Joined: Tue Aug 27, 2024 1:13 pm

Re: Ubuntu 24.04.1 LTS and ZM?

Post by eggenbef »

iconnor wrote: Fri Nov 01, 2024 2:16 pm 24.04 makes event server harder to install. You have to add --break-system to the pip install commands.
may be it would anyway make sense to rethink the installation process of the eventserver. currently all python packages will be installed system-wide. hence the --break-system-packages parameter if you install the eventserver on 24.04. it would be great if future eventserver releases could be installed within a dedicated venv, i.e. without the need of changing system-wide python packages.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Ubuntu 24.04.1 LTS and ZM?

Post by iconnor »

They can be, I just don't know how. Someone with the knowledge could likely document it and everything would be fine.
eggenbef
Posts: 21
Joined: Tue Aug 27, 2024 1:13 pm

Re: Ubuntu 24.04.1 LTS and ZM?

Post by eggenbef »

iconnor wrote: Tue Nov 05, 2024 5:19 pm They can be, I just don't know how. Someone with the knowledge could likely document it and everything would be fine.
not sure what you are referring to with "document it". i had a very brief look into the code and think the following would need to be done to get this working on ubuntu:

install.sh
1) add creation of python venv at a dedicated location (e.g. /srv/zm/). the directory and venv has to be owned by user www-data (assuming that all zmes python scripts will be fully functional when started as user www-data)
2) activate venv
3) replace sudo pip with sudo -u www-data pip to get all required python packages installed in the venv

zm_event_start.sh
activate venv before calling zm_detect.py

any other script calling a zmes python script which requires one of the installed python packages
activate venv before calling the python script
Post Reply