저는 8GB, i3, 느린 하드 드라이브 노트북에서 Fedora Workstation 33을 메인 시스템(코딩, 탐색, 작업...)으로 사용하고 있습니다. 더 빠르게 만드는 비결은 무엇입니까?
답변1
1. 쓸모없는 패키지 제거
서비스가 삭제되고 공간이 확보됩니다.
#watch the deps!
dnf rm abrt avahi audit adobe-mappings-cmap ModemManager
dnf rm containernetworking-plugins cups cups-client empathy evolution evince fedora-workstation-backgrounds f31-backgrounds-base flatpak foomatic-db-ppds fpaste
dnf rm geolite2-city gnome-classic-session gnome-contacts gnome-getting-started-docs gnome-user-docs gnome-tour gssproxy gutenprint gvfs-gphoto2 gucharmap iok 'hplip*' 'kde*' libpurple libreoffice-emailmerge libreoffice-math
dnf rm libreport
dnf rm m17n-contrib mcelog 'qemu*' qt-x11 orca
dnf rm open-vm-tools pcsc-lite pcsc-lite-libs php-common redis rhythmbox rng-tools samba-client sane-backends sane-backends-libs shotwell 'selinux-policy*' sssd 'libsss_*' totem tracker-miners
dnf rm virtualbox-guest-additions vim-filesystem vim-minimal yum
# i18n
dnf rm libpinyin libkkc libkkc-data libhangul opencc thai-scalable-fonts-common nhn-nanum-gothic-fonts wqy-zenhei-fonts smc-fonts-common smc-meera-fonts skkdic cjkuni-uming-fonts
dnf rm PackageKit
2. 쓸모없는 서비스 비활성화
DISABLE_SERVICES="atd dnf-makecache firewalld mdmonitor NetworkManager-wait-online redis unbound-anchor.timer"; for i in $DISABLE_SERVICES; do systemctl stop $i; systemctl disable $i; done
3. 나머지 분석
# see active services
systemctl -t service --state=active
# see what's taking boot time
systemd-analyze blame
# see largest packages
rpm -qa --queryformat '%{name}-%{version}-%{release} %{size}\n' | sort -nr -k2 | head -n 100 | less
# list top 10 largest open files
lsof / | awk '{ if($7 > 1048576) print $7/1048576 "MB "$9 }' | sort -n -u | tail
4. selinux 비활성화
nano /etc/selinux/config
SELINUX=disabled