Você está na página 1de 3

01/09/2021 Mundo TI online: Instalação OCS-Invetory no CentOS 7.

mais
sergio.barolli@gmail

Mundo TI online
Blog destinado a diversas informações técnicas na área de Sistemas de Informação, e novidades em TI.

SEGUNDA-FEIRA, 27 DE JANEIRO DE 2020 TECNOLOGIA

Instalação OCS-Invetory no CentOS 7.7

OCS Inventory para CentOS 7.7

# Instalar repositório epel

yum -y install epel-release

yum update

# Instalar repositorio remi


Apto para alugar com
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

R$ 3.400 AB
yum update

# Instalar pacotes do yum

yum install yum-utils


VISITAS

# Configurar o yum para PHP 7.3


4,395
yum-config-manager --enable remi-php73 [Install PHP 7.3]

# Instalar pacotes

yum install net-tools vim wget mlocate

# Download do OCS Server 2.6 (baixar em /root)

wget https://github.com/OCSInventory-NG/OCSInventory-
ocsreports/releases/download/2.6/OCSNG_UNIX_SERVER_2.6.tar.gz

# Instalar pacotes para o OCS

yum install httpd mariadb mariadb-server php php-common php-domxml php-gd php-imap php-ldap php-mbstring php-
mysql php-opcache php-pdo php-pear-CAS php-pecl-apcu php-pecl-zip php-soap php-xmlrpc perl-Archive-Zip perl-
Compress-Zlib perl-DBD-MySQL perl-DBI perl-Mojolicious perl-Net-IP perl-Plack perl-SOAP-Lite perl-Switch perl-
XML-Entities perl-XML-Simple

# Verificar onde carrega o PHP.INI

TRANSLATE
php -i | grep "Loaded Configuration File"

Selecione o idioma
# Abrir arquivo de conf do php.ini

Powered by Tradutor
vim /etc/php.ini

    max_execution_time = 600;   // not mandatory but advised

    register_globals = off;            // not mandatory but advised

    magic_quotes_sybase = off;

    session.auto_start = off ;

    session.use_trans_sid = 0 ;   // not mandatory but advised

# Configurar o Apache e MariaDB para start no boot

systemctl enable httpd

systemctl enable mariadb

# Iniciar o Apache e o MariaDB

systemctl start httpd

systemctl start mariadb

# Configurar o Mysql POSTS


mysql_secure_installation

▼ 
2020
(1)
▼ 
Janeiro
(1)
Instalação OCS-Invetory no Ce
# Criar o Banco para o OCS

mysql -u root -p

► 
2019
(2)
create database ocsweb;
► 
2014
(4)
CREATE USER 'ocs'@'localhost' IDENTIFIED BY 'ocs';
► 
2011
(1)
GRANT ALL PRIVILEGES ON ocsweb. * TO 'ocs'@'localhost' IDENTIFIED BY 'ocs';

► 
2010
(6)
FLUSH PRIVILEGES;

► 
2009
(5)

# Download do RPM do OCS Inventory

wget https://rpm.ocsinventory-ng.org/ocsinventory-release-latest.el7.ocs.noarch.rpm

mundotionline.blogspot.com/2020/01/instalacao-ocs-invetory-no-centos-77.html 1/3
01/09/2021 Mundo TI online: Instalação OCS-Invetory no CentOS 7.7

# Instalar Pacote OCS Inventory

yum install ocsinventory-release-latest.el7.ocs.noarch.rpm

# Instalar Pacote OCS Inventory Server

yum install ocsinventory-server

# Descompactar o OCS NG Server que foi feito download

tar -xvzf OCSNG_UNIX_SERVER_2.6.tar.gz

# Acessar a pasta descompactada e executar a instalação

sh setup.sh

# Responda as perguntas conforme abaixo:

EXAME INFORMÁTICA
    Which host is running database server [localhost] ?     ## Enter ##
Error loading feed.
    On which port is running database server [3306] ?      ## Enter ##

    Where is Apache daemon binary [/usr/sbin/httpd] ?     ## Enter ##

SITES
    Where is Apache main configuration file [/etc/httpd/conf/httpd.conf] ?     ## Enter ##

    Which user account is running Apache web server [apache] ?     ## Enter ##
DealExtreme
    Which user group is running Apache web server [apache] ?     ## Enter ##
Groupon
    Where is PERL interpreter binary [/usr/bin/perl] ?     ## Enter ##
Peixe Urbano
    Do you wish to setup Communication server on this computer ([y]/n)?     ## Y, Enter ##

Revista Veja (Acervo)


    Where to put Communication server log directory [/var/log/ocsinventory-server] ?     ## Enter ##

Submarino
    Where to put Communication server plugins configuration files [/etc/ocsinventory-server/plugins] ?     ## Enter ##

    Where to put Communication server plugins Perl modules files [/etc/ocsinventory-server/perl] ?     ## Enter ##
