System
Commands
Keymap
loadkeys jp106
Time
timedatectl set-ntp true
Mirrorlist
pacman -Syy
pacman -S reflector
reflector -c Japan --sort rate -a 6 --save /etc/pacman.d/mirrorlist
Disk Partitioning
gdisk /dev/vda
/dev/vda1: EFI system (200M)
/dev/vda2: Linux filesystem
mkfs.fat -F32 /dev/vda1
mkfs.btrfs /dev/vda2
- Create subvolume and mount devices:
mount /dev/vda2 /mnt
btrfs su cr /mnt/@
umount /mnt
mount -o compress=lzo,subvol=@ /dev/vda2 /mnt
mkdir -p /mnt/boot/efi
mount /dev/vda1 /mnt/boot/efi
Base Install
pacstrap /mnt base linux linux-firmware vim
fstab
genfstab -U /mnt >> /mnt/etc/fstab
chroot
arch-chroot /mnt
Localization
ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
hwclock --systohc
vim /etc/locale.gen
- # en_US.UTF-8 UTF-8
+ en_US.UTF-8 UTF-8
locale-gen
echo LANG=en_US.UTF-8 >> /etc/locale.conf
echo KEYMAP=jp106 >> /etc/vconsole.conf
Set hostname and hosts
vim /etc/hostname
+ arch
vim /etc/hosts
+ 127.0.0.1 localhost
+ ::1 localhost
+ 127.0.1.1 arch.localdomain arch
Root password
passwd
Install necessary softwares
pacman -S grub efibootmgr os-prober
- Network and wireless tools:
pacman -S networkmanager network-manager-applet wireless_tools wpa_supplicant dialog
pacman -S mtools dosgstools
- Basic apps (bison, make, gcc, sudo, and etc.):
pacman -S base-devel
pacman -S linux-headers
pacman -S bluez bluez-utils alsa-utils pulseaudio pulseaudio-bluetooth
pacman -S xdg-utils xdg-user-dirs
pacman -S git
pacman -S cron
pacman -S reflector
Grub install
- Grub install and make config:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
Systemd
systemctl enable NetworkManager
systemctl enable bluetooth
- Refresh mirrorlist with reflector
- Exec options :
/etc/xdg/reflector/reflector.conf
- Weekly setting :
/usr/lib/systemd/system/reflector.timer
systemctl enable reflector.service # update mirrorlist every boot
# or
systemctl enable reflector.timer # update mirrorlist weekly
Add user
useradd -mG wheel mori
passwd mori
- Give the user priviledge:
EDITOR=vim visudo
- # %wheel ALL=(ALL) ALL
+ %wheel ALL=(ALL) ALL
Finish base installation
exit
umount -a
reboot
Install desktop environment
Install timeshift
# yay
git clone https://aur.archlinux.org/yay
cd yay
makepkg -si
# paru
git clone https://aur.archlinux.org/paru
cd paru
makepkg -si
paru -S timeshift