Difference between revisions of "Ubuntu Customization Kit Menggunakan Text Mode"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 55: | Line 55: | ||
$ sudo uck-remaster-pack-initrd | $ sudo uck-remaster-pack-initrd | ||
+ | |||
$ sudo uck-remaster-pack-rootfs | $ sudo uck-remaster-pack-rootfs | ||
+ | atau | ||
+ | $ sudo mksquashfs remaster-root remaster-iso/casper/filesystem.squashfs | ||
membuat manifest & squashfs | membuat manifest & squashfs | ||
− | $ chmod | + | $ sudo chmod 666 remaster-iso/casper/filesystem.manifest |
− | $ sudo chroot | + | $ sudo chroot remaster-root dpkg-query -W --showformat='${Package} ${Version}\n' > remaster-iso/casper/filesystem.manifest |
$ sudo cp remaster-iso/casper/filesystem.manifest remaster-iso/casper/filesystem.manifest-desktop | $ sudo cp remaster-iso/casper/filesystem.manifest remaster-iso/casper/filesystem.manifest-desktop | ||
$ sudo sed -i '/ubiquity/d' remaster-iso/casper/filesystem.manifest-desktop | $ sudo sed -i '/ubiquity/d' remaster-iso/casper/filesystem.manifest-desktop | ||
− | |||
− | |||
Remove old md5sum.txt dan hitung ulang md5 yang baru | Remove old md5sum.txt dan hitung ulang md5 yang baru | ||
$ sudo -s | $ sudo -s | ||
− | + | # rm remaster-iso/md5sum.txt | |
− | + | # cd remaster-iso && find . -type f -print0 | xargs -0 md5sum > md5sum.draft | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | # cd .. | ||
+ | # cat remaster-iso/md5sum.draft | grep -v md5sum.txt | grep -v isolinux/boot.cat > remaster-iso/md5sum.txt | ||
+ | # rm remaster-iso/md5sum.draft | ||
+ | # exit | ||
$ sudo uck-remaster-pack-iso [namafile.iso] /home/user/tmp -g --arch=x86 | $ sudo uck-remaster-pack-iso [namafile.iso] /home/user/tmp -g --arch=x86 |
Revision as of 18:12, 10 July 2009
Berkut adalah cara me-remaster Ubuntu Desktop menggunakan Ubuntu Customization Kit (UCK) menggunakan text mode. Cara ini tampaknya lumayan manjur. Adapun detail langkah-nya adalah sebagai berikut,
Kebutuhan Sistem Pendukung
- Harddisk kosong sebesar 3 – 5 GB (semakin besar ruang kosong, semakin dianjurkan)
- Memori 512MB dan swap 1 GB (semakin besar memori, semakin dianjurkan)
- Paket pendukung squashfs-tools dchroot genisoimage fakeroot gfxboot bzr dan mkisofs
- Program Virtualisasi semacam Qemu, VirtualBox, VM Ware dan lainya
- Berkas ISO Ubuntu Live CD Desktop
Persiapan Pendukung
Download UCK dari
http://uck.sf.net http://sourceforge.net/projects/uck/files/uck/uck_2.0.9-0ubuntu1_all.deb
Install paket pendukung & UCK
$ sudo apt-get install fakeroot gfxboot squashfs-tools bzr $ sudo dpkg -i uck_2.0.9-0ubuntu1_all.deb
Buat directory untuk meletakan file remaster
$ mkdir -p /home/user/tmp $ modprobe squashfs
Unpack file ISO, Initrd & Rootfs
Siapkan iso desktop ubuntu. Lakukan unpack iso menggunakan perintah
$ sudo uck-remaster-unpack-iso ubuntu-9.04-desktop-i386.iso
hasil unpack iso ubuntu akan di letakan di /home/user/tmp. Lanjutkan dengan unpack initrd & rootfs.
$ sudo uck-remaster-unpack-rootfs $ sudo uck-remaster-unpack-initrd
baru sesudah ini kita dapat melakukan chroot
Kustomisasi
Lakukan chroot
$ sudo uck-remaster-chroot-rootfs
Baru kita dapat melakukan penambahan & pengurangan aplikasi. Proses penambahan, instalasi aplikasi, pengurangan dapat di lakukan seperti pada mesin yang sedang kita instalasi biasa.
Membuat File ISO baru
Buat iso dari distro yang baru
$ sudo uck-remaster-pack-initrd
$ sudo uck-remaster-pack-rootfs
atau
$ sudo mksquashfs remaster-root remaster-iso/casper/filesystem.squashfs
membuat manifest & squashfs
$ sudo chmod 666 remaster-iso/casper/filesystem.manifest $ sudo chroot remaster-root dpkg-query -W --showformat='${Package} ${Version}\n' > remaster-iso/casper/filesystem.manifest $ sudo cp remaster-iso/casper/filesystem.manifest remaster-iso/casper/filesystem.manifest-desktop $ sudo sed -i '/ubiquity/d' remaster-iso/casper/filesystem.manifest-desktop
Remove old md5sum.txt dan hitung ulang md5 yang baru
$ sudo -s # rm remaster-iso/md5sum.txt # cd remaster-iso && find . -type f -print0 | xargs -0 md5sum > md5sum.draft
# cd .. # cat remaster-iso/md5sum.draft | grep -v md5sum.txt | grep -v isolinux/boot.cat > remaster-iso/md5sum.txt # rm remaster-iso/md5sum.draft # exit
$ sudo uck-remaster-pack-iso [namafile.iso] /home/user/tmp -g --arch=x86
atau
$ mkdir /home/user/tmp/remaster-new-files $ cd /home/user/tmp/remaster-iso $ sudo mkisofs -o ../remaster-new-files/namafile.iso \ -b isolinux/isolinux.bin -c isolinux/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table \ .
File iso distro baru ada di folder
/home/user/tmp/remaster-new-files
Selanjutnya adalah burn dan test file iso baru tersebut.