建立我自己的Ubuntu ISO

西蒙·奎格利

我正在运行每日的Ubuntu映像(Yakkety Yak),我想构建自己的Ubuntu映像(现在可以替代,但实时映像的说明也有帮助),同时添加了一些PPA。Ubuntu社区帮助Wiki上有几本指南,但它们似乎都已过时。我也曾尝试阅读UbuntuDebian的代码来做到这一点,但是我没有确切地知道它们是如何使用的。

我如何在不安装古老的Trusty Tahr的情况下做到这一点?

怪胎长老

使用Respin(它是Remastersys软件包的最新分支),[源代码] 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

进一步的研究表明我们也需要isolinux

sudo apt install isolinux

我决定使用实时系统(脚本也提供其他选项,但是带有安装程序的实时系统对我来说更有用),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

接下来,我们需要设置我们的旋转

sudo respin dist cdfs (以创建可分发的livecd / dvd文件系统),我们将使用它来创建自定义ISO

这将是一个非常耗时的过程(ETA取决于硬件)

此时,我们可以根据自己的喜好修改live媒体的isolinux部分。

现在用于创建ISO

sudo respin dist iso custom.iso

笔记:

由于我的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.

启动启动盘创建器,然后选择您的custom.iso文件和目标位置。(我使用了4GB的闪存驱动器)

custom.iso文件位于/ home / respin / respin目录中。

生成的图像按预期工作。Yakkety的阻止因素是,在撰写本文时,我找不到的安装候选人。xresprobe也许您可以从源代码构建或等待。我个人发现,大多数开发人员似乎都专注于LTS版本。这对我来说很有意义,因为在9个月的发行版上花费大量精力似乎并不十分有效。

编辑:可在此处找到Ubuntu的最新发布的respin deb软件包

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章