Difference between revisions of "Ubuntu Server 16.04 64-bit with Zoneminder 1.32.x the easy way"
(Created page with "For Ubuntu 15.10 with default Zoneminder 1.28.1 Install Ubuntu 15.10 from the server CD with LAMP. If you use the minimum setup disk install basic server and LAMP. You may co...") |
|||
Line 77: | Line 77: | ||
service apache2 restart | service apache2 restart | ||
Open Zoneminder in web browser | |||
http://serverip/zm | |||
Enable ffmpeg | |||
Open Zoneminder in a web browser, Go to options (top right) Go to Images | |||
OPT_FFMPEG Is the ffmpeg video encoder/decoder installed (?) Tick | |||
PATH_FFMPEG Path to (optional) ffmpeg mpeg encoder (?) replace with /usr/bin/ffmpeg | |||
Save then exit | |||
Reboot |
Revision as of 16:13, 29 October 2015
For Ubuntu 15.10 with default Zoneminder 1.28.1
Install Ubuntu 15.10 from the server CD with LAMP. If you use the minimum setup disk install basic server and LAMP. You may configure a static IP address for you server. Learn how to do this elsewhere.
Become root
sudo su
Install Zoneminder
apt-get install zoneminder
Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)
This next step creates a file which contained the MySQL user and password. Otherwise you will have to enter the user and password on teh command line which is not secure!
Go to the root directory
cd ~
Create a hidden password file
nano .my.cnf
Enter this content (but use your MySQL root password!)
[client] user=root password=(mysqlpass)
Ctrl+o Enter to save
CTRL+x to exit
Create database (press ENTER after each command)
mysql < /usr/share/zoneminder/db/zm_create.sql
mysql -e "grant select,insert,update,delete,create on zm.* to 'zmuser'@localhost identified by 'zmpass';"
Remove password file
rm .my.cnf
Set permissions of /etc/zm/zm.conf to root:www-data 740
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
Enable Zoneminder service to start at boot
systemctl enable zoneminder.service
Create a new user
adduser www-data video
Start Zoneminder
systemctl start zoneminder.service
Check to see that Zoneminder is running
systemctl status zoneminder.service
Enable CGI and Zoneminder configuration in Apache.
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
Restart Apache
service apache2 restart
Open Zoneminder in web browser
http://serverip/zm
Enable ffmpeg
Open Zoneminder in a web browser, Go to options (top right) Go to Images
OPT_FFMPEG Is the ffmpeg video encoder/decoder installed (?) Tick
PATH_FFMPEG Path to (optional) ffmpeg mpeg encoder (?) replace with /usr/bin/ffmpeg
Save then exit
Reboot