{"id":834,"date":"2019-07-23T08:56:10","date_gmt":"2019-07-23T14:56:10","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=834"},"modified":"2019-09-30T17:08:24","modified_gmt":"2019-09-30T23:08:24","slug":"zoneminder-instalacion-zoneminder","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=834","title":{"rendered":"ZONEMINDER: (1.32.3) Instalaci\u00f3n zoneminder debian 9"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Paso 1: instalamos dependencias<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install php mariadb-server php-mysql apache2-mod-php7.0 apache2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 2: creamos contrase\u00f1a de usuario \u00abroot\u00bb de mariaDB<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql_secure_installation<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Pasos:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB\nSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!\n\nIn order to log into MariaDB to secure it, we'll need the current\npassword for the root user. If you've just installed MariaDB, and\nyou haven't set the root password yet, the password will be blank,\nso you should just press enter here.\n\nEnter current password for root (enter for none): ENTER\nSetting the root password ensures that nobody can log into the MariaDB\nroot user without the proper authorisation.\n\nSet root password? [Y\/n] Y\nNew password: \nRe-enter new password: \nPassword updated successfully!\nReloading privilege tables..\n... Success!\n\nBy default, a MariaDB installation has an anonymous user, allowing anyone\nto log into MariaDB without having to have a user account created for\nthem. This is intended only for testing, and to make the installation\ngo a bit smoother. You should remove them before moving into a\nproduction environment.\n\nRemove anonymous users? [Y\/n] Y\n... Success!\n\nNormally, root should only be allowed to connect from 'localhost'. This\nensures that someone cannot guess at the root password from the network.\n\nDisallow root login remotely? [Y\/n] Y\n... Success!\n\nBy default, MariaDB comes with a database named 'test' that anyone can\naccess. This is also intended only for testing, and should be removed\nbefore moving into a production environment.\n\nRemove test database and access to it? [Y\/n] Y\n- Dropping test database...\n... Success!\n- Removing privileges on test database...\n... Success!\n\nReloading the privilege tables will ensure that all changes made so far\nwill take effect immediately.\n\nReload privilege tables now? [Y\/n] Y\n... Success!\n\nCleaning up...\n\nAll done! If you've completed all of the above steps, your MariaDB\ninstallation should now be secure.\n\nThanks for using MariaDB!<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 3: reemplazar el archivo de configuraci\u00f3n de MYSQL por el de MARIADB<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>rm \/etc\/mysql\/my.cnf  \ncp \/etc\/mysql\/mariadb.conf.d\/50-server.cnf \/etc\/mysql\/my.cnf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 4: asegurar que en el el archivo de configuraci\u00f3n de MariaDB<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/mysql\/my.cnf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Existe:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>character-set-server  = utf8mb4\ncollation-server      = utf8mb4_general_ci<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Adem\u00e1s comentar la siguiente linea para poder ingresar con un usuario remoto<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#bind-address            = 127.0.0.1<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 5: reiniciar mariaDB<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>service mariadb restart<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 6: Agregar al sources.list<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>AGREGAR:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>deb https:\/\/zmrepo.zoneminder.com\/debian\/release stretch\/<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 7: instalamos, obtenemos llave y actualizamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install apt-transport-https -y\nwget -O - https:\/\/zmrepo.zoneminder.com\/debian\/archive-keyring.gpg | apt-key add -<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 9: actualizamos el sistema<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update &amp;&amp; apt upgrade &amp;&amp; apt dist-upgrade<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 10: Instalamos zoneminder<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install zoneminder vlc-plugin-base php7.0-gd -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 11: establecemos permisos al archivo de configuraci\u00f3n<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 740 \/etc\/zm\/zm.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 12: modificamos el due\u00f1o<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chown root:www-data \/etc\/zm\/zm.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 13: establecemos que Zoneminder inicie al arrancar el sistema<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable zoneminder.service<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 14: agregar el usuario \u00abwww-data\u00bb al grupo \u00abvideo\u00bb<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>adduser www-data video<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 15: Iniciamos Zoneminder<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start zoneminder.service<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 16: verificamos que arranco correctamente<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status zoneminder.service<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>* zoneminder.service - ZoneMinder CCTV recording and surveillance system\nLoaded: loaded (\/lib\/systemd\/system\/zoneminder.service; enabled; vendor preset: enabled)\nActive: active (running) since Fri 2017-11-10 16:06:46 UTC; 12min ago\nMain PID: 23492 (zmdc.pl)\nCGroup: \/system.slice\/zoneminder.service\n> 23492 \/usr\/bin\/perl -wT \/usr\/bin\/zmdc.pl startup<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 17: Habilitamos los m\u00f3dulos de apache<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>a2enmod cgi\na2enmod rewrite\na2enconf zoneminder\nsystemctl reload apache2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 18: establecemos la zona horaria en PHP<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/php\/7.0\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>MODIFICAR:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>;date.timezone =\nX\ndate.timezone = America\/Costa_Rica<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 19: cambiar due\u00f1o de sistema zoneminder<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chown -R www-data:www-data \/usr\/share\/zoneminder\/<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 20: reiniciamos apache<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>service apache2 restart<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 21: ingresar a&nbsp;<a href=\"http:\/\/10.200.0.19\/zm\/index.php\">http:\/\/10.200.0.19\/zm\/index.php<\/a><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1000\" height=\"75\" src=\"\/wp-content\/uploads\/2019\/07\/1-6.png\" alt=\"\" class=\"wp-image-835\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/1-6.png 1000w, https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/1-6-300x23.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/1-6-768x58.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Instalaci\u00f3n de zoneminder<\/p>\n","protected":false},"author":2,"featured_media":2072,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[48],"class_list":["post-834","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zoneminder","tag-zoneminder"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=834"}],"version-history":[{"count":6,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/834\/revisions"}],"predecessor-version":[{"id":2449,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/834\/revisions\/2449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/2072"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}