Difference between revisions of "PCLinuxOS and 1.23.1"

From ZoneMinder Wiki
Jump to navigationJump to search
 
Line 1: Line 1:
== Encouraged Method ==
Due to [http://www.pclinuxos.com/index.php?option=com_smf&Itemid=58&topic=37068.0 a package request] in the [http://www.pclinuxos.com PCLinuxOS] forums, ZoneMinder has been added to the standard PCLinuxOS repositories.
To install, simply use Synaptic to fetch '''zoneminder''' and all of its required dependencies. Then, once you have installed zone minder on your system, you still need to do several things before running it. So, open up a root terminal session and run
service mysqld start
service httpd start
then, '''if you haven't already done so''', setup a root account for MySQL by typing
mysqladmin -u root password BLAHBLAH
where ''BLAHBLAH'' is, of course, the new root password for MySQL. Next modify ''/etc/zm.conf'' to specify the MySQL username (root) and password (BLAHBLAH) in the empty fields towards the bottom of the file. Next run
/usr/lib/zm/bin/zminit
and specify the MySQL root username (root) and password (BLAHBLAH). Finally, start the ZM service by typing
service zm start
and when that finishes, run
mv /etc/rc.d/rc0.d/K00zm /etc/rc.d/rc0.d/K000zm
mv /etc/rc.d/rc1.d/K00zm /etc/rc.d/rc1.d/K000zm
mv /etc/rc.d/rc6.d/K00zm /etc/rc.d/rc6.d/K000zm
Finally point your browser to http://localhost/zm and log in with username (admin) and password (admin).
== Discouraged Method ==
'''NOTE''': Installing software from outside of the standard PCLinuxOS repositories is highly discouraged by the distribution. So, use this method at your own risk and understand that if anything won't work, you will likely not get any support on the PCLinuxOS forums.
Here is a set of instructions that has worked for me to install ZoneMinder 1.23.1 on a fresh install of PCLinuxOS 2008 'MiniMe' using RPMs by rdmelin.  
Here is a set of instructions that has worked for me to install ZoneMinder 1.23.1 on a fresh install of PCLinuxOS 2008 'MiniMe' using RPMs by rdmelin.  


Line 52: Line 73:


Now go play with your system ;)
Now go play with your system ;)
== Update ==
Due to [http://www.pclinuxos.com/index.php?option=com_smf&Itemid=58&topic=37068.0 a package request] in the [http://www.pclinuxos.com PCLinuxOS] forums, ZoneMinder has been added to the standard PCLinuxOS repositories.
To install, simply use Synaptic to fetch '''zoneminder''' and all of its required dependencies. Then, once you have installed zone minder on your system, you still need to do several things before running it. So, open up a root terminal session and run
service mysqld start
service httpd start
then, '''if you haven't already done so''', setup a root account for MySQL by typing
mysqladmin -u root password BLAHBLAH
where ''BLAHBLAH'' is, of course, the new root password for MySQL. Next modify ''/etc/zm.conf'' to specify the MySQL username (root) and password (BLAHBLAH) in the empty fields towards the bottom of the file. Next run
/usr/lib/zm/bin/zminit
and specify the MySQL root username (root) and password (BLAHBLAH). Finally, start the ZM service by typing
service zm start
and when that finishes, run
mv /etc/rc.d/rc0.d/K00zm /etc/rc.d/rc0.d/K000zm
mv /etc/rc.d/rc1.d/K00zm /etc/rc.d/rc1.d/K000zm
mv /etc/rc.d/rc6.d/K00zm /etc/rc.d/rc6.d/K000zm
Finally point your browser to http://localhost/zm and log in with username (admin) and password (admin).

Latest revision as of 07:53, 19 November 2008

Encouraged Method

Due to a package request in the PCLinuxOS forums, ZoneMinder has been added to the standard PCLinuxOS repositories.

To install, simply use Synaptic to fetch zoneminder and all of its required dependencies. Then, once you have installed zone minder on your system, you still need to do several things before running it. So, open up a root terminal session and run

service mysqld start
service httpd start

then, if you haven't already done so, setup a root account for MySQL by typing

mysqladmin -u root password BLAHBLAH

where BLAHBLAH is, of course, the new root password for MySQL. Next modify /etc/zm.conf to specify the MySQL username (root) and password (BLAHBLAH) in the empty fields towards the bottom of the file. Next run

/usr/lib/zm/bin/zminit

and specify the MySQL root username (root) and password (BLAHBLAH). Finally, start the ZM service by typing

service zm start

and when that finishes, run

mv /etc/rc.d/rc0.d/K00zm /etc/rc.d/rc0.d/K000zm
mv /etc/rc.d/rc1.d/K00zm /etc/rc.d/rc1.d/K000zm
mv /etc/rc.d/rc6.d/K00zm /etc/rc.d/rc6.d/K000zm

Finally point your browser to http://localhost/zm and log in with username (admin) and password (admin).

Discouraged Method

NOTE: Installing software from outside of the standard PCLinuxOS repositories is highly discouraged by the distribution. So, use this method at your own risk and understand that if anything won't work, you will likely not get any support on the PCLinuxOS forums.

Here is a set of instructions that has worked for me to install ZoneMinder 1.23.1 on a fresh install of PCLinuxOS 2008 'MiniMe' using RPMs by rdmelin.

See http://www.zoneminder.com/wiki/index.php/ZMliveCD and http://www.zoneminder.com/wiki/index.php/ZMliveCD_Update_RPM_notes

This wicki assumes you can install from the PCLinuxOS MiniMe CD and your hardware is compliant.

Use at your own risk, your mileage may vary, may cause drowsiness, keep out of reach of children, do not operate heavy machinery ...

Start by downloading and installing the 'MiniMe' (livecd) version of PCLinuxOS. I was not able to get LVM or Linux Raid configured from the installer, so if you're going to use those leave adequate space on the drives and create a minimal '/' partition and add your other volumes later.

The first thing I do is setup the network

Taskbar -> Configure your Computer -> Network -> Set Up a New Network

I usually restart x as I manually set the hostname.

I do everything in a konsole (as root!) from this point on.

setup repository

Get the required files

wget http://sentrix.homeip.net/rpms/noarch/perl-Astro-SunTime-0.01-1.noarch.rpm 
wget http://sentrix.homeip.net/rpms/noarch/perl-PHP-Serialization-0.27-1.noarch.rpm  
wget http://sentrix.homeip.net/rpms/noarch/perl-X10-0.03-1.noarch.rpm
wget http://sentrix.homeip.net/rpms/pclos2007/zm-1.23.1-4pclos2007.i586.rpm

Install using apt

apt-get install perl-Astro-SunTime-0.01-1.noarch.rpm
apt-get install perl-PHP-Serialization-0.27-1.noarch.rpm
apt-get install perl-X10-0.03-1.noarch.rpm
apt-get install zm-1.23.1-4pclos2007.i586.rpm

Set the db username and password

kwrite /etc/zm.conf

start the mysql and apache services

service mysqld start
service httpd start

Initialize the ZM databases

/usr/lib/zm/bin/zminit

And finally, start ZoneMinder

service zm start

Rename the rc.d processes so that ZM quits before MySQL

rename /etc/rc.d/rc0.d/k00zm /etc/rc.d/rc0.d/k000zm
rename /etc/rc.d/rc1.d/k00zm /etc/rc.d/rc1.d/k000zm
rename /etc/rc.d/rc6.d/k00zm /etc/rc.d/rc6.d/k000zm

Start a browser, go to http://localhost/zm
log in as admin / admin

Now go play with your system ;)