Results 1 to 5 of 5

Thread: Dirty Little KNOPPIX Remastering

  1. #1
    Junior Member registered user
    Join Date
    Oct 2003
    Posts
    17

    Dirty Little KNOPPIX Remastering

    Hi all,

    last days I found that pretty well Linux Distribution KNOPPIX and I must say: NICE WORK!

    After some testing, I decided to try to remaster the CD to my own needs.
    First tries failed

    But after reading some docs it works fine.

    Now, I am writing some remastering tools. One of the first tools is fs-reengine, written in php, running in the command-shell with php-cgi!

    You can download the tool at http://linuxcracks.bravehost.com/fs-reengine.png

    What is fs-reengine?
    fs-reengine is a tool, which scans the filesystem at the given entry point and renames/relinks/remasters the filesystem-contents (files/links/dirs), based on a list of replacements-2-make.

    Why do I need fs-reengine?
    I don't know! But I use it to mass-reconfigure the KNOPPIX configuration files and directory names to remaster the CD

    How to use the tool?
    First of all you should have the KNOPPIX-CD booted (I used Version 3.3), in runlevel 2. Therefore you have to type knoppix 2 at the boot prompt (when you can see the KNOPPIX boot-screen).

    STARTING FROM SCRATCH

    After KNOPPIX has finished its booting process to runlevel 2, you'll need a harddisk with at least 5 GB of free space.

    I recommend, that you have created a partitition with 5 or more GB of free space and formatted it with an EXT3 filesystem. So let's call this partition /dev/hda5 for our example (maybe your device name depends).

    Any of the following commands you should type is highlighted blue. (Beware! Change the /dev/hda5 and /mnt/hda5 to your needs!)

    Lets create the mount point, mount our harddisk and create the directories we need:

    root@KNOPPIX# touch /mnt/hda5
    root@KNOPPIX# mount /dev/hda5 /mnt/hda5
    root@KNOPPIX# cd /mnt/hda5
    root@KNOPPIX# mkdir /knx
    root@KNOPPIX# mkdir /knx/master
    root@KNOPPIX# mkdir /knx/source
    root@KNOPPIX# mkdir /knx/iso

    Now, we have to copy the data in the /cdrom directory:

    root@KNOPPIX# cp -av /cdrom/* /mnt/hda5/knx/master

    Take a beer and relax, this may take a while

    After that we have to copy the root-fs itself:

    root@KNOPPIX# cp -av /KNOPPIX /mnt/hda5/knx/source

    Take a bigger beer, this will take some time, too

    Its a good choice, to make your Internet-Connection work now!

    However, change to the source/KNOPPIX directory and make it chrooted, and don't forget to mount the proc fs :

    root@KNOPPIX# cd /mnt/hda5/knx/source/KNOPPIX
    root@KNOPPIX# chroot .
    root@KNOPPIX# mount -t proc /proc proc

    Let's make the internet work for our chrooted environment:

    root@KNOPPIX# echo "nameserver 145.253.2.203" >/etc/resolv.conf

    ...little test...

    root@KNOPPIX# ping denic.de -c 4

    ...a positive response is recommended here...

    Lets get some updates and a little "workaround" for our fs-reengine tool.

    root@KNOPPIX# apt-get update
    ...
    root@KNOPPIX# apt-get install php4-cgi

    ...if this fails, read the remastering howtos first...

    root@KNOPPIX# ln -s /usr/bin/php4 /usr/bin/php

    Now a hard part....you have to edit /etc/php4/cgi/php.ini and set a part to the following values:

    Code:
    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;
    
    max_execution_time = 86400     ; Maximum execution time of each script, in seco
    memory_limit = 64M      ; Maximum amount of memory a script may consume (8MB)
    We grab our dirtly little helper now:

    root@KNOPPIX# cd /root
    root@KNOPPIX# wget http://linuxcracks.bravehost.com/fs-reengine.png
    root@KNOPPIX# mv -f fs-reengine.png fs-reengine.tgz
    root@KNOPPIX# tar -xvzf fs-reengine.tgz
    root@KNOPPIX# cd Helpers

    Now enter...

    root@KNOPPIX# ./fs-reengine --help

    ...this should print something like...

    Code:
    FileSystem - Re-engineerer V1.2 - written by -=PRoCesSkIlL=-
    
    Usage: ./fs-reengine /absolutePath [options...] [extra-options...]
    
    Available options are:
    
    --write-logs                            => Write Logfiles to /tmp
    --rebuild-files                         => Rebuild the contents of files
    --rename-files                          => Rename regular files
    --re-link                               => Rename / Change target of links
    --rename-dirs                           => Rename directories
    --all-options                           => Use all listed options above
    
    Available extra-options are:
    
    --translation-file "/fileName"          => Use a specified translation file
    --reverse-order                         => Use the translation in reverse order
    --exclude-names "/fil1;/fil2;/dir1..."  => Exclude the given files/links/dirs (Semicolon seperated)
    
    Other commands:
    
    --help                                  => Show this help context
    
    Written by -=PrOCesSkIlL=-
    To re-order your filesystem, edit the file /root/Helpers/translation.cfg to your own needs. Structure is:

    OLDNAME ~~ NEWNAME

    an example file is attached!

    If you want to convert the hole filesystem of KNOPPIX enter something like:

    root@KNOPPIX# /root/Helpers/fs-reengine / --all-options --exclude-names "/var/lib/dpkg;/var/lib/apt"

    (...may take about 2 hours or more, depending on your system...)

    Be sure that you have entered: exclude-names "/var/lib/dpkg;/var/lib/apt" this tag, or dpkg and apt could fail after remastering.

    Your filesystem is remastered now At this point follow the instructions of the remastering how-to.

    Feel free to play around

  2. #2
    Junior Member registered user
    Join Date
    Oct 2003
    Posts
    17

    Big Boot-Images

    Re

    I heard some questions about bigger boot-floppy images

    Here's is one answer:

    Code:
    root@KNOPPIX# dd if=/dev/zero of=/tmp/boot288.img count=5760
    root@KNOPPIX# mkfs -t vfat /tmp/boot288.img
    root@KNOPPIX# mkdir /tmp/boot.288
    root@KNOPPIX# mkdir /tmp/boot.old
    root@KNOPPIX# mount /cdrom/KNOPPIX/boot.img /tmp/boot.old -o loop
    root@KNOPPIX# mount /tmp/boot288.img /tmp/boot.288 -o loop
    root@KNOPPIX# cp -a /tmp/boot.old/* /tmp/boot.288
    
    ...   :oops: did I forget to tell you, download syslinux-2.06 ???  :D  ...
    
    root@KNOPPIX# umount /tmp/boot.old
    root@KNOPPIX# umount /tmp/boot.288
    root@KNOPPIX# syslinux /tmp/boot288.img
    now you edit boot288.img to your needs (add busybox for example, as I did ) and copy /tmp/boot288.img to ...../KNOPPIX/boot.img!Remaster and have fun!
    [/code]

  3. #3
    Junior Member registered user
    Join Date
    Oct 2003
    Posts
    17

    fs-reengine feedbacks

    Again

    before I forget, please tell me your opinions and experiences with fs-reengie

    Starter Bugs, post here please

    THANKS

  4. #4
    Junior Member registered user
    Join Date
    Oct 2003
    Posts
    17

    fs-reengine moved

    FS-Reengine is now part of the Remastering - Suite. All updates can be found in http://download.ghostdrivers.de/remaster.php archiv.

  5. #5
    Junior Member registered user
    Join Date
    Jul 2003
    Posts
    12

    Sounds cool.

    Can you tell me, how to create a mini-size of Knoppix via remastering?
    I wanno get a mini version of Knoppix, remove all other softwares, only remain the Knoppix's features, such as hardware-auto-detection-and-installation, and auto-configuration the X config files, etc.

    I chrooted into the KNOPPIX, but the apt-get remove command and the dpkg -P command can not give me more help: too much packages needed to be remove, and I don't know their dependens.

    Or, on the other hand, we can draw out the only files that we need. That is, if I only want to remain the hardware-auto-detection-and-installation, and auto-configuration the X config files, and I wanno build my own mini-Knoppix-ISO, how?

    Thanks & regards,
    Hiweed

