以下内容均可在ArchWiki找到,本人仅作针对自己使用整理

livecd联网

先用命令 ip link查看网络接口:

1
ip link

查看到我的机器的无线网络接口是wlan0(不同的机器可能名字不同),这里以我的无线网络接口wlan0为例。

默认是关闭的状态,需要先开启它,而开启它之前还需要先激活它(即取消禁用,我这台机器默认是blockeded,禁用的)。因此使用以下命令:

1
2
3
4
5
6
7
8
rfkill unblock wifi    #取消禁用wifi设备
ip link set wlan0 up #开启wlan0
iwctl #进入交互式提示符(interactive prompt),配置并连接到互联网。
station wlan0 scan
station wlan0 get-networks
station wlan0 connect <network name> #然后会让你输入密码
station wlan0 show
exit  # 回到命令行

尝试ping百度(www.baidu.com)可以ping通,已经连接上了互联网。

SDDM

设置微风主题hidpi

编辑/etc/sddm.conf.d/
General补充

1
2
3
[General]

GreeterEnvironment=QT_SCREEN_SCALE_FACTORS=1.5,QT_FONT_DPI=144

显示中文

在 [service] 节中设置环境:

/usr/lib/systemd/system/sddm.service

1
2
[Service]
Environment=LANG=zh_CN.UTF-8

kde密码库

安装,并设置密码为空以便自动登录解锁密码库连接wifi

1
sudo pacman -S kwalletmanager

设置中文

首先设置一个英文的全局 locale。这并不是必须的,只是为了防止 TTY 中出现豆腐块:

/etc/locale.conf

1
LANG=en_US.UTF-8

安装中文字体

1
sudo pacman -S ttf-roboto noto-fonts noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts ttf-dejavu

修改
~/.config/fontconfig/fonts.conf 或 /etc/fonts/local.conf
改为

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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule
translate="no"
selector="/fontconfig/*[not(self::description)]"
/>
</its:rules>

<description>Android Font Config</description>

<!-- Font directory list -->

<dir>/usr/share/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir prefix="xdg">fonts</dir>
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>

<!-- 关闭内嵌点阵字体 -->
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>

<!-- 英文默认字体使用 Roboto 和 Noto Serif ,终端使用 DejaVu Sans Mono. -->
<match>
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Roboto</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>DejaVu Sans Mono</string>
</edit>
</match>

<!-- 中文默认字体使用思源黑体和思源宋体,不使用 Noto Sans CJK SC 是因为这个字体会在特定情况下显示片假字. -->
<match>
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Serif CN</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Sans CN</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>

<!-- Windows & Linux Chinese fonts. -->
<!-- 把所有常见的中文字体映射到思源黑体和思源宋体,这样当这些字体未安装时会使用思源黑体和思源宋体.
解决特定程序指定使用某字体,并且在字体不存在情况下不会使用fallback字体导致中文显示不正常的情况. -->
<match target="pattern">
<test qual="any" name="family">
<string>WenQuanYi Zen Hei</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>WenQuanYi Micro Hei</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>WenQuanYi Micro Hei Light</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Microsoft YaHei</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>SimHei</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>SimSun</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Serif CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>SimSun-18030</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Serif CN</string>
</edit>
</match>

<!-- Load local system customization file -->
<include ignore_missing="yes">conf.d</include>

<!-- Font cache directory list -->

<cachedir>/var/cache/fontconfig</cachedir>
<cachedir prefix="xdg">fontconfig</cachedir>
<!-- the following element will be removed in the future -->
<cachedir>~/.fontconfig</cachedir>

<config>
<!-- Rescan configuration every 30 seconds when FcFontSetList is called -->
<rescan>
<int>30</int>
</rescan>
</config>
</fontconfig>

中文输入法

1
sudo pacman -S fcitx5-im fcitx5-chinese-addons fcitx5-pinyin-zhwiki

环境变量/etc/environment添加

1
XMODIFIERS=@im=fcitx

软件中文

firefox

1
sudo pacman -S firefox firefox-i18n-zh-cn

libreoffice

fresh版本

1
sudo pacman -S libreoffice-fresh-zh-cn libreoffice-fresh

still版本

1
sudo pacman -S libreoffice-still-zh-cn libreoffice-still

配置蓝牙

1
2
sudo pacman -S bluez bluez-utils bluez-obex bluedevil
sudo systemctl enable bluetooth

电源管理方案

1
sudo pacman -S power-profiles-daemon

plymouth开机动画

1
2
sudo pacman -S plymouth
sudo nano /etc/mkinitcpio.conf

HOOKSbase udev 后添加plymouth (视情况)

1
sudo mkinitcpio -P

以下视情况,文件名不一定为arch.conf

1
sudo nano /boot/loader/entries/arch.conf

将这些参数附加到选项行:

1
splash quiet loglevel=3

例如
options cryptdevice=PARTUUID=xxxxxxxxx:root root=/dev/mapper/root zswap.enabled=0 rw rootfstype=ext4 splash quiet loglevel=3