175 字
1 分钟
Debian初始化配置
由于Debian系统正常安装完成后在使用上还有诸多不便,现将其列举如下,同时计划使用AI配合编写脚本实现自动化配置。
1. 用户加入sudo用户组
首先切换到root用户,执行下面的命令。
usermod -aG sudo 用户名修改完后重启系统。 登录用户后查看是否修改成功,输入下面的命令,检查是否有sudo用户组。
groups2. 更改软件源
这一步可以参考中科大的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-firmwaredeb 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-firmware3. 系统和软件更新
sudo apt-get update
sudo apt upgrade4. 配置中文字体
5. 如有需要,配置代理环境
分享
如果这篇文章对你有帮助,欢迎分享给更多人!
部分信息可能已经过时
相关文章 智能推荐





