카테고리 없음

[Rocky Linux] 초기 설정

PeamS 2026. 7. 9. 15:52
검증
Rocky 8  
Rocky 9 O
Rocky 10  
# 추가 패키지 설치
dnf install -y tar vim unzip net-tools psmisc iptraf-ng wget sysstat tcpdump lsof smartmontools iptraf pciutils rsyslog

# 시간대 설정
timedatectl set-timezone Asia/Seoul

# 호스트이름 변경
hostnamectl set-hostname <IN>

# ls 출력 자세히
cat <<'EOF'>> /etc/bashrc

alias ls='ls --color=auto --time-style=long-iso'  
EOF

# vim 커스텀
cat <<'EOF'>> /etc/vimrc

" custom
syn on
noh
set nocompatible
colorscheme evening
set paste

set smartindent

set tabstop=2
set shiftwidth=2
set expandtab

set ruler
set nobackup
set history=999
EOF

# selinux & 방화벽 끄기
systemctl stop firewalld
systemctl disable firewalld

setenforce 0
\cp -ap /etc/selinux/config /etc/selinux/config.bak
sed -i "s:=enforcing:=disabled:g" /etc/selinux/config