This is not a patented method. It depends on each person's needs. Therefore, there is no way to install a partition for swap here.
timedatectl status
timedatectl set-ntp true
lsblk
cfdisk
mkfs.ext4 /dev/root_partition
mkfs.fat -F 32 /dev/efi_system_partition
mount /dev/root_partition /mnt
mount --mkdir /dev/efi_system_partition /mnt/boot
pacstrap -K /mnt base iwd dhcpcd base-devel linux linux-firmware neovim networkmanager network-manager-applet grub efibootmgr linux-headers mtools git xdg-user-dirs
reflector --verbose --protocol https --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
pacman -Syy
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc
Edit /etc/locale.gen
and uncomment en_US.UTF-8 UTF-8
and other needed
locales. Generate the locales by running:
locale-gen
Create the /etc/locale.conf
file, and set the LANG variable accordingly:
LANG=en_US.UTF-8
Create /etc/hostname
with the name your host:
nameFromYourHost
Create /etc/hosts
:
127.0.0.1 localhost
::1 localhost
127.0.0.1 nameFromYourHost.localdomain nameFromYourHost
Enable Network Manager
systemctl enable NetworkManager
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
passwd
useradd -mG wheel yourUsername
passwd yourUsername
export EDITOR=nvim
Edit /etc/sudoers
run “visudo” and uncomment the following line:
### Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
exit
umount -a
reboot
# /dev/sda2
UUID=******b49-******-4******-******30-******949c / ext4 rw,relatime 0 1
# /dev/sda1
UUID=******-****** /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda2
UUID=f******-9***-4***-9***-******92949c / ext4 rw,relatime 0 1
# /dev/sda1
UUID=******-****** /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda3
/dev/disk/by-uuid/12***d*a-****-****-****-************ff /home/renology ext4 defaults 0 2
I use dwm-flexipatch