Experience Summary: to customize ubuntu live cd 2, Let's explain how to customize Live CD. Preparations: (we have to prepare the following tools before customization) run Ubuntu Live CD or mksquashfs with an image file about 8 GB EXT3 partition disk space Virtual Machine Software (VMware) network connection (FAST) after preparing these, we can start customization. Custom system: create a new working directory. Make sure that the working directory has about 8 GB disk space. # Mkdir workdir # create a directory named cd for attaching a cd or a cd image file in the working directory. # Mount the cd or image file on mkdir cd. CD: # mount/dev/cdrom cd image file: # mount-o loop ubuntu-desktop-i386.iso cd creates a directory named newcd in the working directory. # Mkdir newcd: copy the files in the cd directory to the newcd directory. # Cp-a cd/* newcd/Delete the newcd/casper/filesystem * file. # Rm newcd/casper/filesystem * Create a folder named s to mount the root partition image in the working directory. # Mkdir s mount the root partition image. # Mount-o loop-t squashfs cd/casper/filesystem. squashfs s creates a folder named "edit", which is used as a new root partition editing directory in the working directory. # Mkdir edit: copy the root partition file to the New Root partition. # Cp-a s/* edit/configure the network connection and configure the fastest source server to/etc/resolv. copy the conf file to the workdir/edit/etc/directory # cp/etc/resolv. conf edit/etc/set/etc/apt/source. copy the list file to the workdir/edit/etc/apt/directory # cp/etc/apt/resolv. conf edit/etc/apt/switch the root directory # chroot edit mount/proc and/sys are in the new root directory. # Mount-t proc none/proc # mount-t sysfs none/sys set the environment variable HOME # export HOME =/root to install and delete the software package. The PACKAGE_NAME here is based on your actual situation. # Apt-get install PACKAGE_NAME // install new software package # apt-get remove PACKAGE_NAME // delete old software package clear cache software package and temporary directory. # Apt-get clean # rm-rf/tmp/* umount/proc and/sys. # Umount/proc # umount/sys exit to edit the root directory. # Exit to delete edit/etc/resolv. conf edit/etc/apt/sources. list edit/root and copy the new/root file. # Rm edit/etc/resolv. conf edit/etc/apt/sources. list # rm-r edit/root # cp-a s/root edit/package the new root directory into an image file. # Mksquashfs edit newcd/casper/filesystem. squashfs generates filesystem. manifest and filesystem. manifest-desktop # chroot edit dpkg-query-W-showformat = '$ {Package }$ {Version} \ n'> newcd/casper/filesystem. manifest # cp newcd/casper/filesystem. manifest newcd/casper/filesystem. manifest-desktop generates the MD5 verification file # rm newcd/md5sum.txt # cd newcd & find. -type f-print0 | xargs-0 md5sum> md5sum.txt: generate the cd iso image file. # Mkisofs-r-V "Ubuntu Live Custom"-B isolinux/isolinux. bin-c isolinux/boot. cat-cache-inodes-J-l-no-emul-boot-load-size 4-boot-info-table-o .. /Ubuntu-Live-Custom.iso. if you need to experience customization, the above steps are very suitable;