LINUX: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
 
(73 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
=Network=
*[[DHCLIENT.CONF|DHCLIENT.CONF]]
*[[IP|IP Comando]]
*[[Filtro de origem TCPDUMP|Filtro de origem TCPDUMP]]
*[[Coleta em loop com TCPDUMP para wireshark|Coleta em loop com TCPDUMP para wireshark]]
*[[DELL RACADM COLLECT|DELL RACADM COLLECT]]
*[[Iptables Firewall|Iptables Firewall]]
*[[Copy Methods|Copy Methods]]
*[[WGET|WGET]]
*[[PROC_TCP|PROC_TCP]]


=Kernel=
 
*[[Enable serialConsole on boot|Enable Serial Console on boot]]
=Automation=
=Disco=
*[[Terraform|Terraform]]
*[[Ansible|Ansible]]
=Backup=
*[[Mysql and directory|Mysql and directory]]
*[[Limpeza|Limpeza]]
*[[Backup whole partition|Backup whole partition]]
 
 
=Boot/Instalation=
==Kickstart==
===Docs===
*[https://docs.centos.org/en-US/centos/install-guide/Kickstart2/ Kickstart Installations]
*[https://access.redhat.com/labs/kickstartconfig/ Kickstart Generator]
===Example===
*Password generation
<syntaxhighlight lang=bash>
# mkpasswd -m sha-512 -S saltsalt -s <<< changeme
$6$saltsalt$XfDjcODbNwh18F961gnY3h57N.LVD8n2SQ1Me6kjP7kHT6Gw.3k62XiIDH0H5JIpBtLyKwQqeisy0oi3As7q3.
 
</syntaxhighlight >
*Kickstart routine
<pre>
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
 
</pre>
 
=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=
*[[Dir Stat to CSV|Dir Stat to CSV(Windows)]]
*[[Get Deleted File | Get Deleted File in Use]]
*[[Tamanho de arquivo|Tamanho de arquivo]]
*[[Tamanho dos diretórios|Tamanho dos diretórios]]
*[[Root PV resize|Root PV resize]]


=File=
=File=
*[[Troca String|Troca String]]
*[[Troca String|Troca String]]
*[[TrocaID|TrocaID]]
*[[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]]


=Storage=
=LOG=
*[[Get WWN|Get WWN]]
*[[DMESG EPOCH CONVERTER|DMESG EPOCH CONVERTER]]
*[[EPOCH|EPOCH]]
=Links=
*https://funcoeszz.net/
*https://tldp.org/


=FileSystem / Diretório=
*[[Tamanho de arquivo|Tamanho de arquivo]]
*[[Tamanho dos diretórios|Tamanho dos diretórios]]
=Memory=
=Memory=
*[[Limpar Buffer e Cache|Limpar Buffer e Cache]]
*[[Limpar Buffer e Cache|Limpar Buffer e Cache]]
*[[Listar SWAP por processo|Listar SWAP por processo]]
*[[Listar SWAP por processo|Listar SWAP por processo]]
*[[Hot add ram memory|Hot add ram memory]]
*[[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=
*[[DHCLIENT.CONF|DHCLIENT.CONF]]
*[[IP|IP Comando]]
*[[Filtro de origem TCPDUMP|Filtro de origem TCPDUMP]]
*[[Coleta em loop com TCPDUMP para wireshark|Coleta em loop com TCPDUMP para wireshark]]
*[[DELL RACADM COLLECT|DELL RACADM COLLECT]]
*[[Iptables Firewall|Iptables Firewall]]
*[[Copy Methods|Copy Methods]]
*[[WGET|WGET]]
*[[PROC_TCP|PROC_TCP]]
*[[TC|TC]]
*[[ufw|ufw]]
*[[nmap|nmap]]
==VRRP==
*[[KeepAlive|KeepAlive]]


=[[Package Manager|Package Manager]]=
=Processos=
=Processos=
[[Monitor de Threads|Monitor de Threads]]
[[Monitor de Threads|Monitor de Threads]]
=Security=
=Security=
*[[OpenSSL|OpenSSL]]
*[[OpenSSL|OpenSSL]]
*[[Ssh-Keygen|Ssh-Keygen]]
*[[Ssh-Keygen|Ssh-Keygen]]
*[[KEEPASS|KEEPASS]]
*[[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=
*[[Get WWN|Get WWN]]
=SHELL=
==[https://linux.die.net/man/1/bash BASH]==
*[https://tldp.org/ TLDP Advanced Bash-Scripting Guide]
*[[My .bashrc|My .bashrc]]
===Internal===
*[[COPROC|COPROC]]
===External===
*[https://catonmat.net/bash-one-liners-explained-part-one Bash One-Liners Explained, Part I: Working with files]
*[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]
==Remote Shell==
*[[Multithread Remote SSH with Python|Multithread Remote SSH with Python]]


=Backup=
=Time=
*[[Mysql and directory|Mysql and directory]]
*[[TZDATA|TZDATA]]
*[[Limpeza|Limpeza]]
*[[DATE Linux|DATE]]
*[[Backup whole partition|Backup whole partition]]
 
=[[Linux Tools|Tools]]=
*[[CURL|CURL]]


=LOG=
*[[DMESG EPOCH CONVERTER|DMESG EPOCH CONVERTER]]
*[[EPOCH|EPOCH]]
=Version Control=
=Version Control=
*[[GIT|GIT]]
*[[GIT|GIT]]
=Web Server=
=Web Server=
*[[NGINX|NGINX]]
*[[NGINX|NGINX]]
=Monitor=
*[[NMON|NMON]]
*[[NETDATA|NETDATA]]
*[https://gbe0.com/linux/server/centos-7-dell-setup Dell OpenManage Server Administrator]
*[[RabbitMQ Monitor for Zabbix|RabbitMQ Monitor for Zabbix]]
=Systemctl=
*[[Disable Desktop environment|Disable Desktop environment]]
=Automation=
*[[Terraform|Terraform]]
*[[Ansible|Ansible]]
=GraphViz=
*[[CSV to GRAPH|CSV to GRAPH]]
=Inventory=
*[[Sockets vs Process|Sockets vs Process]]
=Links=
*https://funcoeszz.net/
==BASH==
*https://catonmat.net/bash-one-liners-explained-part-two

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