donkey42
plank
this is only for users or Linux, do NOT type these commands in Windoze as the outcome is unknown & could be catastrophic
a broadband connection is almost essential when downloading a LiveCD unless you like banging your head against a wall
to start with you need an original LiveCD, in this example we'll use Kubuntu Feisty Fawn 7.04
this is how you add / remove any software to / from a LiveCD by remastering the LiveCD (makeing a new custom LiveCD)
to begin you need a Feisty LiveCD you can download one from here remember where you downloaded it to (e.g. ~/Desktop)
now to save typing we'll rename the LiveCD you downloaded to feisty.iso by changing to the directory you downloaded it to[ot]mine is in ~/Desktop, start konsole and
rename it with
[/ot]
next we need to "Loopback mount" the .iso enter but first we need to create the directory "/mnt/loop"
or you can create the directory graphically, next, this command makes the LiveCD you downloaded is accessible in /mnt/loop
now we need to create a directory / folder Kubuntu-rebuild in "~/"[ot]mine is /home/dave[/ot]next
assuming you downloaded it to desktop your will be ~/feisty.iso
now we'll do a bit of preparation
next we'll use SquashFS & squashfs-tools (installable using your fav package manager or atp-get
now we'll loopback mount the filesystem
now /mnt/loop contains the compressed ubuntu from the LiveCD, now copy /mnt/loop to a new directory in your home diiretory (/home/<username>), so, now we have the compressed CD in our home directory (~/kubuntu-source) and
now you basically running the LiveCD without booting it
now comes the fun bit[ot]fun, yeah right[/ot]we'll now remove any software we don't need or want (but be very careful you don't remove something essential) & add any software we want, you can install or remove any software as you would normally would (for example with apt-get) anything you add / remove will be on the final LiveCD you are making, so, if you want Gparted on your LiveCD (as partition manipulation is always useful)
Edit: after typing "exit" you can pretty much leave the remastering alone, & you can continue with it later, if you reboot before issuing the exit command, next boot you can continue as normal (just pretend you did type exit) as exit changes the root back to /
when you've finished playing with it type "exit" to leave the kubuntu LiveCD, now we'll make a list of files that will be on your remastered LiveCD by entering this daddy of most commands
ok, last bit
now we need to rebuild the SquashFS filesystem image
BTW: this command takes a while to complete too
next we should update the MD5 checksums to varify the .iso is completed & works with
and finally we can build a brand new .iso image
your new Kubuntu Live is called newkubuntu.iso
BTW: i haven't completely done this yet, but it works
also (i think) this is the way it should be done, however, there are easier ways like UNK Reconstructor & i'm sure you can find more
a broadband connection is almost essential when downloading a LiveCD unless you like banging your head against a wall
to start with you need an original LiveCD, in this example we'll use Kubuntu Feisty Fawn 7.04
this is how you add / remove any software to / from a LiveCD by remastering the LiveCD (makeing a new custom LiveCD)
to begin you need a Feisty LiveCD you can download one from here remember where you downloaded it to (e.g. ~/Desktop)
now to save typing we'll rename the LiveCD you downloaded to feisty.iso by changing to the directory you downloaded it to[ot]mine is in ~/Desktop, start konsole and
Code:
cd ~/Desktop
Code:
rn kubuntu-7.04-desktop-i386.iso feisty.iso
next we need to "Loopback mount" the .iso enter but first we need to create the directory "/mnt/loop"
Code:
mkdir /mnt/loop
Code:
mount -o loop /path/to/feisty.iso /mnt/loop
now we need to create a directory / folder Kubuntu-rebuild in "~/"[ot]mine is /home/dave[/ot]next
Code:
rsync -ax loop /path/to/LiveCD.iso /mnt/loop/. kubuntu-rebuild
now we'll do a bit of preparation
next we'll use SquashFS & squashfs-tools (installable using your fav package manager or atp-get
now we'll loopback mount the filesystem
Code:
mount kubuntu-rebuild/casper/filesystem.squashfs /mnt/loop -t squashfs -o loop
Code:
rsync -av /mnt/loop/. ~/kubuntu-source you can now unmount /mnt/loop now copy your /etc/resolv.conf to ~/kubuntu-source/etc and[code]chroot ~/kubuntu-source
now comes the fun bit[ot]fun, yeah right[/ot]we'll now remove any software we don't need or want (but be very careful you don't remove something essential) & add any software we want, you can install or remove any software as you would normally would (for example with apt-get) anything you add / remove will be on the final LiveCD you are making, so, if you want Gparted on your LiveCD (as partition manipulation is always useful)
Code:
apt-get install gparted
Edit: after typing "exit" you can pretty much leave the remastering alone, & you can continue with it later, if you reboot before issuing the exit command, next boot you can continue as normal (just pretend you did type exit) as exit changes the root back to /
when you've finished playing with it type "exit" to leave the kubuntu LiveCD, now we'll make a list of files that will be on your remastered LiveCD by entering this daddy of most commands
Code:
sudo chroot kubuntu-source dpkg-query -W --showformat='${Package} ${Version}\n | grep -v deinstall > ~/kubuntu-rebuild/casper/filesystem.manifest
ok, last bit
now we need to rebuild the SquashFS filesystem image
BTW: this command takes a while to complete too
Code:
mksquashfs kubuntu-source/ kubuntu-rebuild/ casper/filesystem.squashfs -noappend
Code:
(cd /kubuntu-rebuild && find . -type f -print0 | xargs -0 md5sum > md5sum.txt
Code:
mkisofs -r -V "My Custom Kubuntu" -cache -iodes -J -l -b isolinux.bin -c isolinux.bin -c isolinux/ boot.cat -no-emul-boot -boot-load-size 4 -boot info-table -0 newkubuntu.iso kubuntu-rebuild
BTW: i haven't completely done this yet, but it works
also (i think) this is the way it should be done, however, there are easier ways like UNK Reconstructor & i'm sure you can find more