Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: New KNOPPIX remastering HOWTO

  1. #1
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818

    New KNOPPIX remastering HOWTO

    update : this version is now maintained at http://www.knoppix.net/docs/index.ph...masteringHowto so use that version instead of this

    This is a guide that will show you howto remaster KNOPPIX.

    ( notes : commands showen in bold are on one line, so please mazimise the window, if you have any comments/sugestions please post below )

    Requirements:
    • at least 1.5 Gig of RAM+Swap total
    • 3 gig free on a disk

    Instructions:
    1. Boot from Knoppix CD
    2. Configure your internet connection ( we'll need this later )
    3. Open a root shell ( Kmenu->Knoppix->Root Shell ) - all commands below are ru
      n from root shell
    4. Make 2 directories, one for your new Master CD, one for the source, on a dis
      k partition. You'll have to m
    5. Make 2 directories, one for your new Master CD, one for the source, on a dis
      k partition. You'll have to make sure these are mounted read-write. If say, you
      have a partition with 3 gig free, mounted read-write /mnt/hda4, then mkdir /
      mnt/hda4/knxmaster; mkdir /mnt/hda4/knxsource
    6. mkdir /mnt/hda4/knxsource/KNOPPIX ( replace /mnt/hda4 with where your
      harddisk is mounted )
    7. now, copy the KNOPPIX files to your source directory : cp -Rp /KNOPPIX/* /
      mnt/hda4/knxsource/KNOPPIX
      that will take a little while
    8. [b]mkdir /mnt/hda4/knxmaster/KNOPPIX
    9. cp /cdrom/index.html /mnt/hda4/knxmaster/
    10. now, copy everything in /cdrom/KNOPPIX/ to /mnt/hda4/knxmaster/KNOPPIX/ except the ~700 Mb KNOPPIX file.
    11. Now you can "chroot" into the copied KNOPPIX : chroot /mnt/hda4/knxsource
      /KNOPPIX
      - new - I get a whole lot of /dev/null permission denied
      errors, I'm not sure what thats all about, but I press CTRL+C and carry on anyway...

      Update : fixed ! Well, check your mount status if you met the problem:
      # mount
      /dev/hda12 on /mnt/hda12 type ext3 (rw,nosuid,nodev)

      where "nodev" means that you are not accessible on mounted filesystem
      and you can not access /dev/null. And some scripts get output redirect
      to /dev/null...
      To solve this you should mount target partition before you do chroot
      like this:

      # mount /dev/hda12 /mnt/hda12

      And see whats changed:

      # mount
      /dev/hda12 on /mnt/hda12 type ext3 (rw)

      then you can carry on and chroot.
    12. You are now chrooted. "/" is actually "/mnt/hda4/knxsource/KNOPPIX"
    13. To use the internet you need to mount proc mount -t proc /proc proc
    14. now edit /etc/resolv.conf and add your nameserver
    15. check your chrooted internet connection : ping google.com
    16. Now you can change stuff. If you want to add programs, you'll probally have
      to remove some programs to free up space. apt-get remove <program>
      will remove that program.
    17. change stuff.. user settings are in /etc/skel
    18. ...
    19. Unmount /proc - very imporntant! umount /proc
    20. Press CTRL+D to leave being chrooted.

    Notes :
    interesting stuff in /etc/init.d/knoppix-autoconfig :
    The X background file is /cdrom/KNOPPIX/background.gif
    As well as floppyconfig, there is cdromconfig which will run /cdrom/KNOPPIX/knoppix.sh
    interesting stuff in /etc/init.d/xsession
    it ALSO sets background as /usr/local/lib/knoppix.gif
    Now, onto creating the ISO file
    1. we've finished customizing and ready to burn!
    2. first do some cleanup : remove .bash_history files, tmp files etc
    3. rm -rf /mnt/hda4/knxsource/KNOPPIX/.rr_moved
    4. Now we'll make the big KNOPPIX file which is a cloop compressed ISO 9660 filesystem : mkisofs -R -U -V "KNOPPIX.net filesystem" -P "KNOPPIX www.knoppix.net" -hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda4/knxsource/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/hda4/knxmaster/KNOPPIX/KNOPPIX
    5. if all went well, onto making the final CD-ROM Image :
    6. cd /mnt/hda2/knxmaster
    7. mkisofs -pad -l -r -J -v -V "KNOPPIX" -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /some/where/knoppix.iso /mnt/hda2/knxmaster ( replace /some/where/ with where you want to store the final image ready for burning. )
    8. all done!


    Thats it. This is an updated version of my previous howto. This is not meant for linux beginers, you will need to know your way around linux... to get this to work. I'll update this as corrections/improvemtns/etc come through.

    Thanks to aay for some corrections

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    1.5 Gig of RAM?

    Thanks for the howto on remastering knoppix. This is something that I'd really like to do. However if having 1.5 Gig of RAM is a requrirement for this proceedure, it's doubtful that many people will be able to do this. Maybe I misunderstood you. Were you saying that the total amount of RAM and swap needs to add up to 1.5 gig? That's certainly more reasonable.

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818

    Re: 1.5 Gig of RAM?

    Quote Originally Posted by aay
    Thanks for the howto on remastering knoppix. This is something that I'd really like to do. However if having 1.5 Gig of RAM is a requrirement for this proceedure, it's doubtful that many people will be able to do this. Maybe I misunderstood you. Were you saying that the total amount of RAM and swap needs to add up to 1.5 gig? That's certainly more reasonable.
    The total of SWAP and RAM added together needs to be 1.5Gig. so you'll do fine with 256MB ram and 1.25 gig swap.

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    Re: 1.5 Gig of RAM?

    Thanks. I thought for sure I must be missunderstanding you. I look forward to giving this a try....when I've got some time! BTW, Great site!

  5. #5
    andrej
    Guest

    Changes to /etc/skel

    I've added some directories and files to /etc/skel but they don't appear in /home/knoppix.
    (if i use adduser knoppix2, these files do appear in /home/knoppix2) what do i need to change to copy these files from /etc/skel/ to /home/knoppix ?

    Thanks,
    Andrej

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818

    Re: Changes to /etc/skel

    Quote Originally Posted by andrej
    I've added some directories and files to /etc/skel but they don't appear in /home/knoppix.
    (if i use adduser knoppix2, these files do appear in /home/knoppix2) what do i need to change to copy these files from /etc/skel/ to /home/knoppix ?

    Thanks,
    Andrej
    hmm I'll have to check up on this.. i think you need to check the permissions. make the ownership/permissions the same as the other files.

  7. #7
    TimSanders
    Guest

    Addressing the speed issue on a remastered CD

    Somewhere there is a how-to and a script (from Klaus?) on how to re-order the files on the remastered CD image so that the new CD will run as fast as the original KNOPPIX. If this isn't done, I have read posts that say it runs quite a bit slower. YMMV

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818

    Re: Addressing the speed issue on a remastered CD

    Quote Originally Posted by TimSanders
    Somewhere there is a how-to and a script (from Klaus?) on how to re-order the files on the remastered CD image so that the new CD will run as fast as the original KNOPPIX. If this isn't done, I have read posts that say it runs quite a bit slower. YMMV
    no howto but some scripts, in them is commands to order the files..
    http://listas.hispalinux.es/pipermai...er/000046.html

  9. #9
    blivius
    Guest

    file ordering with KNOPPIX.build

    I use Klaus's KNOPPIX.build scripts to do my remastering with great success.
    But the one thing I have yet to figure out is how to order files on the CD
    when making the iso.

    Unless I'm missing something his script looks for a file "/KNOPPIX.build/mkisofs.sort"
    and if it exists it sorts per the way files are arranged in that file. How Klaus creates
    "/KNOPPIX.build/mkisofs.sort" remains a mystery to me.

    eadz, if you like I can provide you with the slightly modified KNOPPIX.build
    scripts I use plus a small how-to that explains their usage. Do you have a
    download area?

    Regards,
    blivius

  10. #10
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    Re: file ordering with KNOPPIX.build

    I for one would like to have a chance to see the script and the howto that blivius mentions. Sounds like it would be helpful. I'm hoping that after a little more light is shed on the file ordering issue, eadz will be able to incorporate this knowledge into his howto. This is certainly proving enlightening.

Page 1 of 3 123 LastLast

Similar Threads

  1. Remastering Suite V1.01 released! Easy Knoppix-Remastering
    By PrOCesSkIlL in forum Customising & Remastering
    Replies: 29
    Last Post: 04-02-2004, 01:32 AM
  2. point to add to Remastering HowTo ?
    By Alexxx in forum Customising & Remastering
    Replies: 3
    Last Post: 02-24-2004, 08:02 PM
  3. berlios minicd remastering howto???
    By hanx in forum Customising & Remastering
    Replies: 1
    Last Post: 09-02-2003, 05:31 AM
  4. Remastering Scripts : easy remastering
    By MichielioZ in forum Customising & Remastering
    Replies: 11
    Last Post: 04-15-2003, 12:13 AM
  5. Let us write one Knoppix-HowTo together
    By Robert Michel in forum Ideas
    Replies: 7
    Last Post: 03-06-2003, 11:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1x64GB Hynix HMAA8GL7MMR4N DDR4 PC4 2133P-LE0-11 4Rx4 ECC LRDIMM Server RAM picture

1x64GB Hynix HMAA8GL7MMR4N DDR4 PC4 2133P-LE0-11 4Rx4 ECC LRDIMM Server RAM

$320.00



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$288.19



Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G) picture

Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G)

$89.99



Micron 8GB DDR4 3200MHz PC4-3200AA ECC RDIMM RAM (MTA9ASF1G72PZ-3G2E2 picture

Micron 8GB DDR4 3200MHz PC4-3200AA ECC RDIMM RAM (MTA9ASF1G72PZ-3G2E2

$30.00



Samsung 32GB DDR5-4800 ECC RDIMM 2Rx8 PC5-38400 Server RAM M321R4GA3BB6-CQK picture

Samsung 32GB DDR5-4800 ECC RDIMM 2Rx8 PC5-38400 Server RAM M321R4GA3BB6-CQK

$1099.99



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory picture

SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory

$159.98



x4 Intel 128GB NMB1XXD128GPS Optane Memory 200 Series PMEM Module 3200 DDR4 RAM picture

x4 Intel 128GB NMB1XXD128GPS Optane Memory 200 Series PMEM Module 3200 DDR4 RAM

$329.99