By default Debian does not come with sudo. Log in as root or use su command.
N.B. The instructions below are for setting up sudo for your current account, you can
do this as root if you prefer.
::
aptitude update
aptitude install sudo
usermod -a -G sudo <username>
exit
Logout or try ``newgrp`` to reload user groups
**Step 2**: Run sudo and update
Now run session using sudo and ensure system is updated.
::
sudo -i
aptitude safe-upgrade
**Step 3**: Install Apache and MySQL
These are not dependencies for the package as they could
be installed elsewhere.
::
aptitude install apache2 mysql-server
**Step 4**: Edit sources.list to add jessie-backports
::
nano /etc/apt/sources.list
Add the following to the bottom of the file
::
# Backports repository
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
CTRL+o and <Enter> to save
CTRL+x to exit
**Step 5**: Install ZoneMinder
::
aptitude update
aptitude install zoneminder
**Step 6**: Read the Readme
The rest of the install process is covered in the README.Debian, so feel free to have
a read.
::
gunzip /usr/share/doc/zoneminder/README.Debian.gz
cat /usr/share/doc/zoneminder/README.Debian
**Step 7**: Setup Database
Install the zm database and setup the user account. Refer to Hints in Ubuntu install
should you choose to change default database user and password.
::
cat /usr/share/zoneminder/db/zm_create.sql | sudo mysql --defaults-file=/etc/mysql/debian.cnf
echo 'grant lock tables,alter,create,select,insert,update,delete,index on zm.* to 'zmuser'@localhost identified by "zmpass";' | sudo mysql --defaults-file=/etc/mysql/debian.cnf mysql
** Step 8**: zm.conf Permissions
Adjust permissions to the zm.conf file to allow web account to access it.