shouyong@nas:~$ sudo vi /etc/apt/sources.list.d/a.list
deb http://www.remastersys.com/ubuntu precise main
update一下:sudo apt-get update
#Error:
W: GPG error: http://www.remastersys.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B6068D255563B350
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B6068D255563B350
#或者
sudo su wget -O - http://www.remastersys.com/ubuntu/remastersys.gpg.key | apt-key add -
#继续update,有ERROR:
W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
#解决:
sudo rm /var/lib/apt/lists/partial -r
#安装remastery
sudo apt-get install remastersys
来看看remastery:
shouyong@nas:~$ sudo remastersys
grep: /etc/init.d/remastersys-firstboot: No such file or directory
Usage of remastersys 3.0.4-2 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
来个中文(参考:http://johnawm.blog.163.com/blog/static/36808052201211313389771/):
remastersys的语法: remastersys backup|clean|dist [cdfs|iso] [filename.iso]
将你的系统备份制成一个live cd/dvd
#remastersys backup
将你的系统备份制成一个live cd/dvd其名叫 custom.iso 的ISO文件.
#remastersys backup custom.iso
清除由 remastersys产生的临时文件
#remastersys clean
产生一个可发布又包括你的个人资料的 livecd/dvd
#remastersys dist file
产生一个只有档案系统的可发布的 livecd/dvd
#remastersys dist cdfs
为了产生一个可发布又包括你的个人资料的 livecd/dvd 其名叫 custom.iso的ISO文件:
#remastersys dist iso custom.iso
做一个自己的ubuntu发行版:
sudo remastersys dist cdfs
sudo remastersys dist iso custom.iso