Installation of Arch Linux

· · 个人记录

Arch Installtion

DECLAIM: Just personal preferences.

Written in English, for installation environment cannot display Chinese.

download iso

Official

Tsinghua University Mirror Server

 ventoy

download

 network during installation

 wireless

# iwctl

> device list

> station wlan0 connect + Tab

wired

# dhcpcd

check

# ping cn.bing.com

system time

# timedatectl set-ntp true

disk part

recommendations:

  1. / root of Linux

  2. /boot EFI boot

  3. /home user data

fdisk environment:

# fdisk -l

# fdisk /dev/(disk)

read:

> m view all operations

> l check all supported types: ef for EFI

> p view the partitions

write:

> g create new gpt

> n create new partition

> t choose the type of the new partition

> d delete certain partition

save:

> w save the changes

format:

# mkfs.fat -F32 /dev/(EFI part)

# mkfs.ext4 /dev/(other parts)

# mkfs.ntfs /dev/(other parts)

mount

# mount /dev/(part) /mnt/(role) --mkdir

Basic system

mirrorlist:

# vim /etc/pacman.d/mirrorlist add to top:

Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch

signature config:

# vim /etc/pacman.conf

use Siglevel = Optional TrustAll instead of Siglevel = Required DatabaseOptional

basic packages:

# pacstrap /mnt base base-devel linux-zen linux-firmware dhcpcd

fstab:

# genfstab -U /mnt >> /mnt/etc/fstab

# cat /mnt/etc/fstab

chroot

# arch-chroot /mnt

time set

# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# hwclock --systohc

package install

# pacman -S neovim networkmanager netctl dialog

# ln -sf /bin/nvim /bin/vim

locale

# vim /etc/locale.gen

en_SG.UTF-8

zh_CN.UTF-8

# locale-gen

# echo LANG=en_SG.UTF-8 > /etc/locale.conf

host

# echo ryno > /etc/hostname

# vim /etc/hosts

127.0.0.1        localhost  
::1                    localhost  
127.0.1.1        ryno.localdomain ryno

root password

# passwd

intel-ucode

# pacman -S intel-ucode

grub

# pacman -S os-prober ntfs-3g

# pacman -S grub efibootmgr

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub

# grub-mkconfig -o /boot/grub/grub.cfg

# vim /boot/grub/grub.cfg

you can either reboot or not now.

internet

wireless:

# wifi-menu

wired:

# dhcpcd

user

# useradd -m -G wheel lynx

# passwd lynx

sudo

# pacman -S sudo

# ln -s /usr/bin/nvim /usr/bin/vi

# visudo

graphics

sudo pacman -S xf86-video-intel

sudo pacman -S vulkan-intel

sudo pacman -S xorg

sudo pacman -S plasma konsole dolphin

sudo pacman -S xorg-xinit

network

sudo systemctl disable netctl

sudo systemctl enable NetworkManager

sudo pacman -S network-manager-applet

fcitx5

Fcitx5 - Arch Linux 中文维基

sound

Intel sound card not working

font

sudo pacman -S wqy-microhei

packages

main

sudo pacman -S plasma konsole firefox dolphin p7zip kate deepin-draw git kwallet kcalc kdenlive khotkeys flameshot man-db xinit-start vlc wget wps-office zsh

multilib

sudo pacman -S wine wine-gecko wine-mono