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
  •  


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$89.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R230 Single Intel Xeon E3-1220 v5 @3.00GHz 16GB RAM No HDD H330 picture

Dell PowerEdge R230 Single Intel Xeon E3-1220 v5 @3.00GHz 16GB RAM No HDD H330

$102.50



DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu picture

Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu

$135.00



Dell R730 8B LFF 2x 2.40GHz 14C Intel Xeon E5-2680 v4 32GB RAM 2x 3TB HDD HBA330 picture

Dell R730 8B LFF 2x 2.40GHz 14C Intel Xeon E5-2680 v4 32GB RAM 2x 3TB HDD HBA330

$299.99



Dell PowerEdge R710 2.5

Dell PowerEdge R710 2.5" 2U Server 2x X5670 2.93GHZ 12-Core 128gb 2x 1TB SAS

$214.99



DELL PowerEdge R730XD 12LFF 2SFF 2x E5-2620v4 2.1GHz =16 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730XD 12LFF 2SFF 2x E5-2620v4 2.1GHz =16 Cores 32GB H730 4xRJ45

$490.00



DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 256GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 256GB H730 4xRJ45

$600.00