How to customize UbuntuLIVECD

Source: Internet
Author: User
UbuntuLiveCD is indeed very convenient, but there are also some shortcomings. The software to be used does not exist, but cannot be used. Is there a way to modify it? Customize a LiveCD by yourself? The answer is yes. Next we will explain how to customize LiveCD. Preparations: (before customization, We have to prepare the following tools) the Ubuntu system UbuntuLiveCD CD or image file mksquashfs software mkisofs software can run 8 GB.

Ubuntu Live CD is indeed very convenient, but there are also some shortcomings. The software to be used is not available, but not available. Is there a way to modify it? Customize a Live CD? The answer is yes.

Next we will explain how to customize Live CD.

Preparations: (we have to prepare the following tools before customization)

Executable Ubuntu System
Ubuntu Live CD disc or image file
Mksquashfs Software
Mkisofs Software
About 8 GB EXT3 partition disk space
Virtual Machine Software (VMware)
Network Connection (FAST)
After preparing these items, we can start to customize them.

Custom system:

To create a new working directory, make sure that the working directory has about 8 GB disk space.
# Mkdir workdir
# Cd workdir

Create a directory named cd to mount the cd or cd image file in the working directory.
# Mkdir cd
Attach a cd or image file.
CD: # mount/dev/cdrom cd
Image File: # mount-o loop ubuntu-desktop-i386.iso cd
Create 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
Create a folder named edit to edit the directory as the new root partition in the working directory.
# Mkdir edit
Copy the root partition file to the New Root partition.
# Cp-a s/* edit/
Configure the network connection
Configure the fastest source server
Copy the/etc/resolv. conf file to the workdir/edit/etc/directory.
# Cp/etc/resolv. conf edit/etc/
Copy the/etc/apt/source. list file to the workdir/edit/etc/apt/directory.
# Cp/etc/apt/resolv. conf edit/etc/apt/
Switch root directory
# Chroot edit
Mount/proc and/sys are in the new root directory.
# Mount-t proc none/proc
# Mount-t sysfs none/sys

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.