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