Zoneminder/Installation
From r00tedvw.com wiki
(Difference between revisions)
| Line 21: | Line 21: | ||
$sudo vi /etc/apache2/sites-available/zoneminder.conf | $sudo vi /etc/apache2/sites-available/zoneminder.conf | ||
| + | #next 6 lines should be in zoneminder.conf | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
| Line 27: | Line 28: | ||
CustomLog ${APACHE_LOG_DIR}/access.log combined | CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
</VirtualHost> | </VirtualHost> | ||
| + | |||
$sudo a2dissite 000-default | $sudo a2dissite 000-default | ||
$sudo a2ensite zoneminder | $sudo a2ensite zoneminder | ||
| Line 32: | Line 34: | ||
$sudo vi /etc/modprobe.d/bttv.conf | $sudo vi /etc/modprobe.d/bttv.conf | ||
| + | #next 2 lines should be in bttv.conf | ||
alias char-major-81-0 bttv | alias char-major-81-0 bttv | ||
options bttv card=77 pll=1 | options bttv card=77 pll=1 | ||
| + | |||
$sudo reboot | $sudo reboot | ||
Revision as of 02:18, 8 June 2014
This was all done on ubuntu 14.04lts server
$sudo apt-get update -y && sudo apt-get upgrade -y $sudo apt-get install -y apache2 mysql-server php5 $sudo apt-get install -y zoneminder
$sudo vi /etc/init.d/zoneminder
start() {
echo -n "Starting $prog: "
sleep 15 <<< Added
zmfix -a
$command start
$sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-available/zoneminder.conf $sudo ln -s /etc/apache2/conf-available/zoneminder.conf /etc/apache2/conf-enabled/zoneminder.conf $sudo a2enmod cgi $sudo service restart apache2
$sudo cd /usr/src && wget http://www.andywilcock.com/code/cambozola/cambozola-latest.tar.gz $sudo tar -xzvf cambozola-latest.tar.gz $sudo cp /usr/src/cambozola-0.935/dist/cambozola.jar /usr/share/zoneminder
$sudo vi /etc/apache2/sites-available/zoneminder.conf
#next 6 lines should be in zoneminder.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/zoneminder
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
$sudo a2dissite 000-default
$sudo a2ensite zoneminder
$sudo service apache2 restart
$sudo vi /etc/modprobe.d/bttv.conf #next 2 lines should be in bttv.conf alias char-major-81-0 bttv options bttv card=77 pll=1 $sudo reboot