Personal tools
You are here: Home Wiki LiveCDHowTo
Views

https://www.ubuntulinux.org/wiki/LiveCDCustomizationHowTo

export LC_ALL=C
sudo mount extracted_fs mnt -o loop
sudo mount -t proc proc mnt/proc
sudo mount -t sysfs sysfs mnt/sys
sudo cp /etc/resolv.conf mnt/etc
sudo vi mnt/etc/apt/sources.list
sudo chroot mnt /bin/bash
apt-get update
dpkg-reconfigure locales
tzconfig
aptitude --without-recommends -y install ~tubuntu-ja
apt-get remove ubuntu-ja-user-setup-wizard
apt-get install ubuntu-ja-keyring 855resolution
/etc/default/855resolutionを編集
apt-key add  /usr/share/keyrings/ubuntu-ja-archive-keyring.gpg
apt-get update
sudo apt-get --purge remove `COLUMNS=200 dpkg -l|grep language-pack|egrep -v -- '-en'|egrep -v -- '-ja'|awk '{print $2}'`
aptitude hold linux-image-2.6.10-5-386
apt-get upgrade
apt-get clean
exit
sudo cp /etc/esound/esd.conf mnt/etc/esound/
sudo cp /etc/fonts/local.conf mnt/etc/fonts/
sudo vi mnt/etc/scim/config
    /Panel/Gtk/LookupTableVertical = true
mnt/root 以下を掃除
sudo rm mnt/etc/resolv.conf
sudo find mnt/var/log -type f | sudo xargs rm
mnt/tmp 以下を掃除
mnt/var/tmp 以下を掃除
sudo chroot mnt dpkg-query -W --showformat='${Package} ${Version}\n' > extracted_cd/casper/filesystem.manifest
sudo umount mnt/proc
sudo umount mnt/sys
gconfdをkill
dd if=/dev/zero bs=65536 count=32753 of=my_fs && \
mkfs.ext2 -b 1024 -f 1024 -g 8192 -F my_fs && \
tune2fs -c 0 -i 0 my_fs
mkdir mnt2
sudo mount my_fs mnt2 -o loop
sudo rsync -a mnt/ mnt2
sudo umount mnt
sudo umount mnt2
sudo -s -H
create_compressed_fs my_fs 65536 > extracted_cd/casper/filesystem.cloop
(cd extracted_cd && find . -type f -print0 | xargs -0 md5sum > md5sum.txt)
sudo mkisofs -r -V "Ubuntu-ja 5.04 i386" \
             -cache-inodes \
             -J -l -b isolinux/isolinux.bin \
             -c isolinux/boot.cat -no-emul-boot \
             -boot-load-size 4 -boot-info-table \
             -o ubuntu-ja-5.04-live-i386.iso extracted_cd



Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: