LINUX: mudanças entre as edições
Ir para navegação
Ir para pesquisar
(→BASH) |
(→Time) |
||
(58 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
=Automation= | =Automation= | ||
Linha 11: | 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= | |||
*[[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= | |||
*[[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 27: | Linha 134: | ||
*[[WGET|WGET]] | *[[WGET|WGET]] | ||
*[[PROC_TCP|PROC_TCP]] | *[[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]] | |||
=Time= | |||
*[[TZDATA|TZDATA]] | |||
*[[DATE Linux|DATE]] | |||
=[[Linux Tools|Tools]]= | |||
*[[CURL|CURL]] | |||
=Version Control= | =Version Control= | ||
*[[GIT|GIT]] | *[[GIT|GIT]] | ||
=Web Server= | =Web Server= | ||
*[[NGINX|NGINX]] | *[[NGINX|NGINX]] | ||
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
- 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
- OpenSSL
- Ssh-Keygen
- KEEPASS
- Password Enforcing
- Password Generator
- InSecurity
- Stunnel
- Encrypt OS Disk
- Encrypt File
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