Ubuntu14.04 使用respin 将当前系统制作成 LIve CD

    在开发过程中,由于要使用各种工控机,此时需要在各种工控机上安装系统并重新安装配置 ROS环境,编译相关的文件,再次将尝试将当前的Ubuntu环镜像做成一个镜像,期待能免去繁琐的安装。

Docker 使用场景
问了我们组大神,Docker适用于将当前的环境打包成一个镜像,并在新的系统上运行,相当于新建了一个虚拟机。但是并不适合我们项目,因为工控机新的系统上是没有系统的,再说工控机也没有那个多资源进行虚拟机的运转。

Respin 软件安装

     由于2018年6月4日,微软受够了github,所以respin团队已经从github跑路到gitlab, 留下了闪亮的背影, Just say no to M$!
这里写图片描述

原地址: https://github.com/ch1x0r/LinuxRespin
新地址: https://gitlab.com/remastersys/LinuxRespin

官方安装

在新的官网地址中记录了安装的方法 https://gitlab.com/remastersys/respin
这里写图片描述

sudo apt-add-repository ppa:sergiomejia666/respin
sudo apt-get update
sudo apt-get install respin
sudo respin

遇到的问题 1 apt-add-repository 找不到

要先安装python-software-properties 才能使用 add-apt-repository
否则会显示“command not found”
安装方法:

    sudo apt-get install python-software-properties
    sudo apt-get install software-properties-common

这样就能使用 add-apt-repository 了。

遇到的问题2 respin 依赖太多不能安装

再此推荐 能自动处理依赖生成解决方案的神器 aptitude

aptitude 与 apt-get 一样,是 Debian 及其衍生系统中功能极其强大的包管理工具基于大名鼎鼎的APT机制, 整合了 dselect 和 apt-get 的所有功能, 并提供的更多特性,特别是在依赖关系处理上。。与 apt-get 不同的是,aptitude在处理依赖问题上更佳一些。举例来说,aptitude在删除一个包时,会同时删除本身所依赖的包。这样,系统中不会残留无用的包,整个系统更为干净。
sudo apt-get install aptitude # 安装aptitude
sudo apitude install respin   # 使用aptitude安装 respin

安装过程中,会有处理依赖的解决方案 [y\n\c], 选择y会使用此方法解决,选择 n 会提供另外一种方法,如果一种方法不行,再试一次就好了

deepyu@deepyu-ThinkPad-T440p:~$ sudo respin

Usage of respin 2.0.6 is as follows:
   sudo respin backup|clean|dist [cdfs|iso] [filename.iso]
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
sudo respin

    安装成功了!

使用 respin 制作 当前系统的LiveCD

 sudo respin dist cdfs # 生成文件系统
 sudo respin backup custom.iso

     制作一个 custom.iso 的镜像,会等待较长时间,最后就能得到一个镜像文件了。

参考文章:
【1】虚拟机Ubuntu14.04用respin制作LiveCD及ISO镜像
https://blog.csdn.net/u013936226/article/details/54621760

猜你喜欢

转载自blog.csdn.net/Fourier_Legend/article/details/81233128
今日推荐