-
Junior Member
registered user
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
-
Junior Member
registered user
-
Junior Member
registered user
-
Junior Member
registered user
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.
-
Junior Member
registered user
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
-
By chethcoat in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 08-22-2004, 09:26 PM
-
By fabiand in forum General Support
Replies: 2
Last Post: 08-05-2004, 12:09 AM
-
By PrOCesSkIlL in forum Customising & Remastering
Replies: 29
Last Post: 04-02-2004, 01:32 AM
-
By in forum Tips and Tricks
Replies: 3
Last Post: 09-06-2003, 11:09 PM
-
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
-
Forum Rules
![Lenovo ThinkStation P920 2x Xeon Gold 6128 3.40GHZ 128GB DDR4 RAM No HDD TESTED picture](/store/img/prkAAOSwafdmmXon/s-l225//Lenovo-ThinkStation-P920-2x-Xeon-Gold-6128-3-40GHZ.jpg)
Lenovo ThinkStation P920 2x Xeon Gold 6128 3.40GHZ 128GB DDR4 RAM No HDD TESTED
$504.95
![HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA picture](/store/img/rIQAAOSwN9Nlnw4a/s-l225//HP-Workstation-Z640-2x-Xeon-E5-2623V3-32GB-Ram-2x2.jpg)
HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA
$154.98
![Matched pair Intel Xeon E5-2667v4 SR2P5 3.20GHz, 8 core, 25MB Processors LGA2011 picture](/store/img/zYMAAOSwhh1mdEYc/s-l225//Matched-pair-Intel-Xeon-E5-2667v4-SR2P5-3-20GHz-8-.jpg)
Matched pair Intel Xeon E5-2667v4 SR2P5 3.20GHz, 8 core, 25MB Processors LGA2011
$62.95
![HP Z230 Workstation Towers Xeon E3-1231 V3 3.20ghz 8GB Ram NO HDD picture](/store/img/XR8AAOSwOV9mOOTQ/s-l225//HP-Z230-Workstation-Towers-Xeon-E3-1231-V3-3-20ghz.jpg)
HP Z230 Workstation Towers Xeon E3-1231 V3 3.20ghz 8GB Ram NO HDD
$35.96
![Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W picture](/store/img/hLcAAOSwA81iMQ7h/s-l225//Intel-Xeon-E5-2680-V4-CPU-2-4-3-3GHz-14-Core-35M-L.jpg)
Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W
$15.99
![Intel Xeon E5-2680 V3 2.50Ghz 12 Core 30MB Cache LGA 2011-3 CPU SR1XP Tested picture](/store/img/M1EAAOSwdAdjG8AH/s-l225//Intel-Xeon-E5-2680-V3-2-50Ghz-12-Core-30MB-Cache-L.jpg)
Intel Xeon E5-2680 V3 2.50Ghz 12 Core 30MB Cache LGA 2011-3 CPU SR1XP Tested
$5.90
![INTEL Xeon E5-2697 V4 SR2JV 2.30GHZ 18-Core CPU 2697v4 GRADE A CONDITION @ E picture](/store/img/RSEAAOSwt21kUDvm/s-l225//INTEL-Xeon-E5-2697-V4-SR2JV-2-30GHZ-18-Core-CPU-26.jpg)
INTEL Xeon E5-2697 V4 SR2JV 2.30GHZ 18-Core CPU 2697v4 GRADE A CONDITION @ E
$39.00
![Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5 picture](/store/img/U4wAAOSw~HJka8-T/s-l225//Intel-Xeon-Gold-6138-2-0GHz-27-5MB-20-Core-125W-LG.jpg)
Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5
$37.00
![HP Z2 Mini G3 Workstation Intel Xeon E3-1245 v6 3.70Ghz 32GB RAM No SSD No Hdd picture](/store/img/iHIAAOSwdKBlTpia/s-l225//HP-Z2-Mini-G3-Workstation-Intel-Xeon-E3-1245-v6-3-.jpg)
HP Z2 Mini G3 Workstation Intel Xeon E3-1245 v6 3.70Ghz 32GB RAM No SSD No Hdd
$174.00
![HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X picture](/store/img/itIAAOSwjT9mKCN6/s-l225//HP-Z440-Workstation-18Cores-Xeon-E5-2699-V3-128GB-.jpg)
HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X
$309.99