Last active
April 21, 2024 14:51
-
-
Save yejianfengblue/d30b8c72052992b0078db7b055d834ce to your computer and use it in GitHub Desktop.
arch_install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dd bs=4M status=progress oflag=sync if=archlinux-2024.04.01-x86_64.iso of=/dev/sda | |
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.31.200 | |
# setup China mirrors | |
systemctl stop reflector | |
# or systemctl mask reflector | |
echo 'Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch | |
Server = https://mirrors.aliyun.com/archlinux/$repo/os/$arch | |
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist | |
# enable parallel downloads | |
sed -i '/Color/s/^#//g' /etc/pacman.conf | |
sed -i '/ParallelDownloads/s/^#//g' /etc/pacman.conf | |
# check whether wlan is soft blocked | |
rfkill list wifi | |
rfkill unblock wifi | |
# connect wifi | |
iwctl | |
station wlan0 get-networks | |
station wlan0 scan | |
station wlan0 connect ME706 | |
# check ip | |
ip a | |
# partition | |
cfdisk /dev/nvme0n1 | |
mkfs.ext4 /dev/nvme0n1p5 | |
## XBOOTLDR, Linux extended boot | |
mkfs.fat -F 32 /dev/nvme0n1p8 | |
# execute install script | |
archinstall | |
## Mirrors | |
don't change | |
## Disk Configuration | |
select manual partitioning | |
ESP = EFI system partition, what is the fat32 partition with size 200+MB created by Windows | |
Because the ESP is too small, so I create another XBOOTLDR partition. | |
https://wiki.archlinux.org/title/systemd-boot | |
FS type | Mountpoint | Flags | |
fat32 | /efi | Boot, ESP | |
fat32 | /boot | Boot, ESP | |
block size is 512KB, if I want 100GB | |
start + 100*2*1024*1024 = end | |
this end = next start | |
## Bootloader | |
systemd-boot | |
## Audio | |
Pulseaudio | |
## Network configuration | |
NetworkManager | |
## Timezone | |
Asia/Shanghai | |
systemctl enable sshd | |
pacman -S --noconfirm alacritty exa git inetutils ntfs-3g net-tools neovim ttf-jetbrains-mono waybar zsh | |
chsh k | |
paru -S ttf-meslo-nerd-font-powerlevel10k ttf-font-awesome | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment