ArchLinux 双系统安装及 Niri 桌面合成器环境配置
本文记录了在 Windows 环境下安装 Arch Linux 双系统及配置 Niri 桌面合成器过程中遇到的问题与解决方案。
安装
基础安装过程参考 Arch Linux 简明指南。关于 Windows 默认启动分区大小问题,若将 EFI 挂载到 /efi 路径,其他照原来的来即可,不需要扩大。需要注意的是在安装 Arch Linux 成功后,不要再使用 gdisk,否则会损坏 efi 盘里的内容,需要再用安装媒介走一下 grub-mkconfig -o /boot/grub/grub.cfg。
GRUB
主要配置主题和将 GRUB 配置为默认的启动器。GRUB 作为默认启动器,需要修改 BIOS 配置,将快速启动取消,然后将 GRUB 配置为默认。单硬盘双硬盘情况略有不同。
主题配置示例:
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME="/usr/share/grub/themes/Elegant-forest-window-grub-themes/left-dark-1080p/Elegant-forest-window-left-dark/theme.txt"
SDDM
默认 /etc 目录下没有配置文件,需要用 sddm --example-config > /etc/sddm.conf 来生成。主题使用的是 AUR 包里的 sddm-astronaut-theme。
[Theme]
# Current theme name
Current=sddm-astronaut-theme
应用安装
显卡驱动
如果有 Nvidia 显卡,需另行研究。AMD 显卡直接安装开源驱动。
sudo pacman -S mesa lib32-mesa xf86-video-amdgpu vulkan-radeon lib32-vulkan-radeon
系统组件
- pipewire audio/video server (必装)
- pipewire-alsa (pipewire alsa client, 必装)
- pipewire-audio (pipewire audio client, 必装)
- pipewire-jack (pipewire jack client, 必装)
- pipewire-pulse (pipewire pulseaudio client, 必装)
- gst-plugin-pipewire (pipewire gstreamer client, 必装)
- wireplumber (pipewire session manager, 必装)
- pavucontrol (pulseaudio volume control, 必装)
- pamixer (pulseaudio cli mixer, 必装)
- networkmanager (network manager, 必装)
- network-manager-applet (network manager system tray utility, 必装)
- bluez (bluetooth protocol stack, 必装)
- bluez-utils (bluetooth utility cli, 必装)
- blueman (bluetooth manager gui, 必装)
- brightnessctl (screen brightness control, 必装)
- power-profiles-daemon (额外安装)


