mkfs.ext4 /dev/nvme0n1p2
mkfs.msdos /dev/nvme0n1p1
mount /dev/nvme0n1p2 /mnt
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot
nano /etc/pacman.d/mirrorlist
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
pacstrap /mnt base base-devel linux linux-headers linux-firmware #base-devel在AUR包的安装是必须的
pacstrap /mnt dhcpcd iwd nano zsh openssh htop ncdu wget neofetch lolcat bat kitty lsd bpytop tar gzip ranger alsa-utils pulseaudio pulseaudio-alsa pavucontrol noto-fonts-emoji noto-fonts-extra wqy-zenhei fcitx5-im fcitx5-chinese-addons fcitx5-material-color waybar swaylock wofi brightnessctl qt5-wayland python-pillow ntp gping
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
tee /etc/locale.gen <<-`EOF`
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
`EOF`
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
tee /etc/hostname <<-`EOF`
Archlinux
`EOF`
tee /etc/hosts <<-`EOF`
127.0.0.1 localhost
::1 localhost
127.0.1.1 archlinux
`EOF`
passwd root
useradd -m avrileader
passwd avrileader
pacman -S amd-ucode grub efibootmgr os-prober
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=Archlinux
编辑/etc/default/grub
文件,修改为GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nowatchdog"
,去掉 GRUB_DISABLE_OS_PROBER=false
前面的 #
允许OS探测
nano /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
sudo nano /etc/pacman.conf
wget https://arch.moichi.cn/res/yay-bin.pkg.tar.zst
sudo pacman -U yay-bin.pkg.tar.zst
sudo nano /etc/pacman.conf
[archlinuxcn]
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
git clone https://aur.archlinux.org/wayfire-git.git
makepkg -si
yay -S wcm-git wayfire-plugins-extra-git
yay -Sy obs-studio wlrobs-hg microsoft-edge-stable-bin mpv greetd nerd-fonts-hack fuse #fuse是Joplin必备
sudo nano /opt/microsoft/msedge/microsoft-edge
export LANGUAGE=ZH-CN.UTF-8
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/vinceliuice/grub2-themes.git
mkfs.msdos /dev/nvme0n1p1
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot
pacman -S linux amd-ucode
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=Archlinux
grub-mkconfig -o /boot/grub/grub.cfg