Teste Seu DNS
    Do you wish to setup Rest API server on this computer ([y]/n)?     ## Y, Enter ##
Viva o Linux
    Where do you want the API code to be store [/usr/lib/perl5/vendor_perl] ?     ## Enter ##

    Do you allow Setup renaming Communication Server Apache configuration file to ‘z-ocsinventory-server.conf’ ([y]/n)
?      ## Y, Enter ##

    Checking for Administration Server directories: Do you wish to continue ([y] /n)?     ## Y, Enter ##

Pichau AsRock Lo
    Where to copy Administration Server static files for PHP Web Console [/usr/share/ocsinventory-reports]?     ##
Enter ##

    Where to create writable/cache directories [/var/lib/ocsinventory-reports]?      ## Enter ##

# Reinicie o Apache
TP-Link TP-Link Lo
service httpd restart

# Ajustes de permissões

chmod -R 766 /usr/share/ocsinventory-reports

chown -R apache:apache /usr/share/ocsinventory-reports/

BLOGS
chown -R apache:apache /var/lib/ocsinventory-reports/

chcon -R -t httpd_sys_rw_content_t /usr/share/ocsinventory-reports/


Kibe Loco - A verdade é ácida
cru!
PASSO O PONTO
# Acessar o OCS para concluir a instalação

Há um ano

http://IP_SERVER/ocsreports
Filmes só aqui...
Ilha do Medo
Há 10 anos
# Inserir os dados de conexão com o banco

MySQL login: ocs

MySQL password: ocs


POSTAGENS POPULARES
Name of Database: ocsweb

MySQL HostName: localhost


Tunning Squid. Para alto tráfego!
Neste rápido post pretendo ajudar to
usuários de Linux que fazem uso do
-> Clicar em: Send
servidor Proxy.  Não será abordado
-> Clicar em: Click here to enter OCS-NG GUI

-> Clicar em: Perform the update


Instalando NextCloud com certificad
-> Clicar em: Click here to enter OCS-NG GUI
OnlyOffice.
- OnlyOffice (com Docker)  - Certifica
Let's Encrypt Sistema Operacional:
# Logar na ferramenta

Instalando dependências apt-g...


Login: admin

Senha: admin
Configuração de OpenVPN Client S
Pfsense
O objetivo deste post é mostrar com
# Remover script de instalação
OpenVPN autenticado no Active Dir
PFsense. Criando Certificado Digita
mv /usr/share/ocsinventory-reports/ocsreports/install.php /usr/share/ocsinventory-reports/ocsreports/install.php.bck

Relatórios de estatísticas do Postfix


# Ajustar senha do banco para não ficar a padrão
PFLogSumm
mysql -u root -p
O servidor de e-mails atualmente é u
update mysql.user set password = password ('chkdsk@1024') where user = 'ocs';
recursos mais importantes de uma e
flush privileges;
ele vendas podem ser perdidas, a p
d...

# Edite os arquivos abaixo e ajuste a senha nova

vim /etc/httpd/conf.d/z-ocsinventory-server.conf

vim /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php

mundotionline.blogspot.com/2020/01/instalacao-ocs-invetory-no-centos-77.html 2/3
01/09/2021 Mundo TI online: Instalação OCS-Invetory no CentOS 7.7

# Reinicie o Apache

##############################################################################
80 m²

CONFIGURANDO O AGENTE

 # Instalando o Agente do OCS via rede (GPO)

Crie uma GPO de Computador de Inicialização de Script...

Linha 1: \\servidor_ad\NETLOGON\OCS-Pacote\OcsPackage-estacoes.exe
Casa, 2 Quartos, Recan…

Linha 2: /install /np


R$ 1.000
70 m²
# Linha para o Command Line Options do OCS Packager

/S /NOW /SERVER=http://10.0.0.7/ocsinventory /NP /INSTALL /DEBUG /TAG="Computadores" /FORCE


Postado por
Mundo TI online
às
14:37

Nenhum comentário:
Postar um comentário Apto, 1 Quarto, Parque …

R$ 550
80 m²

Página inicial Postagem mais antiga

Assinar:
Postar comentários (Atom)

Casa, 2 Quartos, Parqu…

R$ 1.750

R$ 355
10x de R$33,74
COMPRE JÁ

Casa, 3
Quartos,
Jardim do
Alugue R

Apto para alugar com 3 quartos


R$ 1.000
130 m², 3 quartos, 2 banheiros

ABRIR
QuintoAndar

Rafael Mendes. Tema Janela de imagem. Tecnologia do Blogger.

mundotionline.blogspot.com/2020/01/instalacao-ocs-invetory-no-centos-77.html 3/3

Você também pode gostar