initial_config
Differences
This shows you the differences between two versions of the page.
| initial_config [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | initial_config [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code bash> | ||
| - | yum update | ||
| - | yum check-update --security | ||
| - | yum groupinstall " | ||
| - | yum vim mlocate telnet wget bind-utils open-vm-tools tcpdump traceroute policycoreutils-python sysstat bash-completion yum-utils | ||
| - | </ | ||
| - | <code bash> | ||
| - | # opções para o vim | ||
| - | echo "set incsearch" | ||
| - | echo "set background=dark" | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # Alias e outras opção do bash | ||
| - | cat / | ||
| - | # Cores | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | Preto=' | ||
| - | Vermelho=' | ||
| - | Verde=' | ||
| - | Amarelo=' | ||
| - | Azul=' | ||
| - | Roxo=' | ||
| - | Ciano=' | ||
| - | Branco=' | ||
| - | |||
| - | #export PS1=" | ||
| - | #export PS1=' | ||
| - | export PS1=' | ||
| - | #[ " | ||
| - | # | ||
| - | # | ||
| - | |||
| - | export HISTTIMEFORMAT=' | ||
| - | export EDITOR=' | ||
| - | |||
| - | alias rm='rm -i' | ||
| - | alias cp='cp -i' | ||
| - | alias mv='mv -i' | ||
| - | alias echo='/ | ||
| - | alias egrep=' | ||
| - | alias fgrep=' | ||
| - | alias grep=' | ||
| - | alias l.='ls -d .* --color=auto' | ||
| - | alias ll='ls -alF --color=auto' | ||
| - | alias ls='ls --color=auto' | ||
| - | alias vi=' | ||
| - | alias ping=' | ||
| - | |||
| - | # Source global definitions | ||
| - | if [ -f /etc/bashrc ]; then | ||
| - | . /etc/bashrc | ||
| - | fi | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # removendo regras default | ||
| - | firewall-cmd --permanent --zone=home --remove-service=dhcpv6-client | ||
| - | firewall-cmd --permanent --zone=home --remove-service=mdns | ||
| - | firewall-cmd --permanent --zone=home --remove-service=samba-client | ||
| - | firewall-cmd --permanent --zone=home --remove-service=ssh | ||
| - | firewall-cmd --permanent --zone=internal --remove-service=dhcpv6-client | ||
| - | firewall-cmd --permanent --zone=internal --remove-service=mdns | ||
| - | firewall-cmd --permanent --zone=internal --remove-service=samba-client | ||
| - | firewall-cmd --permanent --zone=internal --remove-service=ssh | ||
| - | firewall-cmd --permanent --zone=work --remove-service=dhcpv6-client | ||
| - | firewall-cmd --permanent --zone=work --remove-service=ssh | ||
| - | firewall-cmd --permanent --zone=public --remove-service=dhcpv6-client | ||
| - | firewall-cmd --permanent --zone=public --remove-service=ssh | ||
| - | firewall-cmd --permanent --zone=external --remove-masquerade | ||
| - | firewall-cmd --permanent --zone=external --remove-service=ssh | ||
| - | firewall-cmd --permanent --zone=dmz --remove-service=ssh | ||
| - | firewall-cmd --reload | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # ssh | ||
| - | # firewall-cmd --permanent --add-rich-rule 'rule family=" | ||
| - | # firewall-cmd --permanent --add-rich-rule 'rule family=" | ||
| - | firewall-cmd --permanent --add-rich-rule 'rule family=" | ||
| - | firewall-cmd --reload | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | systemctl reboot | ||
| - | </ | ||
initial_config.1753560543.txt.gz · Last modified: by wikiadm
