Advertisement
kyis

Untitled

Feb 24th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. export DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_FRONTEND=noninteractive
  2. apt-get update
  3. apt-get upgrade
  4. add-apt-repository -y ppa:iconnor/zoneminder
  5. apt-get update
  6. apt-get install -y zoneminder php5-gd
  7. apt-get install -y libvlc-dev libvlccore-dev vlc
  8. service mysql start
  9. mysql -uroot < /usr/share/zoneminder/db/zm_create.sql
  10. mysql -uroot -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
  11. mysqladmin -uroot reload
  12. chmod 740 /etc/zm/zm.conf
  13. chown root:www-data /etc/zm/zm.conf
  14. sed -i '25i\        sleep 15' /etc/init.d/zoneminder
  15. adduser www-data video
  16. a2enmod cgi
  17. a2enconf zoneminder
  18. a2enmod rewrite
  19. service mysql restart
  20. service apache2 restart
  21. service zoneminder start
  22. echo "date.timezone = Europe/Paris" >> /etc/php5/apache2/php.ini
  23. service apache2 reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement