Arch Linux 配置备忘录(方便重装
系统安装
老一套,关闭 Secure Boot 后U盘启动
连接网络
由于我用的是笔记本,所以用 iwctl 连接 WiFi:
1 | iwctl # 进入 iwd 命令行 |
使用 ping
测试网络是否可用:
1 | ping -c4 1.2.4.8 |
更新系统时间
1 | timedatectl set-ntp true |
更换软件镜像源
使用 vim
修改 /etc/pacman.d/mirrorlist
(别问我为啥不用reflector
,问就自己去试试)
1 | Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch |
分区
安装基本系统
老一套用pacstrap
安装 base:
1 | pacstrap /mnt base base-devel linux linux-firmware vim sudo zsh |
基本配置
生成 fstab:
1 | genfstab -U /mnt >> /mnt/etc/fstab |
chroot 到新系统下:
1 | arch-chroot /mnt |
更改时区:
1 | ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
设置主机名:
1 | echo YOURHOSTNAME > /etc/hostname |
修改 /etc/hosts
:
1 | printf ' |
修改语言:
1 | echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen |
安装微码:
1 | pacman -S intel-ucode # Intel |
安装网络管理:
1 | pacman -S networkmanager dhcpcd |
音频驱动:
1 | pacman -S alsa-utils sof-firmware |
用户/密码:
1 | passwd root |
配置GURB
安装 GRUB:
1 | pacman -S grub efibootmgr os-prober |
生成引导:
1 | grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ARCH |
安装 KDE Plasma
安装字体:
1 | pacman -S noto-fonts-cjk noto-fonts-emoji |
安装KDE和Fcitx5:
1 | pacman -S sddm plasma-mate konsole dolphin fcitx5-im fcitx5-chinese-addons fcitx5-material-color |
完成安装
1 | exit # 退出chroot |
KDE 配置
字体 vim :
1 | <?xml version="1.0"?> |
先写到这,有空再加