28/10/2021

LINUX下remastersys制作发行版(转)

Read Time:1 Minute, 38 Second

 

官方网站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。

About Post Author

Hye

天法道,道法自然。 闲逸庭前,花开花落。
administrator
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

发表评论

Previous post 绿鬣不吃食
Next post 用Debian建设一个自己的Linux发行版(转)