LINUX: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
 
(40 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 8: Linha 8:
*[[Limpeza|Limpeza]]
*[[Limpeza|Limpeza]]
*[[Backup whole partition|Backup whole partition]]
*[[Backup whole partition|Backup whole partition]]
=Boot/Instalation=
=Boot/Instalation=
*[https://docs.centos.org/en-US/centos/install-guide/Kickstart2/ Kickstart]
==Kickstart==
===Docs===
*[https://docs.centos.org/en-US/centos/install-guide/Kickstart2/ Kickstart Installations]
*[https://access.redhat.com/labs/kickstartconfig/ Kickstart Generator]
*[https://access.redhat.com/labs/kickstartconfig/ Kickstart Generator]
==Example==
===Example===
*Password generation
<syntaxhighlight lang=bash>
# mkpasswd -m sha-512 -S saltsalt -s <<< changeme
$6$saltsalt$XfDjcODbNwh18F961gnY3h57N.LVD8n2SQ1Me6kjP7kHT6Gw.3k62XiIDH0H5JIpBtLyKwQqeisy0oi3As7q3.
 
</syntaxhighlight >
*Kickstart routine
<pre>
<pre>
lang en_US
lang en_US
keyboard br-abnt2
keyboard br-abnt2
timezone America/Sao_Paulo --isUtc
timezone America/Sao_Paulo --isUtc
rootpw $1$49639Yxe$opK/JFnRdx2kc76eK6YRU1 --iscrypted
rootpw $6$saltsalt$XfDjcODbNwh18F961gnY3h57N.LVD8n2SQ1Me6kjP7kHT6Gw.3k62XiIDH0H5JIpBtLyKwQqeisy0oi3As7q3. --iscrypted
#platform x86, AMD64, or Intel EM64T
#platform x86, AMD64, or Intel EM64T
reboot
reboot
Linha 47: Linha 58:
</pre>
</pre>


=Disco=
=CLOUD=
==AZURE==
*[[Azure Key Vault|Key Vault]]
*[[ACR Data|ACR Data]]
 
=Desktop=
*[[Disable Animations|Disable Animations]]
*[[Disable Desktop environment|Disable Desktop environment]]
 
=Disk=
*[[MULTIPATH|MULTIPATH]]
*[[MULTIPATH|MULTIPATH]]
*[[ASM|ASM]]
*[[ASM|ASM]]
*[[SCAN SCSI|SCAN SCSI]]
*[[SCAN SCSI|SCAN SCSI]]
*[[IO Monitor|IO Monitor]]
*[[IO Monitor|IO Monitor]]
*[[BURN OPTICAL MEDIA|BURN OPTICAL MEDIA]]
=Excel=
*[[Expand sheet row|Expand sheet row]]
=FileSystem / Diretório=
=FileSystem / Diretório=
*[[Dir Stat to CSV|Dir Stat to CSV(Windows)]]
*[[Get Deleted File | Get Deleted File in Use]]
*[[Tamanho de arquivo|Tamanho de arquivo]]
*[[Tamanho de arquivo|Tamanho de arquivo]]
*[[Tamanho dos diretórios|Tamanho dos diretórios]]
*[[Tamanho dos diretórios|Tamanho dos diretórios]]
*[[Root PV resize|Root PV resize]]
=File=
*[[Troca String|Troca String]]
*[[TrocaID|TrocaID]]
*[[Convert File|Convert File]]
*[[vim|vim]]
=GraphViz=
*[[CSV to GRAPH|CSV to GRAPH]]
=HAPROXY=
*[https://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html True Zero Downtime HAProxy Reloads]
*[[HAproxy softreload|HAproxy softreload]]
*[[HAPROXY CFG TO CSV|HAPROXY CFG TO CSV]]
=Inventory=
*[[Sockets vs Process|Sockets vs Process]]
=JSON=
*[[JQ|JQ]]
=Kernel=
*[[Enable serialConsole on boot|Enable Serial Console on boot]]
=LOG=
*[[DMESG EPOCH CONVERTER|DMESG EPOCH CONVERTER]]
*[[EPOCH|EPOCH]]
=Links=
*https://funcoeszz.net/
*https://tldp.org/
=Memory=
*[[Limpar Buffer e Cache|Limpar Buffer e Cache]]
*[[Listar SWAP por processo|Listar SWAP por processo]]
*[[Hot add ram memory|Hot add ram memory]]
*[[SWAP in file|SWAP in file]]
=Monitor=
*[[NMON|NMON]]
*[[NETDATA|NETDATA]]
*[https://gbe0.com/linux/server/centos-7-dell-setup Dell OpenManage Server Administrator]
==ZABBIX==
*[[RabbitMQ Monitor for Zabbix|RabbitMQ Monitor for Zabbix]]
*[[FSRO|FSRO]]
=Network=
=Network=
*[[DHCLIENT.CONF|DHCLIENT.CONF]]
*[[DHCLIENT.CONF|DHCLIENT.CONF]]
Linha 66: Linha 135:
*[[PROC_TCP|PROC_TCP]]
*[[PROC_TCP|PROC_TCP]]
*[[TC|TC]]
*[[TC|TC]]
*[[ufw|ufw]]
*[[nmap|nmap]]
*[[nmap|nmap]]
==VRRP==
*[[KeepAlive|KeepAlive]]


=Kernel=
=[[Package Manager|Package Manager]]=
*[[Enable serialConsole on boot|Enable Serial Console on boot]]
=Processos=
=File=
[[Monitor de Threads|Monitor de Threads]]
*[[Troca String|Troca String]]
 
*[[TrocaID|TrocaID]]
=Security=
*[[OpenSSL|OpenSSL]]
*[[Ssh-Keygen|Ssh-Keygen]]
*[[KEEPASS|KEEPASS]]
*[[Password Enforcing|Password Enforcing]]
*[[Password Generator|Password Generator]]
*[[InSecurity|InSecurity]]
*[[Stunnel|Stunnel]]
*[[Encrypt OS Disk|Encrypt OS Disk]]
*[[Encrypt File|Encrypt File]]
 
=Systemctl=
*[[Auto restart by log event|Auto restart by log event]]


=Storage=
=Storage=
Linha 78: Linha 162:
=SHELL=
=SHELL=
==[https://linux.die.net/man/1/bash BASH]==
==[https://linux.die.net/man/1/bash BASH]==
*[https://tldp.org/ TLDP Advanced Bash-Scripting Guide]
*[[My .bashrc|My .bashrc]]
===Internal===
===Internal===
*[[COPROC|COPROC]]
*[[COPROC|COPROC]]
Linha 84: Linha 170:
*[https://catonmat.net/bash-one-liners-explained-part-two Bash One-Liners Explained, Part II: Working with strings]
*[https://catonmat.net/bash-one-liners-explained-part-two Bash One-Liners Explained, Part II: Working with strings]
*[https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html  Shell Parameter Expansion]
*[https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html  Shell Parameter Expansion]
==Remote Shell==
*[[Multithread Remote SSH with Python|Multithread Remote SSH with Python]]


=Time=
*[[TZDATA|TZDATA]]
*[[DATE Linux|DATE]]


=LOG=
*[[DMESG EPOCH CONVERTER|DMESG EPOCH CONVERTER]]
*[[EPOCH|EPOCH]]
=Monitor=
*[[NMON|NMON]]
*[[NETDATA|NETDATA]]
*[https://gbe0.com/linux/server/centos-7-dell-setup Dell OpenManage Server Administrator]
==ZABBIX==
*[[RabbitMQ Monitor for Zabbix|RabbitMQ Monitor for Zabbix]]
*[[FSRO|FSRO]]
=Memory=
*[[Limpar Buffer e Cache|Limpar Buffer e Cache]]
*[[Listar SWAP por processo|Listar SWAP por processo]]
*[[Hot add ram memory|Hot add ram memory]]
=Processos=
[[Monitor de Threads|Monitor de Threads]]
=Security=
*[[OpenSSL|OpenSSL]]
*[[Ssh-Keygen|Ssh-Keygen]]
*[[KEEPASS|KEEPASS]]
*[[Password Enforcing|Password Enforcing]]
=[[Linux Tools|Tools]]=
=[[Linux Tools|Tools]]=
*[[CURL|CURL]]


=Version Control=
=Version Control=
Linha 115: Linha 184:
=Web Server=
=Web Server=
*[[NGINX|NGINX]]
*[[NGINX|NGINX]]
=Systemctl=
*[[Disable Desktop environment|Disable Desktop environment]]
=GraphViz=
*[[CSV to GRAPH|CSV to GRAPH]]
=Inventory=
*[[Sockets vs Process|Sockets vs Process]]
=Links=
*https://funcoeszz.net/
=Time=
*[[TZDATA|TZDATA]]

Edição atual tal como às 20h26min de 16 de janeiro de 2025


Automation

Backup


Boot/Instalation

Kickstart

Docs

Example

  • Password generation
# mkpasswd -m sha-512 -S saltsalt -s <<< changeme
$6$saltsalt$XfDjcODbNwh18F961gnY3h57N.LVD8n2SQ1Me6kjP7kHT6Gw.3k62XiIDH0H5JIpBtLyKwQqeisy0oi3As7q3.
  • Kickstart routine
lang en_US
keyboard br-abnt2
timezone America/Sao_Paulo --isUtc
rootpw $6$saltsalt$XfDjcODbNwh18F961gnY3h57N.LVD8n2SQ1Me6kjP7kHT6Gw.3k62XiIDH0H5JIpBtLyKwQqeisy0oi3As7q3. --iscrypted
#platform x86, AMD64, or Intel EM64T
reboot
text
cdrom
bootloader --location=partition --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
volgroup linux --pesize=4096 pv.0 
part pv.0 --fstype=lvmpv --ondisk=sda --size=35840
logvol /boot --vgname=linux --name=boot --fstype=vfat --size=1024
logvol / --vgname=linux --name=root --fstype=ext4 --size=12228
logvol /home --vgname=linux --name=home --fstype=ext4 --size=2048
logvol swap --vgname=linux --name=swap --fstype=swap --size=8192
logvol /var --vgname=linux --name=var --fstype=ext4 --size=5120
logvol /tmp --vgname=linux --name=tmp --fstype=ext4 --size=5120
network --device=enps162 --bootproto=static --ip=10.0.0.10 --netmask=255.255.248.0 --gateway=10.0.0.1 --nameserver=10.0.0.5
auth --passalgo=sha512 --useshadow
selinux --permissive
firewall --enabled --ssh
firstboot --disable
%post
echo End of installation
echo End of installation
%end
%packages
@base
%end

CLOUD

AZURE

Desktop

Disk

Excel

FileSystem / Diretório

File

GraphViz

HAPROXY

Inventory

JSON

Kernel

LOG

Links

Memory

Monitor

ZABBIX

Network

VRRP

Package Manager

Processos

Monitor de Threads

Security

Systemctl

Storage

SHELL

BASH

Internal

External

Remote Shell

Time

Tools

Version Control

Web Server