zm-1.19.5-1.FC3.i386.rpm

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

Good idea! Thanks!
I shall make so: references in /var/www/html and /var/www/cgi-bin will not created now, but in /etc/httpd/conf.d/ the file zm.conf will be located with such contents:
Alias /zm/ "/usr/lib/zm/html/"
<Directory "/usr/lib/zm/html">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/zm/ "/usr/lib/zm/cgi-bin/"
<Directory "/usr/lib/zm/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
It will be made in zm-1.19.5-4.*.rpm. It will be accessible on Monday.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

By the way here is a list of my todo and changes/additions

In the spec file I added chkconfig lines to set httpd and myqld to run levels 2345 on post install
added the camazola.jar into the package.
changed the install dir to /usr/bin/zm (just my preferance) I might change the spec to allow selectable install location but not the biggist concern right now.

Still to do:
*Make a policy for SELinux to give permision to ZM files.
*Finnish the anaconda installer (something I'm missing, sometimes it works sometimes it don't... Feel like a nut :P sorry those mounts commercials stuck in my head now and had to share). :wink:
*automating the http.conf change to allow following symlinks to outside the CGI dir.
*Make a modual for WebMin to be able to admin using ssl.
*make X10 RPM.
*custumize Firstboot to populate feilds in zm.conf and set services
*make perl ssl rpm to support webmin

Cheers,
Cordel
Last edited by cordel on Sun Jan 16, 2005 1:21 am, edited 1 time in total.
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

In the spec file I added chkconfig lines to set httpd and myqld to run levels 2345 on post install
I believe what to start or stop any services the system administrator should exclusively, but not any the indirect application (zm).
changed the install dir to /usr/bin/zm (just my preferance) I might change the spec to allow selectable install location but not the biggist concern right now.
In the directory /usr/bin/ placed "programs executed by normal users" (man hier). In structure zm there are no programs which normal users can execute. Therefore they are placed in /usr/lib/zm.
make X10 RPM.
For this purpose it is required to make set additional packages, such as: perl-X10, perl-Device-SerialPort, perl-Time-modules, perl-DateTime, perl-Astro-Sunrise, ... :(
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay I'lll change the install dir back.

As for the setting mysqld and httpd to start was done because had zm set to start on install.
With zm as part of the distro after installation on the first boot zm would try to start when httpd and mysql were not running causing the system to hang.
I diffenatly could use any pointers along the way. I only started using linux and any programming March 2004 so I'm still learning.
As far as the X10 packages I have them all just need to build the RPMs and add then to anaconda.
Thank you for the feedback.
Cheers,
Cordel
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

I think it it is necessary to do at a stage of customization of system after installation.

In the directory ftp://oskin.ru/pub/linux/RedHat/MyRPMS/specs/ there are such files: perl-X10.spec, perl-Time-modules.spec, perl-DateTime.spec, perl-Astro-Sunrise.spec. It I started to do necessary packages for X10, but have then understood size of work and have left this idea. I think to you these files will help. :)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have just packaged up 1.20.0 ready for release, though I'll probably just run it for a day or two be sure I haven't broken anything. If anyone wants to try it early and maybe rpm-ise it then just let me know. I'm happy to host 'official' RPMs in the Downloads section also.

Thanks to everyone who's spending time on this.

Phil
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

I am ready to do RPMs, probably not at once, but not later than in a week after I shall receive .tar.gz. For 1.20.0 I can engage in creation and check RPM only in the Wednesday - Thursday.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I agree that the setting for zm should be done after the istallation. I going to try to write up a python script to do this system-config-zm. this module would ask the user for the information of usr a/b and password a/b and fill in zm.conf inturn would be used by first boot to get that information and preferances (including setting run levels for httpd and mysqld) to complete the setup. But this is going to take some time.
The specs you started will help. Thank you Oskin :D
I think I got the installer done. I just need to change the screen where it asks workstation, server, custom to read something a little diff. The workstation setting installs the gnome desktop where the server does not. I was thinking of making three settings:
1) Gnome, X11, tvtime, and all the req stuff for zm
2) x11, tvtime, and req stuff
3) just the core stuff
oh yeah and Custom
I have ntp, nfs, samba, and vsftp on there as well
I am just not sure as to what to use for the names for these settings.
The Custom menu is done.
All the updates are already there to 2004-12-30 and I'll include the curent updates on my next build. I'll also be looking into building a package for WebMin sometime hopefully soon.
Any thing I might be overlooking?? Ideas? I am open for sugestions.
Cheers,
Cordel
Last edited by cordel on Mon Jan 17, 2005 7:39 pm, edited 2 times in total.
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

