ð¯ðµ Arch Linuxã®ã€ã³ã¹ããŒã«
ïŒArch Linuxã®ã€ã³ã¹ããŒã«
1.眲åã®æ€èšŒ
ç¹ã«HTTPãã©ãŒããã®ããŠã³ããŒãã®å Žåãæªæã®ããã€ã¡ãŒãžãæäŸããããã«ã€ã³ã¿ãŒã»ãããããå¯èœæ§ãããããã䜿çšåã«ã€ã¡ãŒãžã®çœ²åã確èªããããšãæšå¥šãããŸãã GnuPG ãã€ã³ã¹ããŒã«ãããã·ã¹ãã ã§ã¯ãISOãã£ã¬ã¯ããªã«PGP ISO眲åãããŠã³ããŒãããŠã次ã®ã³ãã³ãã§æ€èšŒããŸãã
$ gpg --keyserver-options auto-key-retrieve --verify archlinux-version-x86_64.iso.sig
ãŸãã¯ãArch Linuxã®æ¢åã®ã€ã³ã¹ããŒã«ããå®è¡ããŸãã
$ pacman-key -v archlinux-version-x86_64.iso.sig
2.åææ§æ
éå§ããã«ã¯ãããŒããŒãã®èšèªãããã©ã«ãã®èšèªãå®çŸ©ããå¿ èŠããããŸããã³ãã³ããå ¥åããã«ãå©çšå¯èœãªã¬ã€ã¢ãŠãã¯æ¬¡ã®ããã«ãªã¹ãã§ããŸãã
# ls /usr/share/kbd/keymaps/**/*.map.gz
次ã®ã³ãã³ãã§ããŒããŒãã®èšèªãèšå®ããŸãã
# loadkeys it
ã³ã³ãœãŒã«ã®æåã¯/usr/share/kbd/consolefonts/ ã§èŠã€ããããšãã§ããsetfontã§ãèšå®ã§ããŸããããšãã°ãHiDPIãã£ã¹ãã¬ã€ã«é©ãã倧ããªæåã®ãã¡ã®1ã€ã䜿çšããå Žåã¯ã次ã®ããã«å®è¡ããŸãã
# setfont ter-132b
3.ã€ã³ã¿ãŒãããæ¥ç¶
æç·ãŸãã¯ä»®æ³ãã·ã³ãä»ããŠãã·ã³ãã€ã³ã¿ãŒãããã«æ¥ç¶ããå Žåã次ã®ã³ãã³ãã䜿çšããŠååŸããIPã¢ãã¬ã¹ã確èªã§ããŸãã
# ip a
æ¥ç¶ã¯pingãã¹ãã³ãã³ãã§ãã¹ãã§ããŸãã
# ping -c 3 archlinux.org
ããŒã«ãiwctlãã䜿çšããŠWi-Fiãããã¯ãŒã¯ã«æ¥ç¶ããŸãã
# iwctl
iwctlã®èµ·å# device list
ããã€ã¹åãèŠã€ããïŒäŸïŒwlan0ïŒ# station wlan0 scan
å©çšå¯èœãªç¡ç·ãããã¯ãŒã¯ã®ã¹ãã£ã³# station wlan0 get-networks
ãããã¯ãŒã¯ã®ãªã¹ããååŸ# station wlan0
ããªãã®ãããã¯ãŒã¯åã«æ¥ç¶# exit
ããã€ã¹ãç¡å¹ã«ãªã£ãŠã㊠iwctl ãå®è¡ã§ããªãå Žåã¯ã次ã®ããã«ããŸãã
# rfkill list
ããã€ã¹ã®ãããã¯ãŸãã¯ã¢ã³ãããã¯ãããç¶æ ã確èªããŸãã# rfkill unblock all
ãããã¯ãããããã€ã¹ããã¹ãŠè§£é€ããŸãã# systemctl restart iwd
iwdãµãŒãã¹ãåèµ·åããŸãã
ïŒiwctl
ãåè©Šè¡ããŠãäžèšã®ããã«é²ããŠãã ããã
4.ãã£ã¹ã¯ã®æºå
- [Bios-MBR ext4]ïŒïŒbios-mbrïŒ
- [UEFI ext4]ïŒïŒuefi-ext4ïŒ
- [UEFI btrfs]ïŒïŒuefi-btrfsïŒ
- [UEFI lvm EXT4]ïŒïŒuefi-lvm-ext4ïŒ
Bios-MBR
ããŒãã£ã·ã§ãã³ã°
ãã£ã¹ã¯ã®ååä»ãèŠåãç¥ãããã«ãã£ã¹ã¯ãèå¥ããŸããäŸãã°ã SSD / dev / sda ã®å Žåãã M.2 / dev / nvme0n1 ã®å ŽåããããŠæåŸã«ä»®æ³ãã£ã¹ã¯/ dev / vdaã®å Žåã
# lsblk -l
ãã£ã¹ã¯ã®ååä»ããç¹å®ãããããããã§ã¯ / dev / sda ãæã£ãŠãããšä»®å®ããŸãã cfdiskã䜿çšããŸããrawãã£ã¹ã¯ã®å Žåã¯ããŒãã£ã·ã§ãã³ã°ããŒãã«ã®ã¿ã€ããå°ããããå ŽåããããŸãããã®å Žåã¯ããDOSããéžæããŠãã ããã
# cfdisk /dev/sda
åºæ¬çãªã€ã³ã¹ããŒã«ã®ããã«å¿ èŠãªããŒãã£ã·ã§ã³ãäœæããŸãã 128GiB SSD ãæã£ãŠãããšä»®å®ããå ŽåïŒ
# 4Gib
ã¹ã¯ããçšã®ããŒãã£ã·ã§ã³ãäœæããã¹ã¯ããã¿ã€ããéžæããŸã# 124Gib
ã«ãŒãããŒãã£ã·ã§ã³ãäœæããŸã# writeïŒyesïŒ
ããã³quit
å€æŽãæžã蟌ãã§çµäºããŸã
ããŒãã£ã·ã§ã³ã®ãã©ãŒããã
# mkswap /dev/sda1
ã¹ã¯ããããŒãã£ã·ã§ã³# mkfs.ext4 /dev/sda2
RootããŒãã£ã·ã§ã³in EXT4
ããŒãã£ã·ã§ã³ã®ããŠã³ã
# mount /dev/sda2 /mnt
ã«ãŒãããŒãã£ã·ã§ã³ãããŠã³ãããŸã# swapon /dev/sda1
ã¹ã¯ããããŒãã£ã·ã§ã³ãããŠã³ãããŸã
UEFI ext4
ãã£ã¹ã¯ã®ããŒãã£ã·ã§ãã³ã°
ãã£ã¹ã¯ã®ååä»ãèŠåãç¥ãããã«ãã£ã¹ã¯ãèå¥ããŸããäŸãã°ã SSD /dev/sda ã®å Žåãã M.2 /dev/nvme0n1 ã®å ŽåããããŠæåŸã«ä»®æ³ãã£ã¹ã¯/ dev / vdaã®å Žåã
# lsblk -l
** 128GiB SSD **ãæã£ãŠãããšããUEFIã€ã³ã¹ããŒã«ã®ããã«GPTããŒãã£ã·ã§ãã³ã°ã䜿çšããå ŽåïŒ
# cfdisk /dev/sda
# 512Mib
EFIããŒãã£ã·ã§ã³ãäœæããEFIã·ã¹ãã ããŒãã£ã·ã§ã³ã¿ã€ããéžæããŸã# 4Gib
ã¹ã¯ããçšã®ããŒãã£ã·ã§ã³ãäœæããã¹ã¯ããã¿ã€ããéžæããŸã# 23.5Gib
ã«ãŒãããŒãã£ã·ã§ã³ãäœæããŸã# 100Gib
ããŒã ããŒãã£ã·ã§ã³ãäœæããŸã# writeïŒyesïŒ
ããã³quit
å€æŽãæžã蟌ãã§çµäºããŸã
ããŒãã£ã·ã§ã³ã®ãã©ãŒããã
# mkfs.vfat -F32 /dev/sda1
EFIã·ã¹ãã ããŒãã£ã·ã§ã³in FAT32ããŒãçš# mkswap /dev/sda2
ã¹ã¯ããããŒãã£ã·ã§ã³# mkfs.ext4 /dev/sda3
RootããŒãã£ã·ã§ã³in EXT4# mkfs.ext4 /dev/sda4
HomeããŒãã£ã·ã§ã³in EXT4
ããŒãã£ã·ã§ã³ãããŠã³ããã
# mount /dev/sda3 /mnt
ã«ãŒãããŒãã£ã·ã§ã³ãããŠã³ãããŸã# mkdir -p /mnt/{home,boot}
/homeãš/bootãã£ã¬ã¯ããªãäœæ# mount /dev/sda4 /mnt/home
ããŒã ããŒãã£ã·ã§ã³ãããŠã³ãããŸã# mount /dev/sda1 /mnt/boot
ããŒãããŒãã£ã·ã§ã³ãããŠã³ãããŸã# swapon /dev/sda2
ã¹ã¯ããããŒãã£ã·ã§ã³ãããŠã³ãããŸã
UEFI btrfs
ãã£ã¹ã¯ã®ããŒãã£ã·ã§ãã³ã°
ãã£ã¹ã¯ã®ååä»ãèŠåãç¥ãããã«ãã£ã¹ã¯ãèå¥ããŸããäŸãã°ã SSD /dev/sda ã®å Žåãã M.2 /dev/nvme0n1 ã®å ŽåããããŠæåŸã«ä»®æ³ãã£ã¹ã¯/ dev / vdaã®å Žåã
# lsblk -l
** 128GiB SSD **ãæã£ãŠãããšããUEFIã€ã³ã¹ããŒã«ã®ããã«GPTããŒãã£ã·ã§ãã³ã°ã䜿çšããå ŽåïŒ
# cfdisk /dev/sda
# 512Mib
EFIããŒãã£ã·ã§ã³ãäœæããEFIã·ã¹ãã ããŒãã£ã·ã§ã³ã¿ã€ããéžæããŸã# 27.5Gib
ã«ãŒãããŒãã£ã·ã§ã³ãäœæããŸã# 100Gib
ããŒã ããŒãã£ã·ã§ã³ãäœæããŸã# writeïŒyesïŒ
ããã³quit
å€æŽãæžã蟌ãã§çµäºããŸã
ããŒãã£ã·ã§ã³ã®ãã©ãŒããã
# mkfs.vfat -F32 /dev/sda1
EFIã·ã¹ãã ããŒãã£ã·ã§ã³in FAT32ããŒãçš# mkfs.btrfs /dev/sda2
ã«ãŒãããŒãã£ã·ã§ã³in BTRFS# mkfs.btrfs /dev/sda3
ããŒã ããŒãã£ã·ã§ã³in BTRFS
ããŒãã£ã·ã§ã³ãããŠã³ããã
@ããã³@ homeã®ãµãããªã¥ãŒã ãäœæããŸãã
-
# mount /dev/sda2 /mnt
-
# btrfs su cr /mnt/@
-
# umount /mnt
-
# mount /dev/sda3 /mnt
-
# btrfs su cr /mnt/@home
-
# umount /mnt
-
# mount -o noatime,ssd,space_cache=v2,compress=zstd,discard=async,subvol=@ /dev/sda2 /mnt
-
# mkdir -p /mnt/{home,boot}
/homeãš/bootãã£ã¬ã¯ããªãäœæããŸã -
# mount /dev/sda1 /mnt/boot
-
# mount -o noatime,ssd,space_cache=v2,compress=zstd,discard=async,subvol=@home /dev/sda3 /mnt/home
UEFI lvm-ext4
ãã£ã¹ã¯ã®ããŒãã£ã·ã§ãã³ã°
ãã£ã¹ã¯ã®ååä»ãèŠåãç¥ãããã«ãã£ã¹ã¯ãèå¥ããŸããäŸãã°ã SSD /dev/sda ã®å Žåãã M.2 /dev/nvme0n1 ã®å ŽåããããŠæåŸã«ä»®æ³ãã£ã¹ã¯/ dev / vdaã®å Žåã
# lsblk -l
** 3 128GiBãã£ã¹ã¯ ãæã¡ãLVMã®ããã«ïŒ sda sdb sdc ã䜿çšããå Žåã1ã€ã®ãã£ã¹ã¯ã〠cfdisk **ã䜿çšããŠãã ããã
# cfdifk /dev/sda
# 512Mib
EFIããŒãã£ã·ã§ã³ãäœæããEFIã·ã¹ãã ããŒãã£ã·ã§ã³ã¿ã€ããéžæããŸã# 127.5GiB
LVMã¿ã€ããéžæããŠããŒãã£ã·ã§ã³ãäœæããŸã# writeïŒyesïŒ
ããã³quit
å€æŽãæžã蟌ãã§çµäºããŸã
# cfdifk /dev/sdb
# 128GiB
LVMã¿ã€ããéžæããŠããŒãã£ã·ã§ã³ãäœæããŸã# writeïŒyesïŒ
ããã³quit
å€æŽãæžã蟌ãã§çµäºããŸã
# cfdifk /dev/sdc
# 128GiB
LVMã¿ã€ããéžæããŠããŒãã£ã·ã§ã³ãäœæããŸã# writeïŒyesïŒ
ããã³quit
å€æŽãæžã蟌ãã§çµäºããŸã
LVMã®äžã«ããŒãã£ã·ã§ã³ãäœæããã«ã¯ããŸãç©çããªã¥ãŒã ãäœæããå¿ èŠããããŸãã
ç©çããªã¥ãŒã ãäœæãã
# pvcreate /dev/sda2 /dev/sdb1 /dev/sdc1
ããªã¥ãŒã ã°ã«ãŒããäœæãã
ããªã¥ãŒã ã°ã«ãŒããäœæããŠæ¡åŒµãããããªã¥ãŒã ã°ã«ãŒãã1ã€ä»¥äžã®ç©çããªã¥ãŒã ã«äœæããã«ã¯ã# vgcreate volume_group physical_volume
ãªã©ã®ã³ãã³ããå¿
èŠã§ããããšãã°ïŒ
# vgcreate lvm /dev/sda2 /dev/sdb1 /dev/sdc1
ãã®ã³ãã³ãã¯æåã«ãå¿ èŠã«å¿ããŠ3ã€ã®ããŒãã£ã·ã§ã³ãç©çããªã¥ãŒã ãšããŠèšå®ãã次ã«3ã€ã®ããªã¥ãŒã ã§ããªã¥ãŒã ã°ã«ãŒããäœæããŸããã³ãã³ãã¯ãããã€ã¹äžã«æ¢åã®ãã¡ã€ã«ã·ã¹ãã ãæ€åºããå Žåã¯ã¢ã©ãŒãã衚瀺ããŸãã
è«çããªã¥ãŒã ãäœæãã
ã«ãŒããã¹ã¯ãããããã³ããŒã åã ã«è«çããªã¥ãŒã ãäœæããŸãã
# lvcreate -L 120G lvm -n root
# lvcreate -L 8G lvm -n swap
# lvcreate -l 100%FREE lvm -n home
ããŒãã£ã·ã§ã³ã®ãã©ãŒããã
# mkfs.vfat -F32 /dev/sda1
EFIã·ã¹ãã ããŒãã£ã·ã§ã³in FAT32ããŒãçš# mkfs.ext4 /dev/lvm/root
# mkfs.ext4 /dev/lvm/home
# mkswap /dev/lvm/swap
ããŒãã£ã·ã§ã³ãããŠã³ããã
# mount /dev/lvm/root /mnt
# mkdir -p /mnt/{home,boot}
/homeãš/bootãã£ã¬ã¯ããªãäœæããŸã# mount /dev/lvm/home /mnt/home
# mount /dev/sda1 /mnt/boot
# swapon /dev/lvm/swap
LVMã°ã«ãŒããæ¡åŒµãã
å°æ¥çã«ã°ã«ãŒãã«æ°ããç©çããªã¥ãŒã ãè¿œå ãããå Žåã¯ã4çªç®ã®ãã£ã¹ã¯sddãè¿œå ãã以åãšåãããã«ããŒãã£ã·ã§ã³ãäœæããŠãã¹ããŒã¹ãæ¡å€§ããããã®ã³ãã³ãã確èªããŸãã äŸïŒ/dev/lvm/home
ïŒ
# pvcreate /dev/sdd1
# vgextend lvm /dev/sdd1
# lvextend -l +100%FREE /dev/lvm/home
5.ãã©ãŒãªã¹ã
åœãæå®ã㊠reflector ã䜿çšããŠããªããžããªã®ãã©ãŒãªã¹ãã /etc/pacman.d/mirrorlist ã«ä¿åããŸããè€æ°ã®åœãè¿œå ããããšãã§ããŸããäŸãã°ã itãus ïŒ
# reflector --verbose -c it -a 12 --sort rate --save /etc/pacman.d/mirrorlist
6.ããã¯ã¹ãã©ãã
** Linuxã«ãŒãã«ãšåºæ¬ããã±ãŒãžãã€ã³ã¹ããŒã«ããŠãArchã·ã¹ãã ãäœæãã vim ãªã©ã®ãšãã£ã¿ãŒãè¿œå ããŸãã lvm**ã®ã€ã³ã¹ããŒã«ã®å Žåã¯ã次ã®ã³ãã³ãã«lvm2
ããã±ãŒãžãè¿œå ããŠãã ããã
# pacstrap -K /mnt base base-devel linux linux-firmware vim
7.fstabãçæãã
** / etc / fstab **ãã¡ã€ã«ã䜿çšããŠãLinuxã·ã¹ãã ã®ããŒãäžã«ããŠã³ãããããã¡ã€ã«ã·ã¹ãã ãå¶åŸ¡ã§ããŸãïŒWindowsããŒãã£ã·ã§ã³ããããã¯ãŒã¯å ±æãå«ãïŒã
# genfstab -U /mnt > /mnt/etc/fstab
8.Chroot
Chrootã«å ¥ãã以äžã®æé ãæ§æããŸãïŒããŒã«ã«ã¿ã€ã ãã·ã¹ãã ã¯ããã¯ãèšèªãããŒããŒããããã³ã°ãlocalhostãã«ãŒããã¹ã¯ãŒãããŠãŒã¶ãŒã®äœæãšãã¹ã¯ãŒãã
chrootã«å ¥ããŸãã
# arch-chroot /mnt
ã¿ã€ã ãŸãŒã³
# ln -sf /usr/share/zoneinfo/Europe/Italy /etc/localtime
# hwclock --systohc
ããŒã«ã©ã€ãº
# echo "it_IT.UTF-8 UTF-8" >> /etc/locale.gen
# locale-gen
# echo "LANG=it_IT.UTF-8" >> /etc/locale.conf
- `# echo "KEYMAP=us" >> /etc/vconsole.conf
ãã¹ãåãšãã¹ã
# echo "YOURMACHINENAME" > /etc/hostname
# echo "127.0.0.1 localhost" >> /etc/hosts
# echo "::1 localhost" >> /etc/hosts
ãŠãŒã¶ãŒãšã«ãŒã
ã«ãŒããã¹ã¯ãŒãã®èšå®ã«æ³šæããŠãã ããïŒ
# passwd
æ°ããããŒã¯ãŒã±ãŒã¹ãŠãŒã¶ãŒãæ§æãããã£ã¬ã¯ã㪠/home/USERNAME
ã -m
ã§äœæããã°ã«ãŒã wheel
ã -G
ã§äœæããã·ã§ã«ã -s
ã§èšå®ããŸãã
# useradd -mG wheel -s /bin/bash USERNAME
å®åãèšå®ããŸãïŒäŸãã°ã°ã©ãã£ãã¯äžã§ã¯å€§æåã§å§ãŸã "Alessio" ã衚瀺ãããŸãïŒã
# usermod -c 'REALNAME' USERNAME
æ°ããè¿œå ãããŠãŒã¶ãŒã«ãã¹ã¯ãŒããèšå®ããŠãã ããã泚æããŠãã ããïŒ
# passwd USERNAME
wheelã°ã«ãŒãã®sudoersãã¡ã€ã«ãèšå®ããŸãã
# echo "USERNAME ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/USERNAME
LVMçšã®mkinitcpio
/etc/mkinitcpio.conf
å
ã®hooks
ã« lvm2 ãè¿œå ããŸãã
HOOKS="base udev ... block lvm2 filesystems"
ãã®åŸã次ã®ã³ãã³ãã䜿çšããŸãã
# mkinitcpio -p linux
ããŒãããŒããŒ
GRUBïŒBios-MBRïŒ
# pacman -S grub
# grub-install --target=i386-pc /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
GRUBã¯ãCAããŒãŸãã¯shimã䜿çšããã»ãã¥ã¢ããŒããå®å šã«ãµããŒãããŠããŸãããã ãã䜿çšãããã®ã«ãã£ãŠã€ã³ã¹ããŒã«ã³ãã³ããç°ãªããŸãã
CAããŒã䜿çšããå Žåãã³ãã³ãã¯æ¬¡ã®ãšããã§ãã
# grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB --modules="tpm" --disable-shim-lock
shim-lockã䜿çšããå Žåãã³ãã³ãã¯æ¬¡ã®ãšããã§ãã
# grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB --modules="normal test efi_gop efi_uga search echo linux all_video gfxmenu gfxterm_background gfxterm_menu gfxterm loadenv configfile tpm"
Systemd-bootïŒEXT4ïŒ
# pacman -S efibootmgr
# bootctl --path=/boot install
# echo "default arch-*" >> /boot/loader/loader.conf
# vim /boot/loader/entries/arch.conf
次ã«ãvimã§éããarch.confãã¡ã€ã«ã®æ§æãäœæããŸããroot=
ã«ã¯ãã«ãŒãããŒãã£ã·ã§ã³ã®çªå·ã§ãã x
ãšæžã蟌ãå¿
èŠããããŸãã
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdax rw quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_level=3
Systemd-bootïŒBtrfsïŒ
# pacman -S efibootmgr
# bootctl --path=/boot install
# echo "default arch-*" >> /boot/loader/loader.conf
# vim /boot/loader/entries/arch.conf
次ã«ãvimã§éããarch.confãã¡ã€ã«ã®æ§æãäœæããŸããroot=
ã«ã¯ãã«ãŒãããŒãã£ã·ã§ã³ã®çªå·ã§ãã x
ãšæžã蟌ãå¿
èŠããããŸãããããŠã@ãµãããªã¥ãŒã ã®ããã®ãã©ã°ãè¿œå ããŸãã
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdax rootflags=subvol=@ rw quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_level=3
Systemd-bootïŒLVMïŒ
# pacman -S efibootmgr
# bootctl --path=/boot install
# echo "default arch-*" >> /boot/loader/loader.conf
# vim /boot/loader/entries/arch.conf
次ã«ãvimã§éããarch.confãã¡ã€ã«ã®æ§æãäœæããŸããã«ãŒãããŒãã£ã·ã§ã³ãšã㊠lvm ã䜿çšããå Žåã root=/dev/mapper/lvm-root
ãšæžã蟌ãå¿
èŠããããŸãã
title Arch Linux (LVM)
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/mapper/lvm-root rw quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_level=3
åºæ¬ããã±ãŒãž
# pacman -S xorg wpa_supplicant wireless_tools netctl net-tools iw networkmanager alsa-utils pipewire-pulse mtools dosfstools mtools ntfs-3g f2fs-tools dosfstools exfatprogs fuse firewalld acpi cronie git reflector bluez bluez-utils cups reflector
ãã¹ã¯ãããç°å¢
ããã€ãã®äººæ°ã®ãããã¹ã¯ãããç°å¢ããéžæã§ããŸãã
Gnome å®å šãªGnomeãšGDMãã£ã¹ãã¬ã€ãããŒãžã£ãŒ
# pacman -S gnome gnome-extra gdm
# systemctl enable gdm
Xfce4 Lightdmãã£ã¹ãã¬ã€ãããŒãžã£ãŒã§xfce4ã䜿ã
# pacman -S xfce4 xfce4-goodies lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings
# systemctl enable lightdm
Lxde Lightdmãã£ã¹ãã¬ã€ãããŒãžã£ãŒã§lxdeã䜿ã
# pacman -S lxde lxde-common lxsession openbox
# systemctl enable lightdm
Mate Lightdmãã£ã¹ãã¬ã€ãããŒãžã£ãŒã§mateã䜿ã
# pacman -S mate mate-extra
# systemctl enable lightdm
Plasma SDDMãã£ã¹ãã¬ã€ãããŒãžã£ãŒã§plasma kdeã䜿ã
# pacman -S plasma kde-applications sddm
# systemctl enable sddm
Cinnamon Lightdmãã£ã¹ãã¬ã€ãããŒãžã£ãŒã§cinnamonã䜿ã
# pacman -S cinnamon nemo-fileroller gnome-terminal lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings xdg-user-dirs-gtk
# systemctl enable lightdm
ãµãŒãã¹
ãã£ã¹ãã¬ã€ãããŒãžã£ãŒã®ãµãŒãã¹ãæå¹ã«ããå Žåãä»ã®å¿ èŠãªãµãŒãã¹ãæå¹ã«ããããã«é²ããããšãã§ããŸãã
# systemctl enable NetworkManager
泚æïŒå€§æåãšå°æåãåºå¥ããŸãã# systemctl enable bluetooth
# systemctl enable reflector
# systemctl enable cronie
# systemctl enable firewalld
Zram
以äžã®äŸã§ã¯ãåäžã® udev ã«ãŒã«ã䜿çšããŠèµ·åæã« zram ã«èªåã¹ã¯ããã³ã°ãèšå®ããæ¹æ³ã«ã€ããŠèª¬æããŠããŸãããã®æ©èœã䜿ãããã«ã¯ãè¿œå ã®ããã±ãŒãžã¯å¿ èŠãããŸããã
èµ·åæã«æ瀺çã«ã¢ãžã¥ãŒã«ãããŒãããŸãã
-
# vim /etc/modules-load.d/zram.conf
-
zram
次㮠udev ã«ãŒã«ãäœæããŠãã ããããã®äŸã§ã¯ãã¹ã¯ãããµã€ãºã«å¿ããŠãã£ã¹ã¯ãµã€ãºå±æ§ã調æŽããŸãã以äžã®äŸã§ã¯ãã¹ã¯ãããµã€ãºã¯ 16G ã«ãªããŸãã
-
# vim /etc/udev/rules.d/99-zram.rules
-
ACTION=="add", KERNEL=="zram0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="16G", RUN="/usr/bin/mkswap -U clear /dev/%k", TAG+="systemd"
åªå 床ãããã©ã«ããããé«ãããŠãfstabã« /dev/zram ãè¿œå ããŠãã ããã
-
# vim /etc/fstab
-
/dev/zram0 none swap defaults,pri=100 0 0
Creata: August 16, 2023