Skip to content
Fodor 配置指南

解决 c.UTF-8 en_US.UTF-8 zh_CN.UTF-8 locale 报错

sh
sudo dnf install glibc-langpack-en glibc-langpack-zh

启动并设置自启 ssh-server

sh
# 查看状态
sudo systemctl status sshd

# 启动
sudo systemctl start sshd

# 设置自启
sudo systemctl enable sshd

修改清华大学镜像源

https://mirrors.tuna.tsinghua.edu.cn/help/fedora

sh
sudo sed -e 's|^metalink=|#metalink=|g' \
    -e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora|g' \
    -i.bak \
    /etc/yum.repos.d/fedora.repo \
    /etc/yum.repos.d/fedora-updates.repo
sudo dnf clean all
sudo dnf makecache

启用 rpm fusion

https://rpmfusion.org

sh
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1

开启后检查依赖更新

sh
sudo dnf check update

设置 flatpak 镜像源

https://flathub.org/zh-Hans

sh
# https://mirrors.ustc.edu.cn/flathub 中国科学技术大学
# https://mirror.sjtu.edu.cn/flathub	上海交通大学
flatpak remote-modify flathub --url=https://mirrors.ustc.edu.cn/flathub
flatpak update

安装微信和 QQ

sh
flatpak install com.tencent.WeChat
flatpak install com.qq.QQ

添加 terra 软件仓库

https://terra.fyralabs.com

sh
dnf install --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release

启用 fedora copr

https://copr.fedorainfracloud.org

sh
# dnf copr enable <user>/<project>
# 例如安装 dhalucario/ly
# sudo dnf copr enable dhalucario/ly

设置不保留重复 bash 命令历史

sh
export HISTCONTROL=ignoreboth:erasedups

安装 helix

sh
sudo dnf install helix

配置 helix

sh
git clone https://github.com/Himavanta/helix-config.git ~/.config/helix

设置 sway 自启

~/.bashrc 或者 ~/.zshrc

sh
# If running from tty1 start sway
[ "$(tty)" = "/dev/tty1" ] && exec sway

配置 sway

默认配置文件路径在 /etc/sway/* , 可以在 /etc/sway/config.d/ 下新建一个 custom.conf , 然后在其中追加自定义配置

边框宽度以及窗口间距

边框宽度

使用 default_border pixel <int> 来设置,这个值会直接将平铺模式下的窗口 title 隐藏

窗口间距

使用 gaps inner <int> 来设置,这里还可以使用 outer 来进行更多细节设置,默认 inner 已经足够美观

边框颜色

颜色参数依序是:边框颜色 标题栏背景色 文本颜色 指示器颜色 子边框颜色,前三者是必须的。

# 定义颜色变量(可选)
set $base00 #282828
set $base0D #b16286

# 设置焦点窗口和非焦点窗口的颜色
client.focused $base0D $base00 #fbf1c7 #cc241d $base0D
client.unfocused #928374 $base00 #fbf1c7 #cc241d #83a598

配置 foot

如果只是调整字体样式,可以直接修改配置文件,默认配置文件路径 /etc/xdg/foot/foot.ini

字体修改

这里需要使用 curl 下载字体包,将字体文件移入字体目录,然后刷新字体缓存

sh
curl -LJO https://github.com/subframe7536/maple-font/releases/latest/download/MapleMono-Variable.zip
# 或
curl -LJO https://github.com/subframe7536/maple-font/releases/latest/download/MapleMono-NF-CN-unhinted.zip

安装 TUI 组件

登陆

ly: 这是一个轻量级的 TUI (ncurses-like) 显示管理器(即登录管理器)。它界面简洁美观,允许用户选择不同的桌面环境或窗口管理器进行登录,并且高度可定制。

lidm (Light Display Manager): 另一个轻量级的纯文本登录管理器,旨在完全在终端/TTY 中运行,不依赖 X.org 图形。它具有高度的可定制性,支持多种 init 系统(如 systemd、runit 等)。

网络

nmtui: 这是 NetworkManager 的官方 TUI 前端。它提供了一个直观的 curses 界面,可以方便地编辑、激活、停用网络连接,包括 Wi-Fi (支持密码输入)、有线连接、VPN 等。对于大多数使用 NetworkManager 作为后端服务的现代发行版来说,它是首选的 TUI 工具。

nmcli: 严格来说它是一个命令行界面 (CLI) 工具,但功能非常强大,常用于脚本编写或快速配置网络。虽然不是全屏 TUI 界面,但它与 nmtui 使用相同的后端,对于熟悉命令的用户来说非常高效。

iwctl: 如果你的系统使用 iwd (不同的无线后端守护程序) 而不是 NetworkManager,iwctl 是其主要的命令行/TUI 接口。

蓝牙

bluetuith: 这是一个现代的、基于 TUI 的蓝牙管理器,旨在替代传统的蓝牙管理器(如 blueman)。它提供了丰富的功能,包括连接/断开设备、配对、管理设备信息(如电量、信号强度)、文件传输(通过 OBEX)甚至媒体播放控制。它支持鼠标操作,界面友好。

bluetui: 另一个类似的 TUI 蓝牙管理工具,专注于简洁高效的设备配对、连接和电源管理。

资源监视器

btop: 性能更强大的监控工具,提供了美观的 ASCII 图形界面,可以实时显示 CPU 核心使用率、内存、磁盘 I/O、网络速度和进程列表,支持鼠标操作和高度自定义主题。

ls替代命令

lsd

shell
sudo dnf install lsd

# ~/.bashrc
alias ll="lsd -aX --tree --group-directories-first --depth"
# 示例:ll 2

文件管理

nnn

音频输入输出

alsamixer: 这是 Linux 音频(ALSA)最经典、最基础的 TUI 混音器。它几乎可以在任何 Linux 系统上使用,不依赖 PulseAudio 或 PipeWire。

截图录屏

终端多路复用与会话管理

tmux: 这是一个极其重要的工具。它允许你在一个物理终端会话中创建、控制和管理多个虚拟终端(会话、窗口和窗格)。最重要的是,即使你断开 SSH 连接,会话也会保留在服务器上,非常适合远程工作和后台任务。 screen: tmux 的前辈,功能类似,也是一个经典的终端多路复用器。

设备管理器,比如打印机

处理鼠标自然滚动

gitui

https://github.com/gitui-org/gitui

Release time: 12/4/2025, 8:08:48

Last updated:

⟣ Growing, with you. ⟢