Similar Threads

  1. /dev/hda3 always dirty at bootup; why?
    By chethcoat in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-22-2004, 09:26 PM
  2. dirty source.list
    By fabiand in forum General Support
    Replies: 2
    Last Post: 08-05-2004, 12:09 AM
  3. Remastering Suite V1.01 released! Easy Knoppix-Remastering
    By PrOCesSkIlL in forum Customising & Remastering
    Replies: 29
    Last Post: 04-02-2004, 01:32 AM
  4. Replies: 3
    Last Post: 09-06-2003, 11:09 PM
  5. Remastering Scripts : easy remastering
    By MichielioZ in forum Customising & Remastering
    Replies: 11
    Last Post: 04-15-2003, 12:13 AM

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 Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11 picture

NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11

$450.00



Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU picture

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU

$7.95



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS picture

Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS

$127.54



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



HP Z840 44 Core Workstation 2x Xeon E5-2699 v4 - No RAM/ GPU/ HDD/ OS picture

HP Z840 44 Core Workstation 2x Xeon E5-2699 v4 - No RAM/ GPU/ HDD/ OS

$594.97



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$354.48



For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX picture

For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX

$149.99



Intel Xeon W-3245 3.2ghz 16-Core CPU OEM - 2019 Mac Pro 7,1 picture

Intel Xeon W-3245 3.2ghz 16-Core CPU OEM - 2019 Mac Pro 7,1

$395.95