Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get upgrade
- add-apt-repository -y ppa:iconnor/zoneminder
- apt-get update
- apt-get install -y zoneminder php5-gd
- apt-get install -y libvlc-dev libvlccore-dev vlc
- service mysql start
- mysql -uroot < /usr/share/zoneminder/db/zm_create.sql
- mysql -uroot -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
- mysqladmin -uroot reload
- chmod 740 /etc/zm/zm.conf
- chown root:www-data /etc/zm/zm.conf
- sed -i '25i\ sleep 15' /etc/init.d/zoneminder
- adduser www-data video
- a2enmod cgi
- a2enconf zoneminder
- a2enmod rewrite
- service mysql restart
- service apache2 restart
- service zoneminder start
- echo "date.timezone = Europe/Paris" >> /etc/php5/apache2/php.ini
- service apache2 reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement