267 字
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. 如有需要,配置代理环境
分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
换条路线
从其他文章中稳定抽取
最后更新于 ,距今已过 183 天
部分内容可能已过时