mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
175 字
1 分钟
Debian初始化配置
2026-04-28

由于Debian系统正常安装完成后在使用上还有诸多不便,现将其列举如下,同时计划使用AI配合编写脚本实现自动化配置。

1. 用户加入sudo用户组#

首先切换到root用户,执行下面的命令。

usermod -aG sudo 用户名

修改完后重启系统。 登录用户后查看是否修改成功,输入下面的命令,检查是否有sudo用户组。

groups

2. 更改软件源#

这一步可以参考中科大的Debian镜像源设置 Debian - USTC Mirror Help

修改/etc/apt/sources.list

# 默认注释了源码仓库,如有需要可自行取消注释
deb http://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
# backports 软件源,请按需启用
# deb http://mirrors.ustc.edu.cn/debian trixie-backports main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian trixie-backports main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security/ trixie-security main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian-security/ trixie-security main contrib non-free non-free-firmware

3. 系统和软件更新#

sudo apt-get update
sudo apt upgrade

4. 配置中文字体#

5. 如有需要,配置代理环境#

分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Debian初始化配置
https://github.com/WangKaiCode/TechBlog/src/content/posts/
作者
WangKaiCode
发布于
2026-04-28
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

目录