LINUX: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
|||
| (65 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| Linha 1: | Linha 1: | ||
=Automation= | =Automation= | ||
*[[Terraform|Terraform]] | *[[Terraform|Terraform]] | ||
| Linha 9: | Linha 8: | ||
*[[Limpeza|Limpeza]] | *[[Limpeza|Limpeza]] | ||
*[[Backup whole partition|Backup whole partition]] | *[[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= | |||
*[[ | *[[CryptSetup|CryptSetup]] | ||
*[[ | *[[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]] | |||
*[[ | |||
=LOG= | =LOG= | ||
*[[DMESG EPOCH CONVERTER|DMESG EPOCH CONVERTER]] | *[[DMESG EPOCH CONVERTER|DMESG EPOCH CONVERTER]] | ||
*[[EPOCH|EPOCH]] | *[[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= | =Monitor= | ||
*[[NMON|NMON]] | *[[NMON|NMON]] | ||
| Linha 64: | Linha 125: | ||
*[[RabbitMQ Monitor for Zabbix|RabbitMQ Monitor for Zabbix]] | *[[RabbitMQ Monitor for Zabbix|RabbitMQ Monitor for Zabbix]] | ||
*[[FSRO|FSRO]] | *[[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= | |||
[[Monitor de Threads|Monitor de Threads]] | |||
=Security= | |||
*[[Certificate Discovery|Certificate Discovery]] | |||
*[[Encrypt OS Disk|Encrypt OS Disk]] | |||
*[[Encrypt File|Encrypt File]] | |||
*[[InSecurity|InSecurity]] | |||
*[[KEEPASS|KEEPASS]] | |||
*[[OpenSSL|OpenSSL]] | |||
*[[Password Enforcing|Password Enforcing]] | |||
*[[Password Generator|Password Generator]] | |||
*[[Ssh-Keygen|Ssh-Keygen]] | |||
*[[Stunnel|Stunnel]] | |||
=Systemctl= | =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:// | *[https://tldp.org/ TLDP Advanced Bash-Scripting Guide] | ||
*[[My .bashrc|My .bashrc]] | |||
*https://catonmat.net/bash-one-liners-explained-part-two | ===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]] | |||
=Time= | |||
*[[TZDATA|TZDATA]] | *[[TZDATA|TZDATA]] | ||
*[[DATE Linux|DATE]] | |||
=[[Linux Tools|Tools]]= | =[[Linux Tools|Tools]]= | ||
*[[CURL|CURL]] | |||
=Version Control= | |||
*[[GIT|GIT]] | |||
=Web Server= | |||
*[[NGINX|NGINX]] | |||
Edição atual tal como às 12h16min de 12 de novembro 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
- CryptSetup
- Dir Stat to CSV(Windows)
- Get Deleted File in Use
- Tamanho de arquivo
- Tamanho dos diretórios
- Root PV resize
File
GraphViz
HAPROXY
Inventory
JSON
Kernel
LOG
Links
Memory
Monitor
ZABBIX
Network
- DHCLIENT.CONF
- IP Comando
- Filtro de origem TCPDUMP
- Coleta em loop com TCPDUMP para wireshark
- DELL RACADM COLLECT
- Iptables Firewall
- Copy Methods
- WGET
- PROC_TCP
- TC
- ufw
- nmap
VRRP
Package Manager
Processos
Security
- Certificate Discovery
- Encrypt OS Disk
- Encrypt File
- InSecurity
- KEEPASS
- OpenSSL
- Password Enforcing
- Password Generator
- Ssh-Keygen
- Stunnel
Systemctl
Storage
SHELL
BASH
Internal
External
- Bash One-Liners Explained, Part I: Working with files
- Bash One-Liners Explained, Part II: Working with strings
- Shell Parameter Expansion