Lokasi Ardelindo Aples Depok
Jadwal Pelatihan
Senin, 27 April 2009
Linux Ubuntu Remastering
Download::
Buku Remastering LiveCD
Struktur direktori dan file LiveCD
livecd/
| CD
| | boot
| | | grub
| | | | menu.lst
| | | ` stage2_eltorito
| | | initrd.gz
| | ` vmlinuz
| ` casper
| | filesystemmanifest
| | filesystemmanifest.desktop
| ` filesystem.squashfs
` rootfs
Konfigurasi repository
vim /etc/apt/sources.list
deb http://dl2.fossid.web.id/ubuntu hardy main universe multiverse restricted
deb http://dl2.fossid.web.id/ubuntu hardyupdates main universe multiverse restricted
aptget update
Instalasi Paket Aplikasi Remastering
aptget install squashfstools mkisofs casper ubiquityfrontendgtk lilo mtools xresprobe discover1
grub ntfs3g
Konfigurasi tampilan desktop dan aplikasi
AutoLogin
System > Login Window > Security > Enable Automatic Login (Checkbox)
> Allow Local System Administrator Login (Checkbox)
Penyalinan Filesystem
rsync avp / /livecd/rootfs exclude=/dev/* exclude=/tmp/* exclude=/sys/* --exclude=/proc/* --exclude=/livecd/
Penyalinan kernel dan initramfs
cp vp /boot/vmlinuz$(uname r) /livecd/CD/boot/vmlinuz
cp vp /boot/initrd.img$(uname r) /livecd/CD/boot/initrd.gz
Pembuatan boot menu GRUB
vim /livecd/CD/boot/grub/menu.lst
default 0
timeout 30
color cyan/blue white/blue
title LiveCD Billing Warnet dan HotSpot Management
kernel /boot/vmlinuz BOOT=casper boot=casper rw
initrd /boot/initrd.gz
Chroot ke direktory master LiveCD
chroot /livecd/roofs
Menghapus file yang tidak diperlukan
rm fr /boot/grub/device.map
rm fr /boot/grub/menu.lst
rm fr /etc/fstab
rm fr /etc/mtab
Membuat file manifest
dpkgquery W –showformat='${Package} ${Version}\n' > filesystem.manifest
dpkgquery W –showformat='${Package} ${Version}\n' > filesystem.manifestdesktop
exit
Pemindahan file manifest
mv /livecd/rootfs/filesystem.manifest /livecd/CD/casper/
mv /livecd/rootfs/filesystem.manifestdesktop /livecd/CD/casper/
Penghapusan paket ubiquity filesystem.manifestdesktop
vim /livecd/CD/casper/filesystem.manifestdesktop
#delete (dd)
ubiquityxxx
ubiquityxxx
Pembuatan Filesystem Squashfs
mksquashfs /livecd/rootfs /livecd/CD/casper/filesystem.squashfs nosparse
Pembuatan ISO 9660 image
livecd/
| CD
| | boot
| | | grub
| | | | menu.lst
| | | ` stage2_eltorito
ISO 9660 image
| | | initrd.gz
| | ` vmlinuz
| ` casper
| | filesystemmanifest
| | filesystemmanifest.desktop
| ` filesystem.squashfs
` rootfs
cd /livecd
mkisofs b boot/grub/stage2_eltorito \
noemulboot bootloadsize 4 bootinfotable \
V "Custom Live CD" cacheinodes r J l \
o asterisk1.0.iso CD/
Referensi asli:
Howto Remastering Ubuntu from Hardisk
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar