使用Remastersys创建自己的自定义Ubuntu 7.10或Linux Mint 4.0 Live-CD
版本1.0
作者:Falko Timme
本指南介绍如何使用名为remastersys的工具从Ubuntu Gutsy Gibbon或Linux Mint 4.0系统创建Live-CD。 Remastersys可以在Linux Mint romeo
存储库中使用。 您可以自定义Ubuntu / Linux Mint系统,然后让remastersys创建一个iso映像,然后刻录到CD / DVD上。
我不会保证这将为您工作!
1安装Remastersys
打开终端并成为根目录:
sudo su
然后将Linux Mint romeo
存储库添加到/etc/apt/sources.list
并更新包数据库:
echo "deb http://www.linuxmint.com/repository romeo/" >>/etc/apt/sources.list
apt-get update
之后,您可以像这样安装remastersys:
apt-get install remastersys
然后离开root shell,以便您再次正常登录:
exit
2 Remastersys的用法
为了学习如何使用remastersys,运行
sudo remastersys
然后它将打印所有可用的选项:
falko@falko-desktop:~$ sudo remastersys
[sudo] password for falko:
Usage of remastersys is as follows:
sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]
Examples:
sudo remastersys backup (to make a livecd/dvd backup of your system)
sudo remastersys backup custom.iso
(to make a livecd/dvd backup and call the iso custom.iso)
sudo remastersys clean (to clean up temporary files of remastersys)
sudo remastersys dist (to make a distributable livecd/dvd of your system)
sudo remastersys dist cdfs
(to make a distributable livecd/dvd filesystem only)
sudo remastersys 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
falko@falko-desktop:~$
3创建安装的ISO映像
要创建安装的iso映像,只需运行即可
sudo remastersys dist
这将在/ home / remastersys
目录中创建一个名为customdist.iso
的iso映像。 dist
选项使您的个人文件夹(例如/ home / falko
)不会包含在iso映像中。 您可能必须在此过程中插入您的Ubuntu / Linux Mint安装CD。
这是过程的结尾如何:
[...]
92.16% done, estimate finish Wed Nov 28 15:31:25 2007
93.39% done, estimate finish Wed Nov 28 15:31:25 2007
94.62% done, estimate finish Wed Nov 28 15:31:24 2007
95.85% done, estimate finish Wed Nov 28 15:31:24 2007
97.08% done, estimate finish Wed Nov 28 15:31:25 2007
98.31% done, estimate finish Wed Nov 28 15:31:25 2007
99.54% done, estimate finish Wed Nov 28 15:31:25 2007
Total translation table size: 2048
Total rockridge attributes bytes: 3950
Total directory bytes: 9094
Path table size(bytes): 54
Max brk space used 0
406890 extents written (794 MB)
/home/remastersys/customdist.iso is ready to be burned or tested in a virtual machine.
Check the size and if it is larger than 700MB you will need to burn it to a dvd
796M /home/remastersys/customdist.iso
It is recommended to run 'sudo remastersys clean' once you have burned and tested the customdist.iso
falko@falko-desktop:~$
正如我刚刚提到的,iso映像已经在/ home / remastersys中
创建:
ls -l /home/remastersys/
falko@falko-desktop:~$ ls -l /home/remastersys/
total 814596
-rw-r--r-- 1 root root 73 2007-11-28 15:08 control
-rw-r--r-- 1 root root 833310720 2007-11-28 15:31 customdist.iso
drwxr-xr-x 9 root root 4096 2007-11-28 15:07 dummysys
dr-xr-xr-x 5 root root 4096 2007-10-19 02:08 ISOTMP
-rw-r--r-- 1 root root 904 2007-11-28 15:06 varexc
falko@falko-desktop:~$
现在,您可以将/home/remastersys/customdist.iso
刻录到CD或DVD上(如果iso文件大于700MB,则必须使用DVD)。
4清理
将iso映像刻录到CD / DVD上之后,就可以运行
sudo remastersys clean
删除在iso生成期间创建的所有临时文件以及/ home / remastersys
目录。
5链接
- Ubuntu: http : //www.ubuntu.com
- Linux Mint: http : //www.linuxmint.com