Tuesday, September 04, 2007

creating an flamerobin/firebird livecd with ubuntu feisty fawn

You can download the final live cd from this page 
i used this guide
download ubuntu-7.04-desktop-i386.iso from http://www.ubuntu.com/getubuntu/download
in my case my nearest mirror
wget http://ftp.iasi.roedu.net/mirrors/ubuntulinux.org/releases/feisty/ubuntu-7.04-desktop-i386.iso
sudo apt-get install squashfs-tools mkisofs qemu
sudo modprobe squashfs
cp ~/ubuntu-7.04-desktop-i386.iso ~/live/
cd ~/live
mkdir mnt
sudo mount -o loop ubuntu-7.04-desktop-i386.iso mnt
mkdir extract-cd
rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
mkdir squashfs
sudo mount -t squashfs -o loop mnt/casper/filesystem.squashfs squashfs
mkdir edit
sudo cp -a squashfs/* edit/
sudo cp /etc/resolv.conf edit/etc/
sudo cp /etc/hosts edit/etc/
sudo chroot edit
mount -t proc none /proc
mount -t sysfs none /sys
export HOME=/root
export LC_ALL=C
in the Customization part (after you do sudo chroot edit)
I decomented the two lines in /etc/apt/sources.list sudo vi /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu feisty universe
deb-src http://archive.ubuntu.com/ubuntu feisty universe
apt-get update
apt-get install flamerobin
apt-get install firebird2-super-server

Please enter new password for SYSDBA user:masterkey
apt-get clean
rm -rf /tmp/*
rm /etc/resolv.conf
umount /proc
umount /sys
chmod +w extract-cd/casper/filesystem.manifest
sudo chroot edit dpkg-query -W --showformat='${Package} ${Version}\n' > extract-cd/casper/filesystem.manifest
sudo cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop
sudo sed -ie '/ubiquity/d' extract-cd/casper/filesystem.manifest-desktop

sudo rm extract-cd/casper/filesystem.squashfs
sudo mksquashfs edit extract-cd/casper/filesystem.squashfs
sudo -s
rm extract-cd/md5sum.txt
cd extract-cd && find . -type f -print0 | xargs -0 md5sum > md5sum.txt
sudo mkisofs -r -V "$IMAGE_NAME" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../ubuntu-7.04-desktop-i386-flamerobin.iso .
qemu -cdrom ubuntu-7.04-desktop-i386-flamerobin.iso -boot d

or write the iso ubuntu-7.04-desktop-i386-flamerobin.iso on the dvd with k3b or nautilus
after the system boots you can create an database with
the username:sysdba
and the path

technorati tags:, , , , , , ,

Blogged with Flock


Unknown said...

Thanks and nice
It gave me the idea to do the same with Mandriva ;)

And with the wizzard included, you even can make you own bootable usb key

here : http://downloads.sourceforge.net/firebird-fr/fbmdv.iso?modtime=1189544656&big_mirror=0

thanks to http://www.mcnlive.org/

Álvaro said...

Thanks for yor post!!! very util. But I have a question... I would like make a LiveCD but only with the selected application without the install packages and make a personalized and small liveCD... There are any way to make a iso only with the installed packages? Very thanks!