Mastering the CD


It's time to turn Myppix into an actual product! Start by compressing the KNOPPIX/KNOPPIX filesystem, using your own directories, of course:

 $ mkisofs -iso-level 4 -R -U -V "Myppix" -hide-rr-moved -cache image from book    -inodes -no-bak -pad /home/scott/knoppixuncompressed | image from book    nice -5 create_compressed_fs - 65536 /home/scott/ image from book    knoppixiso/KNOPPIX/KNOPPIX 

Not surprising, this command can run for a long time, depending on the size of the knoppixuncompressed directory and the speed of your machine. When the command finishes running, you can create the ISO image you're going to burn:

 $ mkisofs -pad -l -r -J -v -V "Myppix" -b boot/isolinux/ image from book    isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot image from book    -boot-load-size 4 -boot-info-table -hide -rr -moved image from book    -o /home/scott/myppix.iso /home/scott/knoppixiso/ 

Again, this takes some time to run. When it finally finishes, ls -l /home/scott displays something like the following:

 -rw-r--r-- 1 root root 664347215 Jun 13 12:55 myppix.iso 

664MB. Not too bad, and there's still some space to add additional software to your distro if you ever want to re-remaster Myppix again.

There's one thing to fix before continuing. You probably don't want the ISO in your home directory to be owned by root, so you need to change the permissions to use your system's username, and then check it once again with ls -l:

 # chown scott.scott myppix.iso # ls -l -rw-r--r--     1 rsgranne     rsgranne     664347215 Jun 13 image from book    12:55 myppix.iso 

It's alive! It's alive! Myppix.iso is available for burning, testing, using, or whatever the heck you want to do with it.



Hacking Knoppix
Hacking Knoppix (ExtremeTech)
ISBN: 0764597841
EAN: 2147483647
Year: 2007
Pages: 118

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net