Experience Summary: custom ubuntuLIVECD2

Source: Internet
Author: User
The following describes how to customize LiveCD in ubuntuLIVECD2. Preparations: (we have to prepare the following tools before customization) the Ubuntu system UbuntuLiveCD CD or the image file mksquashfs software mkisofs soft... 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;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.