123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Installing ZoneMinder on Linux</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Linux,Homelab,Video Monitoring,ZoneMinder,Debian,Video Surveillance,Open-Source,Open Source Software,Free Open Source Software,FOSS,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Installing ZoneMinder on Linux">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="08/20/2022 08:40:46 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Installing ZoneMinder on Linux</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into the Debian device</li>
- <li>Run the following commands in a terminal:
- <div class="codeBlock"># update repositories<br />
- sudo apt update<br />
- # install any available software updates<br />
- sudo apt upgrade<br />
- # install prerequisites<br />
- sudo apt install apt-transport-https gnupg libvlccore-dev libvlc-dev -y<br />
- # add zoneminder gpg key<br />
- wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | sudo apt-key add -<br />
- # install Apache HTTPD and MySQL<br />
- sudo apt install apache2 mariadb-server mariadb-client -y<br />
- # install PHP components<br />
- sudo apt install php7.3 libapache2-mod-php7.3 php7.3-mysql -y<br />
- # add ZoneMinder apt repository<br />
- sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://zmrepo.zoneminder.com/debian/release-1.36 $(lsb_release -cs)/"<br />
- # configure the MySQL database<br />
- sudo su<br />
- mysql_secure_installation</div>
- </li>
- <li>Press Enter to login as root</li>
- <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
- <li>Type Y and press Enter to remove anonymous users</li>
- <li>Type Y and press Enter to disallow root login remotely</li>
- <li>Type Y and press Enter to remove the test database</li>
- <li>Type Y and press Enter to reload privilege tables</li>
- <li>Continue with the following commands in terminal:
- <div class="codeBlock"># update software repositories<br />
- sudo apt update<br />
- # install zoneminder<br />
- sudo apt install zoneminder -y<br />
- # create video user<br />
- sudo adduser www-data video<br />
- # enable and auto-start ZoneMinder service<br />
- sudo systemctl enable zoneminder.service && sudo systemctl start zoneminder<br />
- # enable ZoneMinder apache conf<br />
- sudo a2enconf zoneminder<br />
- sudo a2enmod rewrite<br />
- # restart apache service<br />
- sudo systemctl restart apache2</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP/zm</li>
- <li>Select whether to share usage data with the developers > Click Apply</li>
- <li>Click Options in the top navigation bar</li>
- <li>Select Users from the left navigation menu</li>
- <li>Click on the admin* username link</li>
- <li>Type a secure password in the New Password and Confirm Password fields and click Save</li>
- <li>To add a camera click Console in the top navigation bar and then click the Add button and fill out the form</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|