{"id":1914,"date":"2019-09-18T15:15:40","date_gmt":"2019-09-18T21:15:40","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=1914"},"modified":"2019-09-26T14:10:59","modified_gmt":"2019-09-26T20:10:59","slug":"ocs-instalacion-ubuntu-17-10","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=1914","title":{"rendered":"OCS: Instalaci\u00f3n Ubuntu 17.10"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>El sistema esta e un Ubuntu 17.10 por lo que la red debemos configurarla con netplan<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/netplan\/01-netcfg.yaml<\/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# For more information, see netplan(5).\nnetwork:\n  version: 2\n  renderer: networkd\n  ethernets:\n    ens18:\n      dhcp4: false\n      addresses: [10.20.200.21\/24]\n      gateway4: 10.20.200.1\n      nameservers:\n        addresses: [10.20.200.1]\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Aplicamos los cambios<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>netplan apply<\/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>Paso 1: instalar LAMP<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install make apache2 mysql-server php perl libapache2-mod-perl2 libapache2-mod-php\napt-get install libapache2-mod-perl2 libxml-simple-perl libcompress-zlib-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl\napt-get install build-essential\napt-get install libc6-dev\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 2: instalamos dependencias<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install libio-compress-perl libxml-simple-perl libdbi-perl libdbd-mysql-perl \napt install libapache-dbi-perl libsoap-lite-perl libnet-ip-perl\napt install php-mysql php-gd php7.0-dev php-mbstring php-soap php-curl<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 3: abrimos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/php\/7.1\/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>#Estas:\npost_max_size = 8M\nupload_max_filesize = 2M\n \n#Por estas:\npost_max_size = 128M\nupload_max_filesize = 128M<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 4: 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>AGREGAMOS<\/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>Paso 5: descargamos OCS<\/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\ntar -xvzf OCSNG_UNIX_SERVER_2.4.1.tar.gz\n\ncd OCSNG_UNIX_SERVER_2.4.1<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos dependecias de perl<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>perl -MCPAN -e shell\n\ninstall Archive::Zip\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Otras dependecias<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install libswitch-perl\napt install cpanminus\ncpanm Plack\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 6: ejecutamos el instalador<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>bash setup.sh<\/code><\/pre>\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 5.7.<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><br><br>+----------------------------------------------------------+<br>| Checking for Apache web server daemon... |<br>+----------------------------------------------------------+<br><br>Where is Apache daemon binary [\/usr\/sbin\/apache2ctl] ? <strong>ENTER<\/strong><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>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>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>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>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>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><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>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>OK, Communication server will put plugins configuration files into directory \/etc\/ocsinventory-server\/plugins ;-)<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>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>+----------------------------------------------------------+<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>*** Warning: PERL module Apache2::SOAP is not installed !<br>This module is only required by OCS Inventory NG SOAP Web Service.<br>Do you wish to continue ([y]\/n] ? <strong>ENTER<\/strong><br>Checking for XML::Entities PERL module...<br>*** Warning: PERL module XML::Entities is not installed !<br>This module is only required by OCS Inventory NG SOAP Web Service.<br>Do you wish to continue ([y]\/n] ? <strong>ENTER<\/strong><br><br>Do you wish to setup Rest API server on this computer ([y]\/n)? y<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Para correguir el error:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -s 'curl -L cpanmin.us | perl - Mojolicious'<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">CPAN.pm requires configuration, but most of it can be done automatically.<br>If you answer 'no' below, you will enter an interactive dialog for each<br>configuration option instead.<br><br>Would you like to configure as much as possible automatically? [yes] <strong>yes<\/strong><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Volvemos a ejecutar el instalador y da otro error<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>bash setup.sh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">*** ERROR: PERL module Switch is not installed !<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install libswitch-perl\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Volvemos a ejecutar y da error<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">ERROR: PERL module Plack::Handler is not installed !<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install cpanminus\n\ncpanm Plack<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Volvemos a ejecutar el instaldor<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">Do you wish to setup Rest API server on this computer ([y]\/n)?<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.22.1] ?<strong>ENTER<br><\/strong>Copying files to \/usr\/local\/share\/perl\/5.22.1<br><br>+----------------------------------------------------------+<br>| Configuring REST API Server configuration files ... |<br>+----------------------------------------------------------+<br><br><br>+----------------------------------------------------------+<br>| OK, looks good ;-) |<br>| |<br>| Configuring Communication server Perl modules... |<br>+----------------------------------------------------------+<br><br>Checking if your kit is complete...<br>Looks good<br>Generating a Unix-style Makefile<br>Writing Makefile for Apache::Ocsinventory<br>Writing MYMETA.yml and MYMETA.json<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><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>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><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>OK, using 'z-ocsinventory-server.conf' as Communication Server Apache configuration file<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. |<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>| 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>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\/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><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 7: reiniciamos 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>Paso 8: accedemos a la web: <a href=\"http:\/\/10.200.0.21\/ocsreports\/\">http:\/\/10.200.0.21\/ocsreports\/<\/a><br><\/li><li>Paso 9: completamos los datos para la conexion a MYSQL<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1000\" height=\"315\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n103_2_o.png\" alt=\"undefined\" class=\"wp-image-2339\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n103_2_o.png 1000w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n103_2_o-300x95.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n103_2_o-768x242.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Si todo sale bien se ve:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1000\" height=\"330\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n104_2_o.png\" alt=\"undefined\" class=\"wp-image-2340\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n104_2_o.png 1000w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n104_2_o-300x99.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n104_2_o-768x253.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 10: hacemos clic aqu\u00ed<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"224\" height=\"33\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n105_2_o.png\" alt=\"undefined\" class=\"wp-image-2341\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 11: ya podemos ingresar con:<ul><li>usuario: admin<\/li><li>pass: admin<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"600\" src=\"\/wp-content\/uploads\/2019\/09\/selecci\u00f3n106_3_o.png\" alt=\"undefined\" class=\"wp-image-2342\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n106_3_o.png 498w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/selecci\u00f3n106_3_o-249x300.png 249w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Paso 12: cuando ingresamos no salen 2 errores:<ul><li>The install.php exists in ocsreports directory<\/li><li>The default sql login\/password is activate on your database: ocsweb<\/li><\/ul><\/li><li>Para esto:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mv \/usr\/share\/ocsinventory-reports\/ocsreports\/install.php \/usr\/share\/ocsinventory-reports\/ocsreports\/install.php_old\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos a MYSQL<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ejecutamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>SET PASSWORD FOR 'ocs'@'localhost' = PASSWORD('RB0');SET PASSWORD FOR 'ocs'@'%' = PASSWORD('RB0');flush privileges;quit<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos el archivo<\/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>MODIFICAR:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>define(\"PSWD_BASE\",\"ocs\");\nX\ndefine(\"PSWD_BASE\",\"Remoto_BAS_0\");\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos el archivo<\/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:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>PerlSetVar OCS_DB_PWD ocs\nX\nPerlSetVar OCS_DB_PWD RB0<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Buscamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>PerlSetEnv OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT 0\nX\nPerlSetEnv OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT 1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>El sistema esta e un Ubuntu 17.10 por lo que la red debemos configurarla con netplan Modificamos Aplicamos los cambios Actualizamos el sistema Paso 1: instalar LAMP Paso 2: instalamos dependencias Paso 3: abrimos MODIFICAMOS Paso 4: abrimos AGREGAMOS Paso 5: descargamos OCS Instalamos dependecias de perl Otras dependecias Paso 6: ejecutamos el instalador +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+| [&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-1914","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\/1914","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=1914"}],"version-history":[{"count":2,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions"}],"predecessor-version":[{"id":2343,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions\/2343"}],"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=1914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}