06.03.2021, 17:31 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]
This tutorial is translated from the german wiki.
I have added a couple of things for remastering also with Kanotix 2005-04 which has X.org instead of XFree86?.

Tutorial for remastering from CD

(Abridgement from: http://www.knoppix.net/forum/viewtopic.php?t=18698 )

1 ) The most suitable thing is to create an own partition for the remastering.
It is suitable to create a 5GB partition for a 700MB CD.

2 ) Boot the Live CD ...

3 ) Open a terminalwindow and become root:
sudo su

4 ) Now mount the remaster-partition R/W (in this example this is hda7 with reiserfs):
mount -t reiserfs /dev/hda7 /mnt/hda7
mount -o remount,rw /dev/hda7 /mnt/hda7

5 ) Create the following folders:
mkdir /mnt/hda7/source
mkdir /mnt/hda7/source/KNOPPIX
mkdir /mnt/hda7/master
mkdir /mnt/hda7/master/KNOPPIX
mkdir /mnt/hda7/master/boot

6 ) Copy the necessary files:
cp -a /KNOPPIX/* /mnt/hda7/source/KNOPPIX
cp -a /cdrom/boot/* /mnt/hda7/master/boot
rm -f /mnt/hda7/source/KNOPPIX/etc/resolv.conf
cp /etc/resolv.conf /mnt/hda7/source/KNOPPIX/etc/resolv.conf
cp /etc/X11/XF86Config-4 /mnt/hda7/source/KNOPPIX/etc/X11/XF86Config-4

! It doesn't really give you a time advantage to create or copy the files with Konqueror
because it can make big problems with the file-rights -in this case you
can start from the beginning !

7 ) Now, we change into the copied listing and announce this as root (chroot):
cd /mnt/hda7/source
chroot KNOPPIX
mount -t proc /proc proc

-> all instructions and system processes refer now no longer to the CD as bootmedium,
but in the folder KNOPPIX at hda7/source

8 ) Copy now the basic configuration into the /home folder.
cd /home
cp -R /etc/skel knoppix
chown -R knoppix.knoppix knoppix/

Open the Midnight-Commander (mc as root in console), go to /etc/X11/Xwrapper.config,
and in the editmode by pressing the F4 key change the line:
Save it with the F2 key and go out from mc by pressing F10.

8.1) ! Additional steps to do when you are remastering Kanotix 2005-04 !:

First we need an internet-connection (the resolv.conf file alone doesn't make this anymore):
su netcardconfig

Now we need to re-install the X.org-xserver just to be able to start it.
But before we do that we need to delete a link that lead to /usr/X11R6:
rm -f /usr/bin/X11

Now we have to reinstall X.org:
apt-get update
apt-get --reinstall install xserver-xorg

Check if the reinstallation of X.org has created the link /usr/bin/X11 again; if not,
copy it from the CD or create it manually.
Check also that the owner of /tmp/.ICE-UNIX is set as root; if not:
chown -R root.root /tmp/.ICE-UNIX

9 ) Now we want to configure the environment of the standard user knoppix:
su knoppix
cd /home/knoppix
startx /usr/bin/startkde -- :1

When KDE starts, you can normally work within the environment.
You can install/deinstall packages, delete files, etc...
The one thing which can be changed only limited is the bootphase up to the window manager...
(also the package bootsplash cannot be installed/configured so easily)

Synaptic makes a very comfortable and clear working with packages; to install it
easily type "apt-get install synaptic" in console.

! Update the apt-get list with "apt-get update" before you install anything with apt !

Before you make a CD-remaster, consider that Kano had made the CD full which means
that you have to slim it; but consider also that you can burn the remaster also to a DVD.
When your system hasn't got any "Screens", then you made perhaps a mistake at:
cp /etc/X11/XF86Config-4 /mnt/hda7/source/KNOPPIX/etc/X11/XF86Config-4
You can also copy the XF86Config-4 file from your HD-installation.

10 ) You can delete unused files with:
deborphan | xargs apt-get -y --purge remove
deborphan --find-config | xargs dpkg --purge

(this makes the CD slimmer)

11 ) Go back to console with out-logging over the KMenu (exit session)

12 ) When we have finished this we must become root and reset a few things again:
sudo su
edit the line:
back to:
rm -fr /etc/X11/XF86Config-4
rm -fr /etc/X11/xorg.conf
change from:
nameserver x.x.x.x
Make sure you have deleted all X.org config- and log files in /etc/X11/

(If you wish to save your Internet-preferences, let the resolv.conf as it is
and change manually the /etc/network/interfaces; at the end of this tutorial there is an
example for a LAN-connection)

13 ) The user preferences must still be saved as a standard for the CD/DVD:
cd /home
rm -rf /etc/skel
mv knoppix/ skel
mv skel /etc
chown -R root.root /etc/skel

! If you move the /home/knoppix folder back to /etc/skel
you won't be able to use the UnionFS? driver !

14 ) Delete your cache files...
apt-get clean
apt-get autoclean
rm -f /etc/skel/.bash_history
rm -f /root/.bash_history

15 ) Now we change the root listing again and came back to the CD:
umount /proc

(a change between Chroot->KNOPPIX and CD-root is possible every time with

Who wants to change the Grub bootprocedure, can edit the file/mnt/hda7/master/boot/grub/menu.list
(instead of /mnt/hda7 indicate your partition)

Here is a script from Polarstern that makes automatically an iso-file
(the roots (=Pfad in german) in the script must be customised).

Here is his script that you can start wonderfully as iso.sh from the main root in your remaster partition
(it doesn't matter from where you start this script):

# Create Iso Image

SOURCE=source #

function pack_image
echo \"Lösche \"$PFADIMAGE\"/KNOPPIX\"
echo \"Lösche \"$PFADSOURCE\"/root/*\"
rm -dfr $PFADSOURCE/root/*
rm -dfr $PFADSOURCE/root/.*
echo \"Lösche \"$PFADSOURCE\"/var/tmp/*\"
rm -dfr $PFADSOURCE/var/tmp/.*
rm -dfr $PFADSOURCE/var/tmp/*
mksquashfs $PFADSOURCE $PFADIMAGE/KNOPPIX -info # compress files

function pack_iso
mkisofs -pad -l -r -J -v -V \"KNOPPIX\" -no-emul-boot -boot-load-size 4 -boot-info-table -b
boot/grub/iso9660_stage1_5 -c boot/grub/boot.cat -hide-rr-moved -o $PFADHD/KNOPPIX.iso


function test_kdialog
if [ $TEST = abbruch ]
then echo \"exit was selected\"
if [ $TEST = iso ]
then echo \"pack_iso\"
if [ $TEST = pack ]
then echo \"test_source\"

function test_source
if test -d $PFADSOURCE
echo \" pack_image \"
echo \" pack_iso\"
kdialog --sorry \"No Kanotix source roots found\"

then TEST=$(kdialog --menu \"KNOPPIX-IMAGE found What shall happen next ?\" abbruch

\"Close Program ?\"
iso \"Create only KNOPPIX.ISO\" pack \"Compress again & create KNOPPIX.ISO\")

Here is an example /interfaces for LAN Connection with firm IP:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback

iface eth0 inet static
# Firm IP-adress (\"static\")
# Subnetmask is mostly so correctly, details can you take from the provider
# Network is the IP-range in that the IP is assigned, defined with xxx.xxx.xxx.0
# Broadcast can, i think so, be arbitrary ;) but in according to the IP it is correct...
# Which computer takes your calls ? - that is than your gateway.
# Not to confound with the DomainNameServer? (DNS) ! That stands in /etc/resolv.conf

I hope i can help someone with that.
In different places in the forum you can hear, that the remastering can take a few hours.
As an inviting example I would like to say that the remastering took me - i mean the
compressing to the iso and afterwards to the CD-iso - with a 1,5 Ghz processor,
everything altogether only 1 hour. Thats not really much ...

Here is the original thread from the forum (in german):
.. link

Have fun with your "own" Kanotix variation, and again thanks to Polarstern !

original text by Polarstern
wiki text by XOn
translated into English and added some few things by konqueror
XML Revisions of $tag
Seiten-History :: Letzter Editor : slam :: Eigentümer : slam ::
Powered by pnWikka 1.0
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.