ARCH Linux Setup
-
Setup WIFI
iwctl
station wlan0 get-networks station wlan0 connect <Network name>
-
Arch Install
- GUI
archinstall
or
-
CLI
Create partition
cfdisk /dev/nvme0n1 800 M for EFI System > 20 GB for Linux filesystem ... for Linux swap
Format
mkfs.fat -F32 /dev/<EFI System> mkfs.ext4 /dev/<Linux filesystem> mkswap /dev/<swap>
Mount
#root mount /dev/<linux filesystem /mnt mkdir /mnt/boot mount /dev/<EFI system> /mnt/boot swapon /dev/<swap>
Install
pacstrap -i /mnt base base-devel linux-zen linux-firmware git sudo neofetch htop intel-ucode nano vim bluez bluez-utils networkmanager
genfstab -U /mnt >> /mnt/etc/fstab cat /mnt/etc/fstab
Enter the system
arch-chroot /mnt # change root password passwd # create user useradd -m -g users -G wheel,storage,power,video,audio -s /bin/bash <username> passwd <username> EDITOR=vim visudo # uncomment line %wheel ALL=(ALL:ALL) ALL
Timezone
ln -sf /usr/share/zoneinfo/... /etc/localtime hwclock --systohc vim /etc/locale.gen #uncomment en_US ... locale-gen vim /etc/locale.conf # add "LANG=en_US.UTF-8
Hostname
vim /etc/hostname # add hostname vim /etc/hosts # add this line: 127.0.0.1 localhost ::1 localhost 127.0.1.1 <hostname>.localdomain <hostname>
Bootloader
pacman -S grub efibootmgr dosfstools mtools grub-install --traget=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg
Finish
systemctl enable bluetooth systemctl enable NetworkManager exit umount -lR /mnt
- GUI
Unplug the USB drive and boot to the system
-
Setup Enable radio wifi
nmcli dev status nmcli radio wifi on nmcli dev wifi list sudo nmcli dev wifi connect <name> password "<password>" # update sudo pacman -Syu
Install Desktop GUI
sudo pacman -S xorg sddm plasma-meta plasma-workspace kde-applications sudo systemctl enable sddm sudo systemctl start sddm
-
Fix Backend Fix Discover App
sudo pacman -Sy flatpak
Install Nvidia Driver
lspci | grep -E "NVIDIA" sudo pacman -Sy nvidia
-
Edit boot loader
sudo pacman -Sy os-prober sudo vim /etc/default/grub # change following line # GRUB_TIMEOUT=20 # uncomment GRUB_DISABLE_OS_PROBER=false sudo grub-mkconfig -o /boot/grub/grub.cfg
-
Chinese Character and Keyboard
sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-extra noto-fonts-emoji ttf-dejavu ttf-liberation sudo pacman -S fcitx5-im fcitx5-rime cd ~/.local/share/fcitx5/rime git clone https://github.com/iDvel/rime-ice.git cp -r ./rime-ice/* .