PDA

View Full Version : Modified Remaster Script



JimmyJazz
06-30-2006, 01:41 PM
For a Lab course at the university, I had to implement a KNOPPIX remaster script.
It worked both on my desktop machine and on my notebook.
OS was in both cases Ubuntu (5.10 and 6.06).
All Software Requirements were available via APT-GET...

It is based on the script of Fabian Franz and Ian Naylor.
It was implemented for KNOPPIX 4.0.2 but it also works on KNOPPIX 5.0.1

You can download it here:
http://medphys.me.funpic.de/KNOPPIX-Remaster.tar

Here are my instructions:

Software Requirements
----------------------
:.. BASH (The GNU Bourne Again SHell)
:.. Xdialog (Displays user-friendly dialog boxes from shell scripts)
:.. mkisofs
:.. cloop-utils

Hardware Requirements
----------------------
:.. ~ 3 GB of free disk space (ext2 or ext3)

Manual
----------------------
0 Execute the BaSh script as root
-> sudo bash /path/to/remaster.sh

1 Extract compressed file system to hard disk

1.a) Extract an existing ISO file
Choose path to file and your desired path to the remaster.
1.b) Extract file system from CD
Choose the path to the CDROM (e.g. /media/cdrom) and your desired path to the remaster.
1.c) Choose existing remaster
This folder should contain a source and master folder.
The source folder contains the extracted uncompressed file system
The master folder contains the "new CDROM", i.e. the compressed KNOPPIX file and the boot files
1.d) Quit the program

2 Manipulate file system

2.a) Chroot into remaster and get a terminal prompt to modify source (be sure that resolv.conf is located in /etc).
You can also copy some extra files by hand to the master directory.
If you are behind a proxy server you have to add it here.
2.b) Create compressed file system of your source files and copy to master folder
2.c) Create ISO file of your master directory
2.d) Delete the folder you selected in 1) (mostly the one in 1.c)
2.e) Quit the program

tr
07-03-2006, 07:01 PM
It is based on the script of Fabian Franz and Ian Naylor.
It was implemented for KNOPPIX 4.0.2 but it also works on KNOPPIX 5.0.1


Just for information: Remaster script by Fabian Franz http://debian.tu-bs.de/knoppix/remaster/remaster_0.1-6_i386.deb works also with Knoppix 5.0.1. I say this by my experience. Those scripts are not so old as they looks alike - Fabian has repacked them to support e.g. new bash version.

If you like to replace knoppix-autoconfig by live-autoconfig as in Kanotix, just change knoppix-autoconfig to live-autoconfig in knoppix-3.4.mkcompressed file (line 122 in my slightly modified file):


MYLOCALE=$(awk -F'[="_]' '/^(LANG|LANGUAGE)=/{if(!/[$]/){x=x" "$3}}END{print x}' /etc/init.d/live-autoconfig)


... and rename original knoppix-autoconfig file or make a sybolic link


ln -s /etc/init.d/knoppix-autoconfig /etc/init.d/live-autoconfig

-tapsa-

JimmyJazz
07-04-2006, 05:40 PM
Oh, I did not want to say that Fabian's script is not working with KNOPPIX 5.
I just implemented and tested it with version 4 and was happy that it works with ver. 5, too.

Thanks for the advices....