[이것이 리눅스다] Rocky Linux 초기 설정 명령어(VMware)

728x90

Server(Main)

gsettings set org.gnome.software download-updates false
  • 소프트웨어 업데이트를 자동으로 다운로드하는 기능 비활성화
systemctl disable dnf-makecache.service
  • DNF(Dandified Yum)의 캐시 생성을 담당하는 서비스 비활성화
systemctl disable dnf-makecache. timer
  • DNF 캐시 업데이트를 일정 주기로 실행하도록 예약된 타이머 비활성화
gedit This.repo
  • GNOME 텍스트 편집기 Gedit로 This.repo 파일을 열어 편집
cd /etc/NetworkManager/system-connections/
  • 네트워크 연결 설정 파일들이 위치한 디렉토리로 이동
gedit ens160.nmconnection
  • ens160이라는 네트워크 인터페이스 설정 파일을 Gedit로 열어 편집
  • method, address, dns 수정
nmcli connection down ens160
  • ens160 네트워크 연결을 비활성화(down)시킴 <=> 활성화(up)
    • nmcli: 네트워크 관리 명령어(NetworkManager Command Line Interface)
grubby --update-kernel ALL --args selinux=0
  • 부팅 시 모든 커널에서 SELinux를 비활성화하도록 설정.
    • SELinux: Linux의 보안 설정 시스템(Security-Enhanced Linux)
sestatus
  • SELinux 상태를 확인.
    • 출력 예: enabled(활성화) / disabled(비활성화) 상태
dnf -y install firewall-config
  • firewall-config GUI 패키지를 DNF 패키지 관리자를 사용하여 설치
    • -y: 모든 확인(prompt)을 자동으로 "Yes"로 응답

설정 후 스냅샷 기능(VMware Workstation Pro)으로 저장해두기

 

Server(B)

dnf -y install nano bind-utils net-tools net-tools wget unzip bzip2
  • 소프트웨어 패키지 설치
cd /etc/yum.repos.d/
ls
rm -f *.repo
  • repo 파일 삭제(remove)
wget http://download.hanbit.co.kr/rocky/9/This.repo
  • This.repo 가져오기
grubby --update-kernel ALL --args selinux=0
  • selinux 끄기
    • 이후 reboot 해야 됨
halt-p
  • 서버 컴퓨터 종료
gedit /etc/default/grub
vga=773
  • 화면 해상도 변경
grub2-mkconfig -o /boot/grub2/grub.cfg

 

설정 후 스냅샷 기능(VMware Workstation Pro)으로 저장해두기

 

Client(PC용 Linux)

 

728x90