Difference between revisions of "Debian"

From ZoneMinder Wiki
Jump to navigationJump to search
 
 
(78 intermediate revisions by 16 users not shown)
Line 1: Line 1:
'''yadig?''' yet another debian install guide - using default stable versions of apache/mysql/php and compiling zm without ffmpeg
[http://www.debian.org/ Debian GNU/Linux] is an operating system with a focus on stability. It's based on a sophisticated package management system that lets you choose from three releases of varying stability. The software packages included in the ''stable'' release have been tested thoroughly and are ideal for a server environment, whereas ''testing'' and ''unstable'' releases have more recent versions of software which usually contain some bugs. Ironically, Debian's ''unstable'' release is often more stable than many other distributions' final releases.


Zoneminder's even version numbers are stable releases.


1. install debian usings defaults, without software packages
==Installation Guides==


''to use the 2.6 kernel (recommended for bttv cards) type in linux26 at the cd-boot prompt. use expert26 for a more verbose 2.6 kernel install, or expert24 for a verbose 2.4 kernel install. here is the debian installation manual if needed: http://www.debian.org/releases/stable/installmanual''
*[[Debian 12 Bookworm with Zoneminder 1.36.x and 1.37.x]]
*[[Debian 11 Bullseye with Zoneminder 1.36.x]]
*[[Debian 10 Buster with Zoneminder 1.36.x from ZM Repo]]


==No Longer Supported - For Reference only==


2. login as root and install apache 1.3, mysql server 4.0, php 4.3, required libraries
*[[Debian 9 64-bit with Zoneminder 1.32.3 the Easy Way]]
<pre>
debian:~# apt-get install apache mysql-server libmysqlclient12-dev php4 php4-mysql g++ make netpbm libssl-dev libjpeg62-dev libmime-perl libwww-perl libarchive-tar-perl libdate-manip-perl libarchive-zip-perl libmime-lite-perl libdbi-perl libdbd-mysql-perl libpcre3-dev
</pre>


==Sysvinit Installation Guides==
Those who wish to use sysvinit can follow these guides.


3. increase shared memory and reboot
* [[Devuan Ascii with Zoneminder 1.32.3 from ZM Repo]]
<pre>
* [[Devuan 5 Daedalus with Zoneminder 1.36 from ZM Repo]]
debian:~# echo kernel.shmmax = 134217728 >> /etc/sysctl.conf
debian:~# reboot
</pre>
 
 
4. download, extract, configure zoneminder, import sql structure, create zmuser, compile
<pre>
debian:~# wget http://www2.zoneminder.com/downloads/ZoneMinder-1.22.1.tar.gz
debian:~# tar -xvzf ZoneMinder-1.22.1.tar.gz
debian:~# cd ZoneMinder-1.22.1
debian:~/ZoneMinder-1.22.1# ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data
debian:~/ZoneMinder-1.22.1# mysql mysql < db/zm_create.sql
debian:~/ZoneMinder-1.22.1# mysql mysql
mysql> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
mysql> quit
debian:~/ZoneMinder-1.22.1# mysqladmin reload
debian:~/ZoneMinder-1.22.1# make install
</pre>
 
 
5. connect to http://debian/zm and change these options...
 
System/<code>ZM_AUTH_RELAY</code> - none
 
Paths/<code>ZM_PATH_ZMS</code> - /cgi-bin/zms
 
 
'''---optional security settings---'''
 
6. turn on System/<code>ZM_OPT_USE_AUTH</code> and change the admin password
 
 
7. change mysql root password
<pre>
debian:~# mysqladmin -u root password 'passwordyouwant'
</pre>
 
 
8. install and configure a network time protocol client
<pre>
debian:~# apt-get install ntpdate
debian:~# echo NTPSERVERS="pool.ntp.org" >> /etc/default/ntpdate
</pre>
 
 
9. install and configure a firewall to only allow incoming http
<pre>
debian:~# apt-get install firehol
debian:~# firehol-wizard
</pre>

Latest revision as of 17:11, 27 September 2024

Debian GNU/Linux is an operating system with a focus on stability. It's based on a sophisticated package management system that lets you choose from three releases of varying stability. The software packages included in the stable release have been tested thoroughly and are ideal for a server environment, whereas testing and unstable releases have more recent versions of software which usually contain some bugs. Ironically, Debian's unstable release is often more stable than many other distributions' final releases.

Zoneminder's even version numbers are stable releases.

Installation Guides

No Longer Supported - For Reference only

Sysvinit Installation Guides

Those who wish to use sysvinit can follow these guides.