Lokasi Ardelindo Aples Depok


View Ardelindo Aples in a larger map

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
| |­­ filesystem­manifest
| |­­ filesystem­manifest.desktop
| `­­ filesystem.squashfs
`­­ rootfs

Konfigurasi repository
vim /etc/apt/sources.list
deb http://dl2.foss­id.web.id/ubuntu hardy main universe multiverse restricted
deb http://dl2.foss­id.web.id/ubuntu hardy­updates main universe multiverse restricted
apt­get update

Instalasi Paket Aplikasi Remastering
apt­get install squashfs­tools mkisofs casper ubiquity­frontend­gtk lilo mtools xresprobe discover1
grub ntfs­3g

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
dpkg­query ­W –showformat='${Package} ${Version}\n' > filesystem.manifest
dpkg­query ­W –showformat='${Package} ${Version}\n' > filesystem.manifest­desktop
exit

Pemindahan file manifest
mv /livecd/rootfs/filesystem.manifest /livecd/CD/casper/
mv /livecd/rootfs/filesystem.manifest­desktop /livecd/CD/casper/

Penghapusan paket ubiquity filesystem.manifest­desktop
vim /livecd/CD/casper/filesystem.manifest­desktop
#delete (dd)
ubiquity­xxx
ubiquity­xxx

Pembuatan Filesystem Squashfs
mksquashfs /livecd/rootfs /livecd/CD/casper/filesystem.squashfs ­no­sparse

Pembuatan ISO 9660 image
livecd/
|­­ CD
| |­­ boot
| | |­­ grub
| | | |­­ menu.lst
| | | `­­ stage2_eltorito
ISO 9660 image
| | |­­ initrd.gz
| | `­­ vmlinuz
| `­­ casper
| |­­ filesystem­manifest
| |­­ filesystem­manifest.desktop
| `­­ filesystem.squashfs
`­­ rootfs

cd /livecd
mkisofs ­b boot/grub/stage2_eltorito \
­no­emul­boot ­boot­load­size 4 ­boot­info­table \
­V "Custom Live CD" ­cache­inodes ­r ­J ­l \
­o asterisk­1.0.iso CD/


Referensi asli:
Howto Remastering Ubuntu from Hardisk

Tidak ada komentar:

Posting Komentar