What is the easiest way to create a clone of a kubuntu
installation that now exists on one computer (/ and /home)
and install the exact same thing as an iso on another computer?
I now have created a 90-gig free-open space partition
on a 250-gig HD along with win7 in the first 100-gig.
Searching the 'net, I found several possible scenarios,
including 'Remastersys,' 'Relinux,' and the following:
http://www.hardwareforums.com/threads/remaster-your-own-kubuntu-livecd.17927/
Some of which suggested code includes this:
rn kubuntu-7.04-desktop-i386.iso
mkdir /mnt/loop
Loopback mount the .iso - but first create the directory "/mnt/loop" Code:
mkdir /mnt/loop
Or create the directory graphically. This command makes the LiveCD
accessible in /mnt/loop Code:
mount -o loop /path/to/feisty.iso /mnt/loop
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
Assume you downloaded it to desktop be ~/feisty.iso
Use SquashFS & squashfs-tools to loopback mount the filesystem Code:
mount kubuntu-rebuild/casper/filesystem.squashfs /mnt/loop -t squashfs
-o loop
/mnt/loop contains the compressed ubuntu from the LiveCD
copy /mnt/loop to a new directory in your home diiretory (/home/<username>)
So you now have the compressed CD in home directory (~/kubuntu-source). Code:
rsync -av /mnt/loop/. ~/kubuntu-source
unmount /mnt/loop
copy /etc/resolv.conf to ~/kubuntu-source/etc and[code]chroot
~/kubuntu-source
Now you are basically running the LiveCD without booting it
Remove software you do not want. Be careful to not remove essentials.
Add software you want with apt-get. Anything you add or remove will be
your LiveCD. Code:
apt-get install gparted
After typing "exit" you can leave remaster alone and continue with it later.
If you reboot before issuing the exit command, at the next boot continue
as normal.
When finished editing, type "exit" to leave the kubuntu LiveCD.
Make a list of files to be on the remastered LiveCD. Code:
sudo chroot kubuntu-source dpkg-query -W --showformat='${Package}
${Version}\n | grep -v deinstall >
~/kubuntu-rebuild/casper/filesystem.manifest
Rebuild SquashFS filesystem image. Patience. Takes a while to complete. Code:
mksquashfs kubuntu-source/ kubuntu-rebuild/ casper/filesystem.squashfs
-noappend
Update the MD5 checksums to verify the .iso is completed and works. Code:
cd /kubuntu-rebuild && find . -type f -print0 | xargs -0 md5sum >
md5sum.txt
Build new .iso image. 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
New Kubuntu Live is called newkubuntu.iso
== comment: easier w UNK Reconstructor and others.
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss