Debian 12 更换为国内镜像源教程
国内镜像源地址
Debian 清华源:https://mirrors.tuna.tsinghua.edu.cn/help/debian/
Debian 中科大:https://mirrors.ustc.edu.cn/help/debian.html
Debian 阿里云:https://developer.aliyun.com/mirror/debian
Debian 腾讯云:https://mirrors.cloud.tencent.com/help/debian.html
Debian12 更换为清华软件源
清华源教程:https://mirrors.ustc.edu.cn/help/debian.html
编辑源文件:vi /etc/apt/sources.list
命令行更新:apt update
# 默认注释了源码仓库,如有需要可自行取消注释
deb http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
# backports 软件源,请按需启用
# deb http://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
Debian 12 命令行
Debian 解压缩安装程序:tar zxpf
Debian 安装 deb 文件:sudo dpkg -i
Debian 安装 ssh-server:
apt install openssh-server
apt install vim
sudo vim /etc/ssh/sshd_config # 修改为允许root用户登录
PermitRootLogin yes
Debian 安装 VM-Tools:
sudo apt-get autoremove open-vm-tools
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop