2024年11月22日

HYEOS

随事而为

LINUX下remastersys制作发行版(转)

2 min read

 

官方网站http://geekconnection.org/remastersys/remastersystool.html
根据官方网站的回答:
Remastersys is a tool that can be used to do 2 things with an existing Debian, Ubuntu or derivative installation.
1.It can make a full system backup including personal data to a live cd or dvd that you can use anywhere and install.
2.It can make a distributable copy you can share with friends. This will not have any of your personal user data in it.
1.系统备份
2.打包系统,做成livecd/dvd

怎样安装?
ubuntu用户
1.把下面的源地址加到sources.list
# Remastersys
deb http://www.geekconnection.org/remastersys/repository ubuntu/
2.sudo apt-get update
3.sudo apt-get install remastersys

debian用户
1.把下面的源地址加到sources.list
# Remastersys
deb http://www.geekconnection.org/remastersys/repository debian/
2.sudo apt-get update
3.sudo apt-get install remastersys

怎样使用?
sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]

sudo remastersys backup  #(to make a livecd/dvd backup of your system制作系统备份livecd)

sudo remastersys backup custom.iso  #(to make a livecd/dvd backup and call the iso custom.iso制作系统备份livecd,名字是custom.iso)

sudo remastersys clean #(to clean up temporary files of remastersys清除制作时产生的临时文件)

sudo remastersys dist    #  (to make a distributable livecd/dvd of your system制作你现有系统的livecd发行版)

sudo remastersys dist cdfs  #(to make a distributable livecd/dvd filesystem only 仅制作livecd文件系统cdfs)

sudo remastersys dist iso custom.iso  #   (to make a distributable iso named custom.iso but only if the cdfs is already present制作livecd,前提是cdfs已经就绪)

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
cdfs和iso选项应该只被用于你希望更改一些选项的时候,比如你要更改isolinux部分

另外此程序是拥有图形界面的System ->administration ->Remastersys Backup,也是非常不错,很傻瓜

使用测试~~

我的6.4G的跟文件系统做成之后的iso有1.5G,非常不错,使用的是sudo remastersys dist xiaoqiang.iso
测试的时候会出现找不到intird.gz的错误,后来进入iso查看了下,发现casper目录中并没有initrd.gz这个文件,于是
cd /home/remastersys/remastersys
sudo cp /boot/initrd.img-2.6.31-14-generic ISOTMP/casper/initrd.gz
sudo rm xiaoqiang.iso
sudo remastersys dist iso xiaoqiang.iso
重新打包
再次测试,成功启动,并且包含所有已经安装的软件,包括我的chrome,永中office。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注