这里记录 Arch Linux 使用过程中遇到过的问题
pacman -S intel-ucode os-prober grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
os-prober:探测其他操作系统
dd if=/dev/zero of=/swapfile bs=1G count=8
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap defaults 0 0' >> /etc/fstab
这里用 fallocate -l 8G /swapfile 创建交换文件时 swapon 会报错
sudo pacman -S ntfs-3g
ntfs-3g:提供ntfs文件系统的读写功能
systemctl enable NetworkManager
systemctl enable bluetooth
安装好kde后这两个服务并没有被设置为开机自启动
yay -U xxx.pacman
编辑/etc/hosts,添加如下内容
199.232.68.133 githubusercontent.com
199.232.68.133 raw.githubusercontent.com
140.82.114.4 github.com
获取域名所对应的ip地址ipaddress.com
缺少相应的可选依赖,使用 pacman -Si
查看可选依赖并安装
packagekit-qt5: to manage packages from Arch Linux repositories flatpak: Flatpak packages support fwupd: firmware update support
sudo pacman -S packagekit-qt5 flatpak fwupd
sudo pacman -S wps-office-cn wps-office-mime-cn wps-office-mui-zh-cn ttf-wps-fonts
# 带nerd font补丁的终端等宽字体
sudo pacman -S nerd-fonts-meslo-lg
# noto 全系字体
sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji
# 带nerd font补丁的fira code
sudo pacman -S nerd-fonts-fira-code
修改/usr/share/applications/qq.desktop
Exec=qq --no-sandbox %U
-
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
zsh-autosuggestions 自动补全
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
编辑配置文件
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
sudo pacman -S htop