I probably shouldn't speak but I'll throw this IDEA out there..... couldn't you possibly use rsync for this?<br clear="all"><div>:-)~MIKE~(-:</div>
<br><br><div class="gmail_quote">On Mon, Dec 31, 2012 at 3:12 PM,  <span dir="ltr"><<a href="mailto:joe@actionline.com" target="_blank">joe@actionline.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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