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 R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux picture

Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux

$836.80



Toshiba Magnia SG20 VPN Linux server Web server (No HDD, *Read*) - picture

Toshiba Magnia SG20 VPN Linux server Web server (No HDD, *Read*) -

$41.53



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00



IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8 picture

IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8

$449.96



IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E picture

IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E

$674.96



PFSENSE 15

PFSENSE 15" Depth Server Router Firewall Supermicro X11SSH-F E3-1240 V5 32GB RAM

$382.00



IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L picture

IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L

$599.95



IBM Power 9 S922 8-Core 3.4-3.9Ghz 128Gb DDR4 2U Linux Server - 9009-22a picture

IBM Power 9 S922 8-Core 3.4-3.9Ghz 128Gb DDR4 2U Linux Server - 9009-22a

$2999.96



Ubuntu 22.04.3 Desktop, Server, and Studio DVD Set SAME DAY SHIPPING picture

Ubuntu 22.04.3 Desktop, Server, and Studio DVD Set SAME DAY SHIPPING

$7.49



POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives picture

POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives

$179.99