Ubuntu Minimal 通常指最小化安装(只含最基础系统),常见有三种场景:
1️⃣ 安装 Ubuntu Minimal(最小系统)
2️⃣ 在已有 Ubuntu 上精简配置
3️⃣ 使用 Minimal ISO 安装
下面按最常见方式一步步说明。
适用于全新安装,得到一个非常干净的系统。
步骤:
下载 Minimal ISO
制作启动盘
# 假设 USB 为 /dev/sdb
sudo dd if=ubuntu-minimal.iso of=/dev/sdb bs=4M status=progress
安装过程
sudo apt update
sudo apt upgrade -y
ip a
编辑配置:
sudo nano /etc/netplan/*.yaml
示例(DHCP):
network:
version: 2
ethernets:
eth0:
dhcp4: true
应用:
sudo netplan apply
sudo apt install -y \
vim \
curl \
wget \
git \
net-tools \
iputils-ping \
software-properties-common
sudo adduser yourname
sudo usermod -aG sudo yourname
sudo apt install ubuntu-desktop-minimal
sudo apt install xfce4
启动桌面:
startx
如果你已经装了 Ubuntu,可以手动精简:
sudo apt purge ubuntu-desktop gnome-shell
sudo apt autoremove --purge
sudo systemctl disable bluetooth
sudo systemctl disable cups
| 用途 | 建议 |
|---|---|
| 服务器 | 不装 GUI |
| Docker 主机 | 只装基础系统 |
| 开发环境 | 加 zsh / tmux |
| 嵌入式 | 使用 minimal + 裁剪内核 |
✅ 可以,随时 apt install
如果你愿意,可以告诉我:
我可以给你完全定制化的配置方案。