安裝 CachyOS
Linux
CachyOS
CachyOS 安裝記錄(Setup guide)
準備
到 CachyOS 的網站下載 iso(Desktop Edition)。
準備至少 4GB 的隨身碟(目前 iso 檔約 2.8 GB)當安裝碟。因為 CachyOS 不支援 Ventoy,所以得用傳統方法如 dd
或 Rufus、balenaEtcher 等工具做安裝碟。
安裝
從開機碟啟動後會直接進入 KDE 的 Live 環境。如果使用 WIFI 先點右下角的工作列連上網路。從自動開啟的 CachyOS Hello 可以啟動安裝程式,啟動時會詢問要使用哪個開機引導程式(如 GRUB、systemd-boot)。安裝程式是 Calamares,可以選擇要裝的桌面環境等。
安裝後設定
有兩件事要做:裝自己需要的東西,以及完善中文化體驗。
安裝軟體
CachyOS 用自己維護的 Repo。KDE 裝好後附了 CachyOS Package Installer 和 Octopi 兩種圖形化工具,文字介面則附了 paru 方便從 AUR 裝額外的套件。
完善中文化
裝系統時如果語系選繁體中文就會裝好字體,但還得自己裝輸入法和作完字體設定。
中文輸入法
一般裝 fcitx5-im
和 fcitx5-chewing
即可,然後到系統設定→鍵盤→虛擬鍵盤選「Fcitx 5 Wayland 啟動器」,再到輸入法按「新增輸入法」就會看到新酷音,點擊「新增」後就可以打中文了。
除非……不行?Wayland 跟 Fcitx5 不太合。把 ~/.gtkrc-2.0``~/.config/gtk-3.0/settings.ini
和 ~/.config/gtk-4.0/settings.ini
在[Settings]
底下加上gtk-im-module="fcitx"
,大概就能在這些 GTK 應用程式裡打中文了。詳情見 Wiki。
中文字型
在系統設定→字型裡按「調整所有字型」,把「字型」打勾選 Noto Sans CJK TC,字型樣式選 Medium,系統程式裡的字看起來就會好很多。
但其他地方呢?瀏覽器、終端機(如果有中文)、登入畫面的中文字都沒變。
應用程式使用的字型
編輯 ~/.config/fontconfig/fonts.conf
,在 <fontconfig>
和 </fontconfig>
之間加上以下設定:
<match target="pattern">
<test name="family">
<string>system-ui</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>sans-serif</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans</string>
<string>Noto Sans CJK TC</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
<string>Noto Serif CJK TC</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans Mono</string>
<string>Noto Sans Mono CJK TC</string>
<string>Noto Color Emoji</string>
</edit>
</match>
然後 fc-cache -fv
更新快取重開程式就會看到不同。
登入畫面
編輯 /etc/sddm.conf
,加上一行 Font=Noto Sans CJK TC
就完成了。