Debian Minimal的安装与配置可以分为几个主要步骤:下载ISO镜像、创建可启动介质、启动系统、选择安装选项、配置系统、安装软件包以及更新系统。以下是详细的步骤:
/etc/network/interfaces
文件,配置静态IP地址、网关和DNS服务器。例如:auto ens32
allow-hotplug ens32
iface ens32 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
sudo systemctl restart networking
/etc/apt/sources.list
文件,添加合适的软件源。例如,使用清华大学的镜像源:deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free non-free-firmwaredeb-src https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free non-free-firmwaredeb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free non-free-firmwaredeb-src https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free non-free-firmwaredeb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports main contrib non-free non-free-firmwaredeb-src https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports main contrib non-free non-free-firmwaredeb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmwaredeb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
sudo apt update
sudo apt install openssh-server
/boot/grub/grub.cfg
文件,或者使用grub-mkconfig
命令生成新的配置文件:sudo grub-mkconfig -o /boot/grub/grub.cfg
通过以上步骤,你可以成功安装并配置Debian Minimal系统。根据具体需求,你可以进一步自定义系统配置和安装额外的软件包。