0190.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Installing ZoneMinder on Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Installing ZoneMinder on Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="08/20/2022 08:40:46 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Installing ZoneMinder on Linux</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Debian device</li>
  27. <li>Run the following commands in a terminal:
  28. <div class="codeBlock"># update repositories<br />
  29. sudo apt update<br />
  30. # install any available software updates<br />
  31. sudo apt upgrade<br />
  32. # install prerequisites<br />
  33. sudo apt install apt-transport-https gnupg libvlccore-dev libvlc-dev -y<br />
  34. # add zoneminder gpg key<br />
  35. wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | sudo apt-key add -<br />
  36. # install Apache HTTPD and MySQL<br />
  37. sudo apt install apache2 mariadb-server mariadb-client -y<br />
  38. # install PHP components<br />
  39. sudo apt install php7.3 libapache2-mod-php7.3 php7.3-mysql -y<br />
  40. # add ZoneMinder apt repository<br />
  41. sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://zmrepo.zoneminder.com/debian/release-1.36 $(lsb_release -cs)/&quot;<br />
  42. # configure the MySQL database<br />
  43. sudo su<br />
  44. mysql_secure_installation</div>
  45. </li>
  46. <li>Press Enter to login as root</li>
  47. <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
  48. <li>Type Y and press Enter to remove anonymous users</li>
  49. <li>Type Y and press Enter to disallow root login remotely</li>
  50. <li>Type Y and press Enter to remove the test database</li>
  51. <li>Type Y and press Enter to reload privilege tables</li>
  52. <li>Continue with the following commands in terminal:
  53. <div class="codeBlock"># update software repositories<br />
  54. sudo apt update<br />
  55. # install zoneminder<br />
  56. sudo apt install zoneminder -y<br />
  57. # create video user<br />
  58. sudo adduser www-data video<br />
  59. # enable and auto-start ZoneMinder service<br />
  60. sudo systemctl enable zoneminder.service &amp;&amp; sudo systemctl start zoneminder<br />
  61. # enable ZoneMinder apache conf<br />
  62. sudo a2enconf zoneminder<br />
  63. sudo a2enmod rewrite<br />
  64. # restart apache service<br />
  65. sudo systemctl restart apache2</div>
  66. </li>
  67. <li>Open a web browser and navigate to http://DNSorIP/zm</li>
  68. <li>Select whether to share usage data with the developers &gt; Click Apply</li>
  69. <li>Click Options in the top navigation bar</li>
  70. <li>Select Users from the left navigation menu</li>
  71. <li>Click on the admin* username link</li>
  72. <li>Type a secure password in the New Password and Confirm Password fields and click Save</li>
  73. <li>To add a camera click Console in the top navigation bar and then click the Add button and fill out the form</li>
  74. </ol> </div>
  75. </div>
  76. </body>
  77. </html>