如果你没有浏览器

可能不方便输入命令,那么可以输入 sudo systemctl start sshd 启动 SSH 服务,然后使用 ip --brief addr 查看 IP 地址。

在其他设备上使用 ssh 用户名@IP地址 登录。

换源

如果在安装时使用 ArchInstall 选择了源,那么更改也会存到新系统中。你也可以使用 reflector 来更换源。

1
2
sudo pacman -S reflector
sudo reflector --verbose --country China --sort rate --save /etc/pacman.d/mirrorlist

显卡驱动

仅限 Nvidia 显卡用户。另外,Nvidia 对于 Wayland 的兼容不佳,所以尽可能选择 X11 相关的桌面环境。

1
sudo pacman -S nvidia

字体

1
2
3
4
# 中文字体
sudo pacman -S ttf-sarasa-gothic
# Nerd 字体 (zsh主题需要)
sudo pacman -S ttf-jetbrains-mono-nerd

Git

1
sudo pacman -S git

Goproxy

可以使用 七牛云GoProxy.cn GoProxy.io 镜像加速。

通过 sudo vim /etc/environment 向环境变量中添加以下内容。

/etc/environment
1
2
3
# GoProxy
GO111MODULE=on
GOPROXY=https://goproxy.cn

Pacman/Yay 加速编译

通过 sudo vim /etc/makepkg.conf,删除 MAKEFLAGS=j[N] 前面的注释标记。

/etc/makepkg.conf
1
MAKEFLAGS="-j8"

启用蓝牙

1
sudo systemctl enable --now bluetooth

Yay

需要先安装 Git。

1
2
3
4
5
git clone http://aur.archlinux.org/yay.git
cd yay
GOPROXY=http://goproxy.cn makepkg -si
cd ..
rm -rf yay

浏览器

1
2
3
4
# Microsoft Edge
yay -S microsoft-edge-dev-bin
# Google Chrome
yay -S google-chrome

VS Code

1
yay -S visual-studio-code-bin

V2rayA

需要先安装浏览器,或者局域网下其他设备访问本设备的 2017 端口的 Web 控制台。

1
2
yay -S v2raya-bin
sudo systemctl enable --now v2raya

Zsh

zsh-theme-powerlevel10k 主题需要 Nerd 字体。

1
2
3
4
yay -S zsh zsh-completions zsh-autosuggestions zsh-syntax-highlighting zsh-theme-powerlevel10k-git
chsh
# 输入密码
/bin/zsh

编辑~/.zshrc

~/.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install

# The following lines were added by compinstall
autoload -Uz compinit
compinit
# End of lines added by compinstall

source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme

bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey '^H' backward-kill-word
bindkey '^[[3~' delete-char

zstyle ':completion:*' menu select

alias ls='ls --color=auto'
alias ll='ls -alFh --time-style=iso'
alias ip='ip --color=auto'
alias grep='grep --color=auto'

输入法

如果你使用 Wayland,操作可能不同,可以参照 Fcitx5 - Arch Linux 中文维基

1
yay -S fcitx5-im fcitx5-chinese-addons

随后,通过 sudo vim /etc/environment 添加以下内容:

/etc/environment
1
2
3
4
5
6
7
# Fcitx5
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
INPUT_METHOD=fcitx
GLFW_IM_MODULE=ibus

可以将fcitx5-chinese-addons替换为中州韵和 Rime。

继续优化其他体验

可以参照 Arch Linux 易用性及美化 继续优化体验。