隨着年紀的增長,不可避免的越來越保守。所以打算試試保固期更長的 AlmaLinux 來替換隔兩年就要升級的 Fedora。
安裝 AlmaLinux 9 與 Windows 10 雙系統
製作安裝盤
curl -O https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-9 gpg --import RPM-GPG-KEY-AlmaLinux-9 curl -O https://repo.almalinux.org/almalinux/9/isos/x86_64/CHECKSUM gpg --verify CHECKSUM sha256sum AlmaLinux-9.4-x86_64-Live-XFCE.iso sudo fdisk -l sudo dd if=./AlmaLinux-9.4-x86_64-Live-XFCE.iso of=/dev/sdb status=progress conv=fsync bs=4M
安装 AlmaLinux 9
此段從略。大概流程是先到 Windows 中使用磁盤管理工具釋放出安裝 AlmaLinux 的磁盤空間。建議 100 GB 以上吧。然後重啟電腦進入 BIOS (一般是在屏幕出現品牌 Logo 時按 F2 或 F10) 將「從優盤啟動」的優先級提到「從硬盤啟動」前。然後插入優盤啟動就進入 AlmaLinux 9 了,選擇其中的安裝到硬盤即可。
AlmaLinux 9 with Xfce 小撇步
Flatpak
使用 Flatpak 來安裝常用的軟件可以避免依賴出現問題,而且軟件更新速度也更快。下面是我推薦的一些軟件:
| Application | Flatpak ID | Description |
|---|---|---|
| Delta Chat | chat.delta.desktop |
基於 Email 的加密聊天 |
| Decoder | com.belmoussaoui.Decoder |
二維碼生產與掃描 |
| Flameshot | org.flameshot.Flameshot |
截圖(在鍵盤快捷方式里設置 flatpak run org.flameshot.Flameshot gui 可以一鍵截圖) |
| calibre | com.calibre_ebook.calibre |
電子書管理與轉換 |
| GoldenDict-ng | io.github.xiaoyifang.goldendict_ng |
字典 |
| GIMP | org.gimp.GIMP |
圖片修改 |
| digiKam | org.kde.digikam |
照片管理 |
| KCalc | org.kde.kcalc |
計算器 |
| Kdenlive | org.kde.kdenlive |
視頻剪輯,也可以用來簡單的生成字幕文件,不用學習 Aegisub 的快捷鍵 |
| qBittorrent | org.qbittorrent.qBittorrent |
種子下載 |
| VLC | org.videolan.VLC |
音視頻播放器 |
| Fcitx5 | org.fcitx.Fcitx5 |
|
| Fcitx5 中文擴展 | org.fcitx.Fcitx5.Addon.ChineseAddons |
|
| Fcitx5 RIME | org.fcitx.Fcitx5.Addon.Rime |
|
| Shortwave | de.haeckerfelix.Shortwave |
網絡收音機 |
#鎖定 Flameshot 當前版本以阻止自動升級 #因爲對 x11 的支援即將移除,當前版本已經需要在設置裏啓用 x11 回退才能正常截圖 flatpak mask org.flameshot.Flameshot
AppImage
AppImage 類軟件很像 Windows 里的綠色軟件,無需安裝(有時需要在文件屬性里勾上「可執行」),雙擊既可運行。
- Beekeeper-Studio 數據庫客戶端
- IPTVnator 在線電視播放器
- LibreCAD CAD
- Simple mind map 開源腦圖(節目僅支持簡體中文)
其他軟件
Firefox ESR 作為我的主力瀏覽器一直是通過到官網直接下載,然後解壓即可運行的。值得一提的是,截至 2024 年 11 月,Firefox 官網以及賬號書籤同步系統都未被牆。Firefox 的多賬戶玩法請參考 Profile Manager - Create, remove or switch Firefox profiles. (firefox -P)
有時需要 Google Chrome 來救急。安裝方法如下:
#新建文件 sudo nano /etc/yum.repos.d/google-chrome.repo #內容如下 [google-chrome] name=google-chrome baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl.google.com/linux/linux_signing_key.pub #更新並安裝 Chrome sudo dnf update sudo dnf install google-chrome-stable #如果需要給 dnf 添加代理,可以在 sudo nano /etc/dnf/dnf.conf #的結尾添加一行 proxy=socks5://127.0.0.1:4408 #查看 Chrome 版本 google-chrome --version
如果想略過更新,可以將上面 repo 文件中的 enabled 值改為 0 即可。
Bugs
偶爾地,從 Windows 10 關機後再啟動 AlmaLinux,Wi-Fi會停止工作。我也不知道如何永久解決此問題,但是可以通過再次進入 Windows 10,從右下角快捷方式里禁用 Wi-Fi,再打開 AlmaLinux,Wi-Fi 就正常工作了。這個 Bug 並不常出現。
似乎沒有藍牙配置的圖形界面,但是可以通過命令行完成:
bluetoothctl power on scan on devices agent on pair FE:B6:96:37:5E:EF trust FE:B6:96:37:5E:EF connect FE:B6:96:37:5E:EF exit #其中要連接的藍牙設備是 Device FE:B6:96:37:5E:EF
我的使用經驗是,藍牙鼠標配置一次後,之後每次重啟都會自動連接。但是我的藍牙音箱並不會,需要每次開機都手動連。可以寫一個腳本 /home/42/scripts/connect_bluetooth.py
#!/usr/bin/env python3
import subprocess
def connect_bluetooth(device_mac):
try:
# Start bluetoothctl and feed it commands
process = subprocess.Popen(['bluetoothctl'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
commands = f"connect {device_mac}\nexit\n"
process.communicate(commands)
print(f"Attempted to connect to {device_mac}. Check if the device is connected.")
except Exception as e:
print(f"An error occurred: {e}")
if __name__ == "__main__":
# Replace with your device MAC address
device_mac = "6C:5C:DD:3B:D0:DD"
connect_bluetooth(device_mac)
然後在鍵盤配置中添加一個快捷方式 /usr/bin/python3 /home/42/scripts/connect_bluetooth.py 我設置的 Super + B。日語鍵盤短短的空格鍵旁有兩個對於中文輸入法無用的按鍵,我給設置成音量控制鍵了:pactl set-sink-volume @DEFAULT_SINK@ -5% 是音量 -5 配到了左邊的 Muhenkan 鍵, pactl set-sink-volume @DEFAULT_SINK@ +2% 是音量 +2 配到了右邊的 Henkan 鍵。
本文更新於 2026/07/19。