ping -c4 archlinux.org
cgdisk /dev/nvme0n1
Partition Partition Type Size Mount Point
/dev/nvme0n1p1 efi (ef00) 128M /mnt/efi
/dev/nvme0n1p2 (/dev/mapper/cryptlvm) LVM on LUKS Remainder of the device /mnt
esp=/dev/nvme0n1p1
luks=/dev/nvme0n1p2
cryptsetup luksFormat -v -i 3000 $luks
cryptsetup open $luks cryptlvm
vgscan
vgchange -ay
pvcreate /dev/mapper/cryptlvm
vgcreate vg0 /dev/mapper/cryptlvm
lvcreate -L 40G -n root vg0
lvcreate -L 256M -n boot vg0
lvcreate -l 100%FREE -n home vg0
mkfs.fat -F32 -n EFI $esp
mkfs.ext4 -L boot /dev/vg0/boot
mkfs.ext4 -L root /dev/vg0/root
mkfs.ext4 -L home /dev/vg0/home
mount -m /dev/vg0/root /mnt
mount -m /dev/vg0/boot /mnt/boot
mount -m $esp /mnt/efi
mount -m /dev/vg0/home /mnt/home
mkdir -pv /mnt/efi/EFI/Linux
pacstrap /mnt base vim opendoas lvm2
genfstab -U /mnt >> /mnt/etc/fstab
mkdir /mnt/etc/cmdline.d/
echo "rd.luks.name=$(lsblk -dno UUID $luks)=cryptlvm root=/dev/vg0/root rw loglevel=3" > /mnt/etc/cmdline.d/cmdline.conf
arch-chroot /mnt /bin/bash
user={user}
hostname={hostname}
ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
hwclock --systohc
/etc/locale.gen
...
en_DK.UTF-8 UTF-8
...
en_US.UTF-8 UTF-8
...
ja_JP.UTF-8 UTF-8
...
locale-gen
echo 'LANG=ja_JP.UTF-8' > /etc/locale.conf
echo 'blacklist pcspkr' >> /etc/modprobe.d/blacklist.conf
useradd -m -G video,storage,input,wheel $user
passwd $user
echo 'permit persist :wheel' > /etc/doas.conf
pacman -S linux linux-firmware efibootmgr intel-ucode amd-ucode \
xorg-xinit xorg-server i3-gaps noto-fonts-cjk networkmanager \
xdg-user-dirs cryptsetup rsync git base-devel \
pipewire-alsa pipewire-pulse gvfs gvfs-mtp alacritty firefox --needed -y
/etc/mkinitcpio.d/linux.preset
-PRESETS=('default' 'fallback')
+PRESETS=('default')
+#default_image="/boot/initramfs-linux.img"
+default_uki="/efi/EFI/Linux/grubx64.efi"
rm /boot/initramfs-linux*.img
su $user -c 'LANG=C xdg-user-dirs-update --force'
/etc/mkinitcpio.conf
-HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)
+HOOKS=(base systemd autodetect modconf kms keyboard sd-vconsole block sd-encrypt lvm2 filesystems fsck)
mkinitcpio -P
echo $hostname > /etc/hostname
exit # or Ctrl+d
umount -R /mnt
shutdown -h now
systemctl enable --now NetworkManager
nmtui
doas pacman -S fcitx5-im fcitx5-skk
~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
doas reboot
Execute as admin
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_QWORD /f
setup refind with bitlocker support
/efi/EFI/refind/refind.conf