构建我自己的Ubuntu ISO

我正在运行每日Ubuntu映像(Yakkety Yak),我想构建自己的Ubuntu映像(现在替换,但实时映像的说明也有帮助),同时添加了一些PPA。 Ubuntu社区帮助wiki上有几个指南,但它们似乎都已经过时了。 我也尝试过阅读Ubuntu Debian的代码,但是我没有看到它们是如何被使用的。

如果不安装古老的Trusty Tahr,我该怎么做?

使用Respin是Remastersys包的当前分支, 源代码可用于Ubuntu 14.04到16.04版本的Ubuntu。 既然Yakkety被冻结了,我希望很快就会有一个包装。

以下是我用于在Xenial中安装respin的过程(16.04)

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 

接下来我们需要设置我们的respin

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

这将是一个相当耗时的过程(ETA依赖于硬件)

此时我们可以根据自己的喜好修改现场媒体的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. 

启动Startup disk Creator并选择custom.iso文件和目标位置。(我使用的是4GB闪存驱动器)

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

生成的图像按预期工作。 Yakkety的限制因素是,在此问题上,我找不到xresprobe的安装候选者。也许你可以从源代码构建或等待。 就个人而言,我发现大多数开发人员似乎都专注于LTS版本。 这对我来说很有意义,因为在9个月的发布中花费大量精力似乎并不十分有效。

编辑:可以在这里找到最新发布的Ubuntu respin deb软件包。

使用Systembackup

可以使用Systemback实用程序备份和制作实时iso文件,您可以从其PPA安装它,它与remastersys (不再维护)的工作方式相同,我认为。 ubuntu 14.04也需要一个名为unionfs-fuse的额外软件包。 它还可以创建实时USB图像。 您可以在iso中添加用户文件,然后可以将其安装在其他计算机上,但其他计算机可能具有不同的图形等,因此请确保您没有卸载预安装的xorgvideo包。 所以你需要的是添加ppa并安装

 sudo add-apt-repository ppa:nemh/systemback sudo apt-get update && sudo apt-get install systemback unionfs-fuse 

创建iso文件,创建live usb并在同一台机器或不同的机器上启动它后,你会发现安装了systemback。

在此处输入图像描述Systemback

使用remastersys

(我不确定今天是否支持)

  sudo add-apt-repository ppa:kranich/remastersys sudo apt-get update 

遵循指南gui说明。(最好制作当前系统的iso副本)

使用Ubuntu Builder

 sudo add-apt-repository ppa:f-muriana/ubuntu-builder sudo apt-get update && sudo apt-get install ubuntu-builder 

遵循gui指示。

使用Pinguybuilder

从这里下载.deb文件并使用dpkg或gedbi来安装它。它是新型的remastersys。