How To Install OCS Inventory Server On Ubuntu 18.04 - 16.04 - Website For Students
How To Install OCS Inventory Server On Ubuntu 18.04 - 16.04 - Website For Students
How To Install OCS Inventory Server On Ubuntu 18.04 - 16.04 - Website For Students
Como instalar o
servidor de
inventário OCS no
Ubuntu 18.04 |
16.04
Ricardo / 01/06/2020 /
7 minutos de leitura
Este breve tutorial mostra aos alunos e novos usuários como instalar o OCS-
NG (Open Computers and Software Inventory Next Generation) no Ubuntu
18.04 | 16.04 com servidor HTTP Apache2.
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 1/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
logz.io OPEN
Esses dispositivos não precisam ter o cliente OCS instalado para serem
descobertos. Basta instalar o servidor de inventário OCS e começar a varrer
sua rede. Em pouco tempo, você deve começar a ver os dispositivos
aparecendo em seu painel.
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 2/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Replay
Após instalar o Apache2, os comandos abaixo podem ser usados para parar,
iniciar e habilitar o serviço Apache2 para sempre inicializar com as
reinicializações do servidor.
Agora que o Apache2 está instalado. para testar se o servidor web está
funcionando, abra seu navegador e navegue até o URL abaixo.
http://localhost
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 3/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 4/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Replay
Após instalar o MariaDB, os comandos abaixo podem ser usados para parar,
iniciar e habilitar o serviço MariaDB para sempre inicializar quando o
servidor inicializar.
sudo mysql_secure_installation
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 5/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Digite a senha atual para root (digite para nenhum): Basta pressionar
Enter
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 6/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Se você vir uma tela semelhante à mostrada acima, o servidor foi instalado
com sucesso.
Replay
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 7/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Após instalar o PHP 7.2, execute os comandos abaixo para abrir o arquivo
de configuração padrão do PHP para o Apache2.
file_uploads = Ativado
allow_url_fopen = Ativado
short_open_tag = Ativado
memory_limit = 256M
max_execution_time = 360
date.timezone = América/Chicago
Toda vez que você fizer alterações no arquivo de configuração do PHP, você
também deve reiniciar o servidor web Apache2. Para isso, execute os
comandos abaixo:
Agora que o PHP está instalado, para testar se está funcionando, crie um
arquivo de teste chamado phpinfo.php no diretório raiz padrão do
Apache2. ( /var/www/html/ )
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 8/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
http://localhost/phpinfo.php
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 9/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Crie um usuário de banco de dados chamado ocsuser com uma nova senha
PRIVILÉGIOS FLUSH;
SAÍDA;
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 10/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
cd /tmp
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 11/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
cd OCSInventory-Server
cd /tmp/OCSInventory-Server/ocsreports
CD .
nano setup.sh
DB_SERVER_HOST="localhost"
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 12/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
DB_SERVER_PORT="3306"
sudo ./setup.sh
+------------------------------------------------- ----------+
| |
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 13/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
sudo ln -s /etc/apache2/conf-available/ocsinventory-reports.conf /
sudo ln -s /etc/apache2/conf-available/z-ocsinventory-server.conf
sudo ln -s /etc/apache2/conf-available/zz-ocsinventory-restapi.con
sudo chown -R www-data:www-data /var/lib/ocsinventory-reports
http://ocs.example.com/ocsreports/install.php
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 14/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 15/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 16/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 17/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 18/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
sudo mv /usr/share/ocsinventory-reports/ocsreports/install.php
/usr/share/ocsinventory-reports/ocsreports/install.php.bak
Aproveite~
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 19/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
38 COMENTÁRIOS
Delta
01/02/2020 às 09:15
Quase teria sido ótimo se eu não recebesse um erro 500 depois de clicar na
parte “Clique aqui para entrar no OCS-NG GUI”
Victor
19/02/2020 às 07:09
Victor
19/02/2020 às 07:10
Adão
20/02/2020 às 09:44
Incrível, estou procurando um guia como este há muito tempo. Tudo funcionou
perfeitamente, obrigado!
ahmed
25/02/2020 às 08:52
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 20/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Chris
03/10/2020 at 1:49 PM
Forbidden
You don’t have permission to access this resource.
Apache/2.4.29 (Ubuntu) Server at 192.168.1.6 Port 80
Help pls
Hulk Banner
04/26/2020 at 2:00 AM
nicolas talvasson
05/12/2020 at 8:09 AM
me too
nicolas talvasson
05/12/2020 at 8:57 AM
try this
https://forum.ubuntu-fr.org/viewtopic.php?id=1990921
php-mbstring
plus
restart setup
It help me to access the page
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 21/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Wallison Gomes
03/12/2020 at 6:57 AM
A question, after installation, what is the path of the OCS installation folder?
Thanks.
Diego Neto
04/09/2020 at 2:25 PM
Fex
08/06/2020 at 11:54 AM
/usr/share/ocsinventory-reports/
Alonso
03/14/2020 at 4:18 PM
Santosh Mule
03/18/2020 at 7:27 AM
Bingo ..
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 22/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Diego Neto
04/09/2020 at 2:24 PM
Santhosh
05/01/2020 at 12:59 PM
Nil
05/04/2020 at 12:18 PM
nicolas talvasson
05/12/2020 at 8:56 AM
try this
https://forum.ubuntu-fr.org/viewtopic.php?id=1990921
php-mbstring
plus
restart setup
It help me to access the page
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 23/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Yogesh
06/23/2020 at 5:48 AM
http://localhost/ocsreports/install.php
not working only blank page appears
please provide solution
btp94
06/26/2020 at 8:26 AM
same problem
turkmarclem
08/27/2020 at 8:29 PM
Antomio
06/27/2020 at 3:27 PM
http://localhost/ocsreports/install.php
Forbidden
turkmarclem
08/27/2020 at 8:31 PM
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 24/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
TruongGiang
02/22/2021 at 9:03 PM
Konate Mamadou
07/07/2020 at 10:41 AM
turkmarclem
08/27/2020 at 8:42 PM
Hi all,
I run into HTTP 500 (blank page ) after installation and after a little digging around
this how I got ocsinventory working.
Success!!
Diogo Santos
12/14/2020 at 9:17 AM
Thanks a lot!
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 25/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Diego
08/31/2020 at 10:31 PM
Richard
09/28/2020 at 2:39 AM
Buen día, no se logran inventariar mis equipos. He llegado hasta el final de todo
el tutorial pero al momento de generar el agente no muestra data en el panel
administrativo.
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 26/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
Cesar Parra
10/08/2020 at 5:21 PM
and my confi.ini
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 27/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
jjr
10/27/2020 at 3:41 PM
Ibrahim Gol
11/18/2020 at 2:43 PM
Hi;
I tried the installition but cannot find ocsinventory-reports file in /var/lib and
/usr/share
Could you help me about it?
crewer
12/11/2020 at 12:42 PM
For all who got ERROR 500 after install.php, my problem was in sudo composer
install
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 28/29
10/02/2022 17:30 How to Install OCS Inventory Server on Ubuntu 18.04 | 16.04 - Website for Students
axeltomi
02/02/2021 at 1:18 PM
TruongGiang
02/22/2021 at 9:08 PM
Hi Bro !! can you help me to solve it ? The requested URL was not found on
this server. Apache/2.4.41 (Ubuntu) Server at 10.30.2.33 Port 80
TruongGiang
02/22/2021 at 9:07 PM
Olá a todos!!
Eu sou do Vietnam .
Você pode me ajudar a resolver? Tentei tantas vezes resolver, mas não obtive
sucesso.
A URL solicitada não foi encontrada neste servidor. Servidor Apache/2.4.41
(Ubuntu) em 10.30.2.33 Porta 80
Este site usa o Akismet para reduzir o spam. Saiba como seus dados de comentários são
processados .
https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/ 29/29