Difference between revisions of "Ubuntu Customization Kit Menggunakan Text Mode"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 27: | Line 27: | ||
$ mkdir -p /home/user/tmp | $ mkdir -p /home/user/tmp | ||
− | + | $ modprobe squashfs | |
==Unpack file ISO, Initrd & Rootfs== | ==Unpack file ISO, Initrd & Rootfs== | ||
Line 54: | Line 54: | ||
Buat iso dari distro yang baru | Buat iso dari distro yang baru | ||
− | $ sudo uck-remaster-pack-initrd - | + | $ sudo uck-remaster-pack-initrd |
− | $ sudo | + | $ sudo uck-remaster-pack-rootfs |
+ | |||
+ | membuat manifest & squashfs | ||
+ | |||
+ | $ chmod +w remaster-iso/casper/filesystem.manifest | ||
+ | $ sudo chroot edit 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 | ||
+ | |||
+ | $ sudo mksquashfs remaster-root remaster-iso/casper/filesystem.squashfs | ||
+ | |||
+ | Remove old md5sum.txt dan hitung ulang md5 yang baru | ||
+ | |||
+ | $ sudo -s | ||
+ | $ rm remaster-iso/md5sum.txt | ||
+ | |||
+ | atau | ||
+ | |||
+ | $ cd remaster-iso && find . -type f -print0 | xargs -0 md5sum > md5sum.draft | ||
+ | |||
+ | $ 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 | ||
+ | |||
+ | 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 | File iso distro baru ada di folder |
Revision as of 17:53, 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
membuat manifest & squashfs
$ chmod +w remaster-iso/casper/filesystem.manifest $ sudo chroot edit 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
$ sudo mksquashfs remaster-root remaster-iso/casper/filesystem.squashfs
Remove old md5sum.txt dan hitung ulang md5 yang baru
$ sudo -s $ rm remaster-iso/md5sum.txt
atau
$ cd remaster-iso && find . -type f -print0 | xargs -0 md5sum > md5sum.draft
$ 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.