Customization zm after installation RPM consists in filling a file /etc/zm.conf. In not an interactive mode it is possible to use the predetermined values for ZM_USERA and ZM_USERB (for example zmadmin and zm) and the generator of passwords for ZM_PASSA and ZM_PASSB. Still it is necessary to create database zm and these users with the appropriate rights (see /usr/lib/zm/bin/zminit). All rest will be made at the first start zm.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Just as a heads up, in v1.20.0 the concept of two DB users has been dropped. There is only ZM_DB_USER and ZM_DB_PASS, no A or B. SO if you are writing scripts, it would be better to target them at 1.20.0+ and save yourself the additional complexity of two users.

Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Oskin,
Just wondering what your thoughts are on this. I'm going to basicly try to build in python your zminit script. This would allow for command line access and I can build a desktop (I'm sure thats not the correct term) GUI the will run in X11, gnome, and KDE. By doing this I could also use RH FC3 Firstboot so that after a fresh install off the Disto I put together a part of Firstboot will be a screen that asks for the DBuser and password to populate zm.conf and create the database. Also this would be responcible for setting the services to run. Later I could add more configuration options for ZM.
I was thinking it would be nice to have it simular to the system-config-network or system-config-security script that is packaged with Fedora.
Cheers,
Cordel
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

Cordel,
In FC* it is primary in mysql there is a user root with the empty password, it can be used for creation database ZM and users ZM_USER*. Thus interactivity here is not necessary. :)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Update:
I have now packaged the perl modules for X10 on FC3. It may work with other distos to but I have no way to check. I will try to get these on an FTP server for anyone that wants them ASAP. They are signed and you will be able to get the pgp key from the ftp as well.
ftp://cordel.no-ip.info
Cheers,
Cordel

__________________________
Update 2005-3-15
Files on the FTP server have moved but are still available.
ftp://cordel.no-ip.info/pub/linux/zonem ... Extra-RPMS
There also is a repository here for YUM both are the same server but if I find a location with more bandwidth the ftp server and repo will follow only the following urls
ftp://download.computerntelecom.com/pub ... re/3/i386/
http://download.computerntelecom.com/pu ... re/3/i386/
Last edited by cordel on Wed Mar 16, 2005 7:57 am, edited 1 time in total.
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

zm-1.20.0-2. FC3.*.rpm it is made and checked up for cases of initial installation and a upgrade with zm-1.19.5-*.rpm (rpm-F).
"ERR [Unable to authenticate user]" bug fixed. (?)
This package contains cambozola.jar.
Support X10 is made by a separate package zm-X10-1.20.0-2. FC3.i386.rpm. His installation will need installation of additional packages which create by Cordel: ftp://cordel.no-ip.info/pub/Fedora/3/RPMS/.
Sorry, for technical reasons zm-1.20.0-2. FC3.*.rpm it will be accessible to downloading after "Mon Jan 24 2004 08:00 am UTC" on former URLs: http://oskin.ru/pub/linux/RedHat/MyRPMS ... e/3/SRPMS/ and http://oskin.ru/pub/linux/RedHat/MyRPMS ... re/3/RPMS/
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Mandrake 10.1 users can get rpms here:
http://www.elltel.net/melins/RPMS/
http://www.elltel.net/melins/SRPMS/

These are oskin's FC3 rpms rebuilt for mandrake 10.1

Fresh install has been tested, and does not suffer the login issue detailed here:http://www.zoneminder.com/forums/viewtopic.php?t=4044
However further testing is needed to determine if the ERR [Unable to authenticate user] problem is present. I have thus far only installed on my laptop and have no video inputs to test with.

The mdk src.rpm can be rebuilt for mandrake 10.0 (the livecd system) and can be installed. If testing on a system installed from the livecd, uninstall v1.19.5 by going to the source directory and running 'sudo make uninstall'
NOTE however tat both the login problem and the ERR [Unable to authenticate user] problem are still issues when using the rpm rebuilt for mandrake 10.0, so only do this if you are wanting to help debug!

thanks to Phil, oskin, cordel, and all,
Ross
Post Reply