{"id":1912,"date":"2019-09-18T15:01:12","date_gmt":"2019-09-18T21:01:12","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=1912"},"modified":"2019-09-26T14:12:38","modified_gmt":"2019-09-26T20:12:38","slug":"ocs-instalacion-debian-9","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=1912","title":{"rendered":"OCS: Instalacion Debian 9"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Lo primero es as\u00edgnale una IP fija<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/network\/interfaces<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># This file describes the network interfaces available on your system\n# and how to activate them. For more information, see interfaces(5).\n\nsource \/etc\/network\/interfaces.d\/*\n\n# The loopback network interface\nauto lo\niface lo inet loopback\n\n# The primary network interface\nallow-hotplug ens18\niface ens18 inet static\naddress 10.20.200.21\nnetmask 255.255.255.0\nbroadcast 10.20.200.255\ngateway 10.20.200.1\ndns-nameservers 10.20.200.1\n\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Actualizamos el sistema<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get update &amp;&amp; apt-get upgrade -y  &amp;&amp; apt-get dist-upgrade -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora vamos instalar dependencias<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install build-essential make apache2 nmap mysql-server php php-mysql php-gd php7.0-dev php-mbstring php-soap php-curl perl libapache2-mod-perl2 libapache2-mod-php libxml-simple-perl libcompress-zlib-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libio-compress-perl libdbi-perl libdbd-mysql-perl libc6-dev php-pclzip   ZipArchive snmp\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Otras<\/li><li><code> cpan -i XML::Entities cpan -i Archive::Zip mkdir \/usr\/include\/apache2 cpan -i Apache2::SOAP <\/code><\/li><li>Instalamos \u00abMojolicious\u00bb<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install cpanminus\ncpanm Plack\ncpan Mojolicious<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Vamos a configurar 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>RESULTADO:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br> SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<br><br>In order to log into MariaDB to secure it, we'll need the current<br>password for the root user. If you've just installed MariaDB, and<br>you haven't set the root password yet, the password will be blank,<br>so you should just press enter here.<br><br>Enter current password for root (enter for none): <strong>root<\/strong><br>OK, successfully used password, moving on...<br><br>Setting the root password ensures that nobody can log into the MariaDB<br>root user without the proper authorisation.<br><br>You already have a root password set, so you can safely answer 'n'.<br><br>Change the root password? [Y\/n] <strong>Y<\/strong><br><br>New password: <strong>HB3<\/strong><br>Re-enter new password: <strong>HB3<\/strong><br>Password updated successfully!<br>Reloading privilege tables..<br> ... Success!<br><br><br>By default, a MariaDB installation has an anonymous user, allowing anyone<br>to log into MariaDB without having to have a user account created for<br>them. This is intended only for testing, and to make the installation<br>go a bit smoother. You should remove them before moving into a<br>production environment.<br><br>Remove anonymous users? [Y\/n] <strong>Y<\/strong><br><br> ... Success!<br><br>Normally, root should only be allowed to connect from 'localhost'. This<br>ensures that someone cannot guess at the root password from the network.<br><br>Disallow root login remotely? [Y\/n] <strong>Y<\/strong><br><br> ... Success!<br><br>By default, MariaDB comes with a database named 'test' that anyone can<br>access. This is also intended only for testing, and should be removed<br>before moving into a production environment.<br><br>Remove test database and access to it? [Y\/n] <strong>Y<\/strong><br> - Dropping test database...<br> ... Success!<br> - Removing privileges on test database...<br> ... Success!<br><br>Reloading the privilege tables will ensure that all changes made so far<br>will take effect immediately.<br><br>Reload privilege tables now? [Y\/n] <strong>Y<\/strong><br> ... Success!<br><br>Cleaning up...<br><br>All done! If you've completed all of the above steps, your MariaDB<br>installation should now be secure.<br><br>Thanks for using MariaDB!<br><br><br><br><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingesamos a mysql<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -p\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Le otorgamos permisos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>GRANT ALL PRIVILEGES ON `ocsweb` .* TO 'remoto'@'localhost' IDENTIFIED BY 'RB0' WITH GRANT OPTION;GRANT ALL PRIVILEGES ON `ocsweb` .* TO 'ocs'@'localhost' IDENTIFIED BY 'Remoto_BAS_0' WITH GRANT OPTION;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Descargamos el software<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/OCSInventory-NG\/OCSInventory-ocsreports\/releases\/download\/2.4.1\/OCSNG_UNIX_SERVER_2.4.1.tar.gz\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Lo descomprimimos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xvzf OCSNG_UNIX_SERVER_2.4.1.tar.gz<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos a la carpeta<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd OCSNG_UNIX_SERVER_2.4.1<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Podemos listar las dependencias para ver si nos falta alguna<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cat INSTALL <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora vamos hacer unas modificaciones al archivo de configuraci\u00f3n de apache<\/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>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>post_max_size = 8M\nX\npost_max_size = 150M\n\nupload_max_filesize = 2M\nX\nupload_max_filesize = 150M\n\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apache2\/apache2.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>A\u00f1adimos al final<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>ServerName localhost<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>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>Ahora podemos ejecutar el instalador<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sh setup.sh<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>RESULTADO:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">+----------------------------------------------------------+<br>| |<br>| Welcome to OCS Inventory NG Management server setup ! |<br>| |<br>+----------------------------------------------------------+<br><br>Trying to determine which OS or Linux distribution you use<br>+----------------------------------------------------------+<br>| Checking for Apache web server binaries ! |<br>+----------------------------------------------------------+<br><br>CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and<br>previous, please remove any Apache configuration for Communication Server!<br><br>Do you wish to continue ([y]\/n)? <strong>y<\/strong><br>Assuming Communication server 1.0 RC2 or previous is not installed<br>on this computer.<br><br>Starting OCS Inventory NG Management server setup from folder \/home\/ugit\/OCSNG_UNIX_SERVER_2.4.1<br>Storing log in file \/home\/ugit\/OCSNG_UNIX_SERVER_2.4.1\/ocs_server_setup.log<br><br>+----------------------------------------------------------+<br>| Checking for database server properties... |<br>+----------------------------------------------------------+<br><br>Your MySQL client seems to be part of MySQL version 10.1.<br>Your computer seems to be running MySQL 4.1 or higher, good ;-)<br><br>Which host is running database server [localhost] ? <strong>ENTER<\/strong><br>OK, database server is running on host localhost ;-)<br><br>On which port is running database server [3306] ? <strong>ENTER<\/strong><br>OK, database server is running on port 3306 ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for Apache web server daemon... |<br>+----------------------------------------------------------+<br><br>Where is Apache daemon binary [\/usr\/sbin\/apache2ctl] ? <strong>ENTER<\/strong><br><br>OK, using Apache daemon \/usr\/sbin\/apache2ctl ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for Apache main configuration file... |<br>+----------------------------------------------------------+<br><br>Where is Apache main configuration file [\/etc\/apache2\/apache2.conf] ? <strong>ENTER<\/strong><br><br>OK, using Apache main configuration file \/etc\/apache2\/apache2.conf ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for Apache user account... |<br>+----------------------------------------------------------+<br><br>Which user account is running Apache web server [www-data] ? <strong>ENTER<\/strong><br><br>OK, Apache is running under user account www-data ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for Apache group... |<br>+----------------------------------------------------------+<br><br>Which user group is running Apache web server [www-data] ? <strong>ENTER<\/strong><br><br>OK, Apache is running under users group www-data ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for Apache Include configuration directory... |<br>+----------------------------------------------------------+<br><br>Setup found Apache Include configuration directory in<br>\/etc\/apache2\/conf-available.<br>Setup will put OCS Inventory NG Apache configuration in this directory.<br>Where is Apache Include configuration directory [\/etc\/apache2\/conf-available] ? <strong>\/etc\/apache2\/conf-enabled<\/strong><br><br>OK, Apache Include configuration directory \/etc\/apache2\/conf-enabled found ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for PERL Interpreter... |<br>+----------------------------------------------------------+<br><br>Found PERL interpreter at &lt;\/usr\/bin\/perl&gt; ;-)<br>Where is PERL interpreter binary [\/usr\/bin\/perl] ? <strong>ENTER<\/strong><br><br>OK, using PERL interpreter \/usr\/bin\/perl ;-)<br><br><br>Do you wish to setup Communication server on this computer ([y]\/n)? <strong>ENTER<\/strong><br>+----------------------------------------------------------+<br>| Checking for Make utility... |<br>+----------------------------------------------------------+<br><br>OK, Make utility found at &lt;\/usr\/bin\/make&gt; ;-)<br><br>+----------------------------------------------------------+<br>| Checking for Apache mod_perl version... |<br>+----------------------------------------------------------+<br><br>Checking for Apache mod_perl version 1.99_22 or higher<br>Found that mod_perl version 1.99_22 or higher is available.<br>OK, Apache is using mod_perl version 1.99_22 or higher ;-)<br><br>+----------------------------------------------------------+<br>| Checking for Communication server log directory... |<br>+----------------------------------------------------------+<br><br>Communication server can create detailed logs. This logs can be enabled<br>by setting integer value of LOGLEVEL to 1 in Administration console<br>menu Configuration.<br>Where to put Communication server log directory [\/var\/log\/ocsinventory-server] ? <strong>ENTER<\/strong><br><br>OK, Communication server will put logs into directory \/var\/log\/ocsinventory-server ;-)<br><br>+----------------------------------------------------------------------------+<br>| Checking for Communication server plugins configuration directory... |<br>+----------------------------------------------------------------------------+<br><br>Communication server need a directory for plugins configuration files. <br>Where to put Communication server plugins configuration files [\/etc\/ocsinventory-server\/plugins] ? <strong>ENTER<\/strong><br><br><br>+-------------------------------------------------------------------+<br>| Checking for Communication server plugins perl directory... |<br>+-------------------------------------------------------------------+<br><br>Communication server need a directory for plugins Perl modules files.<br>Where to put Communication server plugins Perl modules files [\/etc\/ocsinventory-server\/perl] ? <strong>ENTER<\/strong><br><br><br>OK, Communication server will put plugins Perl modules files into directory \/etc\/ocsinventory-server\/perl ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for required Perl Modules... |<br>+----------------------------------------------------------+<br><br>Checking for DBI PERL module...<br>Found that PERL module DBI is available.<br>Checking for Apache::DBI PERL module...<br>Found that PERL module Apache::DBI is available.<br>Checking for DBD::mysql PERL module...<br>Found that PERL module DBD::mysql is available.<br>Checking for Compress::Zlib PERL module...<br>Found that PERL module Compress::Zlib is available.<br>Checking for XML::Simple PERL module...<br>Found that PERL module XML::Simple is available.<br>Checking for Net::IP PERL module...<br>Found that PERL module Net::IP is available.<br>Checking for SOAP::Lite Perl module...<br>Found that PERL module SOAP::Lite is available.<br>Checking for Archive::Zip Perl module...<br>Found that PERL module Archive::Zip is available.<br><br>+----------------------------------------------------------+<br>| Checking for optional Perl Modules... |<br>+----------------------------------------------------------+<br><br>Checking for Apache2::SOAP PERL module...<br>Found that PERL module SOAP::Apache2 is available.<br>Checking for XML::Entities PERL module...<br>Found that PERL module XML::Entities is available.<br><br><br>Do you wish to setup Rest API server on this computer ([y]\/n)? <strong>ENTER<\/strong><br><br><br>+----------------------------------------------------------+<br>| Checking for REST API Dependencies ... |<br>+----------------------------------------------------------+<br><br>Found that PERL module Mojolicious::Lite is available.<br>Found that PERL module Switch is available.<br>Found that PERL module Plack::Handler is available.<br><br>+----------------------------------------------------------+<br>| Configuring REST API Server files ... |<br>+----------------------------------------------------------+<br><br>Where do you want the API code to be store [\/usr\/local\/share\/perl\/5.24.1] ? <strong>ENTER<\/strong><br><br><br>Copying files to \/usr\/local\/share\/perl\/5.24.1<br><br>+----------------------------------------------------------+<br>| Configuring REST API Server configuration files ... |<br>+----------------------------------------------------------+<br><br>+----------------------------------------------------------+<br>| OK, looks good ;-) |<br>| |<br>| Configuring Communication server Perl modules... |<br>+----------------------------------------------------------+<br><br><br>+----------------------------------------------------------+<br>| OK, looks good ;-) |<br>| |<br>| Preparing Communication server Perl modules... |<br>+----------------------------------------------------------+<br><br><br>+----------------------------------------------------------+<br>| OK, prepare finshed ;-) |<br>| |<br>| Installing Communication server Perl modules... |<br>+----------------------------------------------------------+<br><br><br>+----------------------------------------------------------+<br>| OK, Communication server Perl modules install finished;-)|<br>| |<br>| Creating Communication server log directory... |<br>+----------------------------------------------------------+<br>Creating Communication server log directory \/var\/log\/ocsinventory-server.<br><br>Fixing Communication server log directory files permissions.<br>Configuring logrotate for Communication server.<br><br>Removing old communication server logrotate file \/etc\/logrotate.d\/ocsinventory-NG<br>Writing communication server logrotate to file \/etc\/logrotate.d\/ocsinventory-server<br><br>+----------------------------------------------------------------------+<br>| OK, Communication server log directory created ;-) |<br>| |<br>| Creating Communication server plugins configuration directory... |<br>+----------------------------------------------------------------------+<br><br>Creating Communication server plugins configuration directory \/etc\/ocsinventory-server\/plugins.<br><br><br>+----------------------------------------------------------------------+<br>| OK, Communication server plugins configuration directory created ;-) |<br>| |<br>| Creating Communication server plugins Perl directory... |<br>+----------------------------------------------------------------------+<br><br>Creating Communication server plugins Perl directory \/etc\/ocsinventory-server\/perl.<br><br><br>+----------------------------------------------------------------------+<br>| OK, Communication server plugins Perl directory created ;-) |<br>| |<br>| Now configuring Apache web server... |<br>+----------------------------------------------------------------------+<br>To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,<br>Setup can name Communication Server Apache configuration file<br>'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'.<br>Do you allow Setup renaming Communication Server Apache configuration file<br>to 'z-ocsinventory-server.conf' ([y]\/n) ? <strong>ENTER<\/strong><br><br><br>OK, using 'z-ocsinventory-server.conf' as Communication Server Apache configuration file<br><br>Removing old communication server configuration to file \/etc\/apache2\/conf-enabled\/ocsinventory.conf<br>Writing communication server configuration to file \/etc\/apache2\/conf-enabled\/z-ocsinventory-server.conf<br><br>+----------------------------------------------------------------------+<br>| OK, Communication server setup successfully finished ;-) |<br>| |<br>| Please, review \/etc\/apache2\/conf-enabled\/z-ocsinventory-server.conf |<br>| to ensure all is good. Then restart Apache daemon. |OCS: Instalacion Debian 9<br>+----------------------------------------------------------------------+<br><br><br>Do you wish to setup Administration Server (Web Administration Console)<br>on this computer ([y]\/n)? <strong>ENTER<\/strong><br><br><br>+----------------------------------------------------------+<br>| Checking for Administration Server directories... |<br>+----------------------------------------------------------+<br><br>CAUTION: Setup now install files in accordance with Filesystem Hierarchy<br>Standard. So, no file is installed under Apache root document directory<br>(Refer to Apache configuration files to locate it).<br>If you're upgrading from OCS Inventory NG Server 1.01 and previous, YOU<br>MUST REMOVE (or move) directories 'ocsreports' and 'download' from Apache<br>root document directory.<br>If you choose to move directory, YOU MUST MOVE 'download' directory to<br>Administration Server writable\/cache directory (by default<br>\/var\/lib\/ocsinventory-reports), especially if you use deployment feature.<br><br>Do you wish to continue ([y]\/n)? <strong>ENTER<\/strong><br>Assuming directories 'ocsreports' and 'download' removed from<br>Apache root document directory.<br><br>Where to copy Administration Server static files for PHP Web Console<br>[\/usr\/share\/ocsinventory-reports] ? <strong>ENTER<\/strong><br><br>OK, using directory \/usr\/share\/ocsinventory-reports to install static files ;-)<br><br>Where to create writable\/cache directories for deployment packages,<br>administration console logs, IPDiscover and SNMP [\/var\/lib\/ocsinventory-reports] ? <strong>ENTER<\/strong><br><br>OK, writable\/cache directory is \/var\/lib\/ocsinventory-reports ;-)<br><br><br>+----------------------------------------------------------+<br>| Checking for required Perl Modules... |<br>+----------------------------------------------------------+<br><br>Checking for DBI PERL module...<br>Found that PERL module DBI is available.<br>Checking for DBD::mysql PERL module...<br>Found that PERL module DBD::mysql is available.<br>Checking for XML::Simple PERL module...<br>Found that PERL module XML::Simple is available.<br>Checking for Net::IP PERL module...<br>Found that PERL module Net::IP is available.<br><br>+----------------------------------------------------------+<br>| Installing files for Administration server... |<br>+----------------------------------------------------------+<br><br>Creating PHP directory \/usr\/share\/ocsinventory-reports\/ocsreports.<br>Copying PHP files to \/usr\/share\/ocsinventory-reports\/ocsreports.<br>Fixing permissions on directory \/usr\/share\/ocsinventory-reports\/ocsreports.<br>Creating database configuration file \/usr\/share\/ocsinventory-reports\/ocsreports\/dbconfig.inc.php.<br>Creating IPDiscover directory \/var\/lib\/ocsinventory-reports\/ipd.<br>Fixing permissions on directory \/var\/lib\/ocsinventory-reports\/ipd.<br>Creating packages directory \/var\/lib\/ocsinventory-reports\/download.<br>Fixing permissions on directory \/var\/lib\/ocsinventory-reports\/download.<br>Creating snmp mibs directory \/var\/lib\/ocsinventory-reports\/snmp.<br>Fixing permissions on directory \/var\/lib\/ocsinventory-reports\/snmp.<br>Creating Administration server log files directory \/var\/lib\/ocsinventory-reports\/logs.<br>Fixing permissions on directory \/var\/lib\/ocsinventory-reports\/logs.<br>Creating Administration server scripts log files directory \/var\/lib\/ocsinventory-reports\/scripts.<br>Fixing permissions on directory \/var\/lib\/ocsinventory-reports\/scripts.<br>Configuring IPDISCOVER-UTIL Perl script.<br>Installing IPDISCOVER-UTIL Perl script.<br>Fixing permissions on IPDISCOVER-UTIL Perl script.<br>Writing Administration server configuration to file \/etc\/apache2\/conf-enabled\/ocsinventory-reports.conf<br><br>+----------------------------------------------------------------------+<br>| OK, Administration server installation finished ;-) |<br>| |<br>| Please, review \/etc\/apache2\/conf-enabled\/ocsinventory-reports.conf<br>| to ensure all is good and restart Apache daemon. |<br>| |<br>| Then, point your browser to http:\/\/server\/\/ocsreports<br>| to configure database server and create\/update schema. |<br>+----------------------------------------------------------------------+<br><br><br>Setup has created a log file \/home\/ugit\/OCSNG_UNIX_SERVER_2.4.1\/ocs_server_setup.log. Please, save this file.<br>If you encounter error while running OCS Inventory NG Management server,<br>we can ask you to show us his content !<br><br>DON'T FORGET TO RESTART APACHE DAEMON !<br><br>Enjoy OCS Inventory NG ;-)<br><br><br><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reinciamos apache<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart apache2.service<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos al sitio<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/10.20.200.21\/ocsreports\/<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Nos aparece la siguiente ventana<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1000\" height=\"335\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n110_2_o.png\" alt=\"undefined\" class=\"wp-image-2344\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n110_2_o.png 1000w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n110_2_o-300x101.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n110_2_o-768x257.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Le damos permisos de escritura a la carpeta<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 777 -R \/var\/lib\/ocsinventory-reports\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Completamos los datos de conexi\u00f3n:<ul><li>ocs<\/li><li>RB0<\/li><li>ocsweb<\/li><li>localhost<\/li><\/ul><\/li><li>Inicia la instalaci\u00f3n<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1000\" height=\"288\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n112_2_o.png\" alt=\"undefined\" class=\"wp-image-2345\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n112_2_o.png 1000w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n112_2_o-300x86.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n112_2_o-768x221.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Finaliza ya podemos ingresar con \u00ablogin=admin and password=admin\u00bb<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"613\" height=\"130\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n113_3_o.png\" alt=\"undefined\" class=\"wp-image-2346\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n113_3_o.png 613w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n113_3_o-300x64.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Seleccionamos el idioma<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"536\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n114_1_o.png\" alt=\"undefined\" class=\"wp-image-2347\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n114_1_o.png 437w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n114_1_o-245x300.png 245w\" sizes=\"(max-width: 437px) 100vw, 437px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos y nos indica que debemos borrar el archivo de instalaci\u00f3n<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>rm \/usr\/share\/ocsinventory-reports\/ocsreports\/install.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Dentro del sistema ingresamos a \u00abMi cuenta\u00bb y cambiamos los datos pass AC2<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"516\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n117_2_o.png\" alt=\"undefined\" class=\"wp-image-2348\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n117_2_o.png 1000w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n117_2_o-300x155.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n117_2_o-768x396.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/usr\/share\/ocsinventory-reports\/ocsreports\/dbconfig.inc.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\ndefine(\"DB_NAME\", \"ocsweb\");\ndefine(\"SERVER_READ\",\"localhost\");\ndefine(\"SERVER_WRITE\",\"localhost\");\ndefine(\"COMPTE_BASE\",\"ocs\");\ndefine(\"PSWD_BASE\",\"RB0\");\n?>\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apache2\/conf-enabled\/z-ocsinventory-server.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Buscamos y modificamos a<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code> PerlSetEnv OCS_DB_USER ocs\n  # Password for user\n  PerlSetVar OCS_DB_PWD RB0\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reiniciamos apache<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code> service apache2 restart<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Lo primero es as\u00edgnale una IP fija Modificamos Actualizamos el sistema Ahora vamos instalar dependencias Otras cpan -i XML::Entities cpan -i Archive::Zip mkdir \/usr\/include\/apache2 cpan -i Apache2::SOAP Instalamos \u00abMojolicious\u00bb Vamos a configurar MariaDB RESULTADO: NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1910,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[],"class_list":["post-1912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ocs"],"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\/1912","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=1912"}],"version-history":[{"count":2,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions"}],"predecessor-version":[{"id":2349,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions\/2349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/1910"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}