Sim*_*ley 14 development ubiquity
我正在运行每日 Ubuntu 映像 (Yakkety Yak),我想构建自己的 Ubuntu 映像(现在可以替代,但实时映像的说明也有帮助),同时添加一些 PPA。Ubuntu Community Help wiki 上有几个指南,但它们似乎都已过时。我也尝试阅读 Ubuntu和Debian 的代码来执行此操作,但我没有确切地看到它们是如何使用的。
如何在不安装古老的 Trusty Tahr 的情况下执行此操作?
使用Respin,它是Remastersys Packages的当前分支,[源代码] 3可用于 Ubuntu 14.04 到 16.04 版本的 Ubuntu。既然 Yakkety 已被冻结,我希望也能尽快提供相应的软件包。
下面是我在Xenial(16.04)中安装respin的过程
Respin 依赖于 xresprobe 和 isolinux 在存储库中都不可用,因此我们必须添加几个 PPA,更新包列表并安装它们。
sudo add-apt-repository ppa:sergiomejia666/respin
sudo add-apt-repository ppa:sergiomejia666/xresprobe
sudo apt install xresprobe
sudo apt install respin
Run Code Online (Sandbox Code Playgroud)
进一步的研究表明我们还需要isolinux
sudo apt install isolinux
Run Code Online (Sandbox Code Playgroud)
我决定使用实时系统(脚本也提供了其他选项,但带有安装程序的实时系统对我来说似乎更有用)respin不带任何参数将提供以下输出:
Examples:
sudo respin backup (to make a livecd/dvd backup of your system)
sudo respin backup custom.iso
(to make a livecd/dvd backup and call the iso custom.iso)
sudo respin clean (to clean up temporary files of respin)
sudo respin dist (to make a distributable livecd/dvd of your system)
sudo respin dist cdfs
(to make a distributable livecd/dvd filesystem only)
sudo respin dist iso custom.iso
(to make a distributable iso named custom.iso but only
if the cdfs is already present)
cdfs and iso options should only be used if you wish to modify something on the
cd before the iso is created. An example of this would be to modify the isolinux
portion of the livecd/dvd
Run Code Online (Sandbox Code Playgroud)
接下来我们需要设置我们的重新旋转
sudo respin dist cdfs (制作可分发的 livecd/dvd 文件系统),我们将使用它来创建自定义 ISO
这将是一个相当耗时的过程(ETA 取决于硬件)
此时我们可以根据自己的喜好修改if live media的isolinux部分。
现在创建 ISO
sudo respin dist iso custom.iso
Run Code Online (Sandbox Code Playgroud)
笔记:
由于我的 16.04 系统有许多添加/修改和几个 VM,因此生成的映像非常大。
Making custom.iso a hybrid iso
isohybrid: Warning: more than 1024 cylinders: 2547
isohybrid: Not all BIOSes will be able to boot this device
Creating custom.iso.md5 in /home/respin/respin
/home/respin/respin/custom.iso which is 2.5G in size is ready to be burned or tested in a virtual machine.
Run Code Online (Sandbox Code Playgroud)
启动 Startup disk Creator 并选择您的 custom.iso 文件和目标位置。(我使用了 4GB 闪存驱动器)
custom.iso 文件将在 /home/respin/respin 目录中找到。
生成的图像按预期工作。Yakkety 的障碍是,在撰写本文时,我找不到安装候选对象,xresprobe也许您可以从源代码构建或等待。我个人发现大多数开发人员似乎都专注于 LTS 版本。这对我来说很有意义,因为在 9 个月的发布上花费大量精力似乎不是很有效。
编辑:可以在此处找到最新发布的适用于 Ubuntu 的 respin deb 包。