之前提到在 客制化 Redhat/CentOS 8 里面介绍了如何制作一个客制化的 CentOS/RHEL 镜像。现在来介绍一下如何客制化一个 Ubuntu 镜像。
https://github.com/PJ-Singh-001/Cubic
你需要准备一台 Ubuntu 18.04.5 以上的机器来安装 Cubic,基于 Ubuntu 18.04.5 的发行版也是可以的。
Bashapt-add-repository universe apt-add-repository ppa:cubic-wizard/release apt update apt install --no-install-recommends cubi
Cubic 是一个 GUI 程序,在完成简单的设置后,将会打开一个终端页面,在这里你可以对你提供的 Ubuntu ISO 镜像进行裁剪或是增加,或是预设一些启动脚本。相比 RedHat 的 Image Builder 服务,这里可以做的事情更多。
以下是我将 Ubuntu Desktop 处理为适用于服务器的 Ubuntu Server 的过程。
Bashadd-apt-repository universe add-apt-repository multiverse apt install openssh-server fio sg3-utils cadaver -y apt purge gnome-* gir1.2-* libgtk-* apt purge gpart evolution-* firefox firefox-* thunderbird thunderbird-* libreoffice-* apt autoremove --purge systemctl set-default multi-user.target passwd root
本文作者:XiaFan
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!