<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://mail.knoppix.net/wiki3/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://mail.knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=FrE</id>
		<title>Knoppix Documentation Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://mail.knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=FrE"/>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Special:Contributions/FrE"/>
		<updated>2026-09-17T03:56:35Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://mail.knoppix.net/wiki/Knoppix_Remastering_Howto_French</id>
		<title>Knoppix Remastering Howto French</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Knoppix_Remastering_Howto_French"/>
				<updated>2005-04-23T15:58:46Z</updated>
		
		<summary type="html">&lt;p&gt;FrE: un '''Bold text''' qui n'avait rien a faire là a été envlevé&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Traductions: ==&lt;br /&gt;
* Version Anglaise: [[Knoppix Remastering Howto]]&lt;br /&gt;
* Version Allemande: [[Knoppix Remastering Howto Deutsch]]&lt;br /&gt;
* Version Espagnole: [[Knoppix Remastering Howto Spanish]]  en espagnol&lt;br /&gt;
----&lt;br /&gt;
== Voir aussi : ==&lt;br /&gt;
* Si vous voulez ajouter un noyau personnalisé, regardez le [[Knoppix Custom Kernel Howto]]&lt;br /&gt;
* Il y a aussi un guide aux éditions O'reilly sur le même sujet : [[http://linux.oreillynet.com/lpt/a/4323 Utiliser et personnaliser Knoppix]]&lt;br /&gt;
----&lt;br /&gt;
=== Ceci est un guide qui va vous montrer comment remasteriser KNOPPIX ===&lt;br /&gt;
(Notes : Les commandes doivent apparaitre sur une ligne, maximisez la fenêtre s'il vous plait. Si vous avez des commentaires/suggestions, merci de les poster ci-dessous.)&lt;br /&gt;
&lt;br /&gt;
Vous voulez peut être commencer à partir d'une Knoppix déjà personnalisée, si tel est le cas vous n'avez probablement pas autant de travail à faire (comme enlever des programmes). Si vous êtes dans ce cas, voir [[Knoppix Customizations]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Système Requis: ====&lt;br /&gt;
*CD-ISO&lt;br /&gt;
** Au moins 1 GB de mémoire RAM+Swap libre totale (ex 256M ram, et 750M swap DISPONIBLE) (à moins que vous utilisiez un programme de compression différent - voir cette page pour [[http://projects.openoffice.nl/downloads/compressloop/ compressloop]])&lt;br /&gt;
** 3 GB de libre sur une partition '''Linux filesystem (ext2/3, xfs, etc.)''' formattée&lt;br /&gt;
*DVD-ISO&lt;br /&gt;
** 5 GB de RAM + swap libre (pour le DVD en entier)&lt;br /&gt;
** 15 GB de libre sur une partition '''Linux filesystem (ext2/3, xfs, etc.)''' formattée&lt;br /&gt;
&lt;br /&gt;
==== Instructions: ====&lt;br /&gt;
&lt;br /&gt;
# Booter à partir du ''Knoppix CD''&lt;br /&gt;
# Ouvrir un shell root :&lt;br /&gt;
** Menu: Kmenu-&amp;gt;Knoppix-&amp;gt;Shell Root&lt;br /&gt;
** Note: Toutes les commandes ci-dessous s'éxecutent à partir de ce shell root.&lt;br /&gt;
# Configurer votre connexion internet (nous en aurons besoin plus tard). Si vous utilisez DHCP, cela devrait déjà être configuré.&lt;br /&gt;
** Note: Executez '''ifconfig''' pour vérifier.&lt;br /&gt;
# Trouver la partition que vous utiliserez pour travailler. Dans cet exemple, elle est appellée '''hda1''' . La partition devrait avoir au minimum 3 GB d'espace libre.&lt;br /&gt;
# Monter la partition:&lt;br /&gt;
** '''mount -rw /dev/hda1 /mnt/hda1'''&lt;br /&gt;
** Note: Soyez sûr d'avoir les droits en lecture/écriture ou vous aurez des erreurs lors du chroot plus tard. Pour vérifier: éxecuter '''mount'''&lt;br /&gt;
# Créer un repertoire racine pour travailler dedans:&lt;br /&gt;
** '''mkdir /mnt/hda1/knx'''&lt;br /&gt;
** Si vous mettez tous vos fichiers ici, ils seront plus facile à nettoyer&lt;br /&gt;
# Si vous n'avez pas 1 GB de RAM ('''cat /proc/meminfo''' (physical+swap)) alors vous devrez avoir un fichier de swap:&lt;br /&gt;
** '''cd /mnt/hda1/knx ; dd if=/dev/zero of=swapfile bs=1M count=750 ; mkswap swapfile ; swapon swapfile'''&lt;br /&gt;
# Créer 2 repertoires, un pour votre nouveau Master CD, un pour les sources, sur une partition. Créer également des répertoires additionnels sous celui-ci nommé KNOPPIX:&lt;br /&gt;
** '''mkdir -p /mnt/hda1/knx/master/KNOPPIX'''&lt;br /&gt;
** '''mkdir -p /mnt/hda1/knx/source/KNOPPIX'''&lt;br /&gt;
# Maintenant, copiez les fichiers KNOPPIX vers votre répertoire source :&lt;br /&gt;
'''cp -Rp /KNOPPIX/*''' '''/mnt/hda1/knx/source/KNOPPIX '''&lt;br /&gt;
** Note: Cela peut prendre un petit momment&lt;br /&gt;
# Copier la page HTML principale pour la page de démarrage :&lt;br /&gt;
** '''cp /cdrom/index.html /mnt/hda1/knx/master/ '''&lt;br /&gt;
# Copier tout les fichiers nécessaires execpté le fichier KNOPPIX de ~700 Mb .&lt;br /&gt;
** &amp;lt; 3.4: '''cd /cdrom/KNOPPIX;find . -size -10000k -type f -exec cp -p --parents '{}' /mnt/hda1/knx/master/KNOPPIX/ \;'''&lt;br /&gt;
** 3.4: '''cd /cdrom;find . -size -10000k -type f -exec cp -p --parents '{}' /mnt/hda1/knx/master/ \;'''&lt;br /&gt;
# Maintenant, vous pouvez &amp;quot;chrooter&amp;quot; dans l'arborescence copiée du fichier KNOPPIX:&lt;br /&gt;
** '''chroot /mnt/hda1/knx/source/KNOPPIX'''&lt;br /&gt;
&lt;br /&gt;
Si vous avez un ensemble d'erreurs '''/dev/null permission denied''', vous devriez faire ce qui suit. Ceci peut arriver si vous sauvez vos données configurées pour la Knoppix sur la même partition que celle que vous utilisez, ET si vous démarrrez Knoppix avec '''knoppix home=scan'''.&lt;br /&gt;
&lt;br /&gt;
Vérifiez l'état de vos montages si vous rencontrez le probleme: '''mount /dev/hdaX on /mnt/hdaX type ext3 (rw,nosuid,nodev)''' (remplacer X par le numéro de votre partition)  où &amp;quot;nodev&amp;quot; signifie que vous n'avez pas accès au système de fichier monté et que vous ne pouvez ainsi pas acceder à /dev/null. Alors que cetains scripts ont besoin de rediriger leur sortie vers /dev/null ... Pour résoudre ceci, vous devez monter la partiton cible avant de &amp;quot;chrooter&amp;quot;, comme ca :&lt;br /&gt;
 ^d  # control+d sortira de l'environnement chroot&lt;br /&gt;
 mount /dev/hda1 /mnt/hda1&lt;br /&gt;
Vous devriez ensuite voir:&lt;br /&gt;
 mount /dev/hda1 on /mnt/hda1 type ext3 (rw)&lt;br /&gt;
&lt;br /&gt;
Si les erreurs &amp;quot;/dev/null&amp;quot; persistent, faites alors avant le chroot :&lt;br /&gt;
 mount --bind /dev /mnt/hda1/knx/source/KNOPPIX/dev&lt;br /&gt;
Vous devez démonter /mnt/hda1/knx/source/KNOPPIX/dev avant de construire l'image du CD ou bien votre répertoire /dev sur le CD sera en bordel !&lt;br /&gt;
&lt;br /&gt;
Ensuite vous pouvez continuer et chrooter.&lt;br /&gt;
&lt;br /&gt;
* Vous êtes maintenant &amp;quot;chrooter&amp;quot;. &amp;quot;/&amp;quot; est en fait &amp;quot;/mnt/hda1/knx/source/KNOPPIX&amp;quot;&lt;br /&gt;
* Pour utiliser votre connexion internet you devez monter proc '''mount -t proc /proc proc'''&lt;br /&gt;
* Maintenant éditer /etc/resolv.conf et ajouter votre serveur de nom ou &amp;quot;sortir&amp;quot; du chroot et copier le fichier resolve.conf dans le dossier chrooté: '''cp /etc/dhcpc/resolv.conf vers /mnt/hda1/knx/source/KNOPPIX/etc/dhcpc/resolv.conf'''&lt;br /&gt;
* Changer aussi smb.conf vers votre groupe MS  si vous voulez le support smbd (MSHOME pour XP Familliale édition, et WORKGROUP  pour les Windows 9x).&lt;br /&gt;
* Vérifiez votre connection internet chrootée : '''ping google.com'''&lt;br /&gt;
* Mettez à jour votre list de paquet avec '''apt-get update'''&lt;br /&gt;
* Maintenant vous pouvez changer des trucs.&lt;br /&gt;
* '''Attention''': apt-get upgrade est une MAUVAISE IDEE. Cela va, très probablement, rendre votre KNOPPIX remasterisée inbootable, ou cassée en quelque sorte. Une méthode bien plus sûre est de seulement mettre à jour les paquets nécessaires&lt;br /&gt;
** Avant de pouvoir ajouter des choses, vous aurez probablement besoin d'enlever quelques packages.  Pour avoir une liste des packages installé, tapez ce qui suit:&lt;br /&gt;
'''*''' '''dpkg-query -l'''&lt;br /&gt;
** Si vous voulez une liste triée par taille (de cette façon vous vous pourrez vous débarassez des plus encombrants), tapez :&lt;br /&gt;
'''*''' '''dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n'''&lt;br /&gt;
** Pour enlever un paquet (et toutes ses dépendances), tapez:&lt;br /&gt;
'''*''' '''apt-get remove &amp;lt;name-of-package-to-remove&amp;gt;'''&lt;br /&gt;
** Pour vérifier les paquets orphelins, tapez:&lt;br /&gt;
'''*''' '''deborphan'''&lt;br /&gt;
** Pour vouloir économiser plus de place en se débarrassant de ces irritants orphelins (comme c'est cruel!), tapez ('''Attention''', vous n'aurez pas à confirmer pour enlever ces paquets. Quand vous pressez Entrée après cette commande, ces paquets '''seront partis'''):&lt;br /&gt;
'''*''' '''deborphan | xargs apt-get -y remove'''&lt;br /&gt;
** Si vous êtes incertain quand à la commande précèdente et voulez voir ce qu'il va se passer sans faire de changement, ajoutez simplement l'option '''-s''' à la commande apt-get comme cela (vous pouvez faire ça avec toutes les commandes apt-get, et c'est une bonne habitude d'utiliser cette option avant des opérations &amp;quot;massive&amp;quot; comme celle la):&lt;br /&gt;
'''*''' '''deborphan | xargs apt-get -s -y remove'''&lt;br /&gt;
** Maintenant les bonnes choses. Si vous voulez ajouter un package, tapez:&lt;br /&gt;
'''*''' '''apt-get install &amp;lt;name-of-package-to-install&amp;gt;'''&lt;br /&gt;
** Quoi, vous ne savez pas quel paquet installer ?  Tapez cela. Quand la liste apparait, vous pouvez lire attentivement (13000 lignes !) ou chercher des termes en utilisant '''/&amp;lt;terme-a-recherher&amp;gt;''':&lt;br /&gt;
'''*''' '''apt-cache search .* | sort | less'''&lt;br /&gt;
** Quand vous avez fini d'enlever et d'ajouter des paquets, un bon moyen de nettoyer est de taper:&lt;br /&gt;
'''*''' '''COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P'''&lt;br /&gt;
** De même,parce que le système des paquets Debian garde en cache ce qui a été téléchargé, vous pouvez éxecuter la commande suivante pour faire le ménage :&lt;br /&gt;
'''*''' '''apt-get clean'''&lt;br /&gt;
** les paramètres utilisateurs sont dans /etc/skel&lt;br /&gt;
** astuce: ne mettez pas de fichiers dans /root ils seront seulement disponible (durant l'éxecution) dans /KNOPPIX/root&lt;br /&gt;
* Unmount /proc - très important! '''umount /proc'''&lt;br /&gt;
* Presser '''CTRL+D''' pour quitter l'environnement chrooté.&lt;br /&gt;
&lt;br /&gt;
==== Notes : ====&lt;br /&gt;
&lt;br /&gt;
Quand vous testez des programmes basés sur X, vous aurez a faire '''export DISPLAY=localhost:0.0'''&lt;br /&gt;
&lt;br /&gt;
Quand vous voulez auto-éxecuter quelques programmes, créez un script et placez le dans le repertoire  /etc/rc5.d/ (Ceci charge seulement les items avant que X ne se charge)&lt;br /&gt;
&lt;br /&gt;
trucs interessants dans /etc/init.d/knoppix-autoconfig :&lt;br /&gt;
    * Le fichier fond d'écran est /cdrom/KNOPPIX/background.gif '''(dans knoppix 3.4: background.jpg)'''&lt;br /&gt;
    * Comme pour floppyconfig, il existe cdromconfig qui lancera cdrom/KNOPPIX/knoppix.sh&lt;br /&gt;
&lt;br /&gt;
trucs intéressants dans /etc/init.d/xsession :&lt;br /&gt;
* Ca place également le fond d'écran dans /usr/local/lib/knoppix.gif&lt;br /&gt;
&lt;br /&gt;
Maintenant, la création de l'image ISO :&lt;br /&gt;
&lt;br /&gt;
* nous avons fini de personnaliser et sommes prêt à graver !&lt;br /&gt;
* d'abord faire quelques nettoyages : ''' enlever le fichier .bash_history , les fichiers tmp etc '''&lt;br /&gt;
* '''rm -rf /mnt/hda1/knx/source/KNOPPIX/.rr_moved'''&lt;br /&gt;
* Maintenant, nous allons faire un gros fichier KNOPPIX qui est un système de fichier ISO 9660 cloop (compress loopback) compressé (cloop compressed ISO 9660 filesystem) : '''mkisofs -R -U -V &amp;quot;KNOPPIX.net filesystem&amp;quot; -publisher &amp;quot;KNOPPIX www.knoppix.net&amp;quot; -hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda1/knx/source/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 &amp;gt; /mnt/hda1/knx/master/KNOPPIX/KNOPPIX'''&lt;br /&gt;
&lt;br /&gt;
le &amp;quot;www.knoppix.net&amp;quot; et le &amp;quot;Knoppix.net filesystem&amp;quot; peuvent être changé par le nom que vous voulez donner au fichier. Vous aurez une erreur si vous ne respectez les standards de la norme ISO9660, sans trop grande importance.&lt;br /&gt;
&lt;br /&gt;
Dans Knoppix 3.4 le script create_compressed_fs a été mis à jour, utilisez le pour obtenir les meilleurs résultats.&lt;br /&gt;
Il possède une nouvelle option '''-b''' (best), qui permet une meilleure compression en utilisant différents arrangement de compression et essaye d'optimiser ce processus, mais soyez vigilant, parce que cette option est lente (10x plus lente).&lt;br /&gt;
&lt;br /&gt;
* Si tout va bien, faisons l'image du CD final :&lt;br /&gt;
* '''cd /mnt/hda1/knx/master'''&lt;br /&gt;
* '''rm -f KNOPPIX/md5sums; find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; &amp;gt;&amp;gt; KNOPPIX/md5sums''' (ceci va mettre à jour les hashages md5 des fichiers inclus dans l'ISO, utilisé pour les vérifications d'intégrité)&lt;br /&gt;
* Pour Knoppix &amp;lt;= 3.3: '''mkisofs -pad -l -r -J -v -V &amp;quot;KNOPPIX&amp;quot; -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /mnt/hda1/knx/knoppix.iso /mnt/hda1/knx/master''' (the ISO is stored in /mnt/hda1/knx/knoppix.iso)&lt;br /&gt;
* Pour Knoppix &amp;gt;= 3.4 ou autre distribution basée sur isolinux, faites:&lt;br /&gt;
'''mkisofs -pad -l -r -J -v -V &amp;quot;KNOPPIX&amp;quot; -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o /mnt/hda1/knx/knoppix.iso /mnt/hda1/knx/master''' (l'ISO est stockée dans /mnt/hda1/knx/knoppix.iso)&lt;br /&gt;
* Voila !&lt;br /&gt;
&lt;br /&gt;
=== Astuces ===&lt;br /&gt;
Si vous êtes à la recherche des gros paquets installés, alors la commande&lt;br /&gt;
: dpkg-awk &amp;quot;Status: .* installed$&amp;quot; -- Package Installed-Size | \&lt;br /&gt;
: awk '{print $2}' | egrep -v '^$' | xargs -n2 echo | \&lt;br /&gt;
: perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg&lt;br /&gt;
listera les paquets par taille en ordre décroissant.&lt;br /&gt;
Cette commande est 10 fois plus rapide&lt;br /&gt;
&lt;br /&gt;
: dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n&lt;br /&gt;
&lt;br /&gt;
et vous n'avez pas besoin de dpkg-awk ou awk ou perl.&lt;br /&gt;
&lt;br /&gt;
Si vous avez des problèmes avec la commande de tri précèdente, essayez d'utiliser KPackage, elle parcoure les arborescences et trie par taille à la recherche de gros paquets.&lt;br /&gt;
&lt;br /&gt;
Regardez du côté du programme &amp;quot;deborphan&amp;quot;, il liste les paquets orphelins que vous pouvez enlever, ces paquets étaient utilisés par des paquets qui sont maintenant enlevés.&lt;br /&gt;
&lt;br /&gt;
J'ai eu des bons résultats de remastering à partir du cd en tant que root, travaillant à partir de fluxbox. Choisir &amp;quot;knoppix 2&amp;quot; lors du boot et le système va démarrer sur une invite de commande root où vous pourrez dire &amp;quot;startx /usr/bin/fluxbox&amp;quot;. J'aime utiliser le shell unicode xterm.&lt;br /&gt;
&lt;br /&gt;
Lors du travail en chroot pour le remastering, j'aime bien utiliser &amp;quot;apt-get remove --purge nom-du-paquet&amp;quot; pour enlever les paquets parce que avant de faire quoi que ce soit cela va stopper et montrer les détails sur ce que apt va supprimer; il faut confirmer par &amp;quot;oui&amp;quot; ou &amp;quot;non&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Si vous n'utilisez pas l'instruction &amp;quot;apt-get&amp;quot; ci dessus et si vous avez beaucoup de ménage à faire, la façon la plus simple de faire est :&lt;br /&gt;
 &amp;quot;COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' &amp;gt;topurge&amp;quot;. Ceci fera une liste de tout les paquets enlevés à purger et ensuite vous n'avez plus qu'a faire  &amp;quot;dpkg -P `cat topurge `&amp;quot; et voila.&lt;br /&gt;
 &amp;quot;COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P&amp;quot; est la même chose en une ligne.&lt;br /&gt;
Aussi &amp;quot;deborphan &amp;gt;orphaned&amp;quot; puis &amp;quot;dpkg -P `cat orphaned `&amp;quot;. &amp;quot;deborphan | xargs dpkg -P &amp;quot; est une version en une seule ligne de cela.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ca y est. Ceci est une version mise à jour de mon précèdent howto. Il n'est pas destiné aux débutant sous linux, vous devriez avoir une bonne connaissance de linux pour tout faire fonctionner. Je le metterais à jour via des corrections et des améliorations bientôt.&lt;br /&gt;
&lt;br /&gt;
Merci a aay, charan, Tech2k, and #knoppix pour les quelques corrections, astuces et idées. Libre à vous d'éditer ou de compléter ce how-to&lt;br /&gt;
Note à propose de la swap:&amp;lt;br&amp;gt;&lt;br /&gt;
Vous n'avez pas réellement besoin d'1G de swap puisque il y a deux nouveaux outils de compressions de système de fichiers. Voila deux candidats pour faire des système de fichiers ''compressés'':&lt;br /&gt;
* Réecriture de Valentijn [http://projects.openoffice.nl/downloads/compressloop/]&lt;br /&gt;
* Port de compressloop par Quozl's pour la Knoppix 3.4 [http://quozl.linux.org.au/compressloop-1.9-64bit.c]&lt;br /&gt;
* Compressloop répartis par Quozl's (utiliser plus d'un processeur pour accelerer les choses) [http://quozl.linux.org.au/knoppix/compressloop/] or [http://quozl.netrek.org/knoppix/compressloop/]&lt;br /&gt;
* Patch de Justin [http://s.bouncybouncy.net/~justin/code/] (lien cassé) J'ai également écrit un compresseur réparti cloop (ou pour smp)  C'est dans le même repertoire.&lt;br /&gt;
&lt;br /&gt;
==== Astuce, tester le cd-image sans graver le cd ====&lt;br /&gt;
&lt;br /&gt;
Si vous avez une partition avec au moins 700MB  d'espace libre formattée en ext2, ext3 ou Vfat, vous pouvez l'utiliser pour tester en démarrant à partir d'une disquette. Une disquette de démarrage recherchera une partition avec /KNOPPIX dans la racine, et l'image compressée /KNOPPIX/KNOPPIX. Au lieu d'utiliser le sous répertoire /mnt/hda1/knx/master/KNOPPIX/ comme décrit précèdemment, il devrait être appellé /mnt/hda2/KNOPPIX/ . La racine index.html sera située dans /mnt/hda2/index.html et l'image compressée sera dans /mnt/hda2/KNOPPIX/KNOPPIX . Maintenant vous pouvez booter à partir de la disquette et utiliser /mnt/hda2 comme image. Pour plus d'informations voir [[Hd BasedHowTo]].&lt;br /&gt;
&lt;br /&gt;
Si vous n'avez pas de partitions supplémentaires ou si vous ne voulez pas en faire autant, vous pouvez utiliser Qemu (voir&lt;br /&gt;
[http://fabrice.bellard.free.fr/qemu/] ) avec l'image ISO comme ça:&lt;br /&gt;
'''qemu -m 128 -cdrom /temp/knoppix-custom.iso -boot d -user-net'''&lt;br /&gt;
Vous n'avez même pas à créer une image sur le disque dur avant, seulement installer Qemu et l'essayer. Stupéfiant!&lt;br /&gt;
&lt;br /&gt;
==== Démarrer les images Knoppix avec GRUB ====&lt;br /&gt;
* D'abord copier /boot du cd Knoppix cd vers votre partition de boot (ou même votre partition dos). J'ai nommé la mienne boot.knoppix&lt;br /&gt;
''' Copier le répertoire /KNOPPIX vers votre '''répertoire racine* d'un des diques dur. Vous pouvez le placer ailleurs que dans une partition de boot. (ext2/3, reiserfs, vfat sont supportés)&lt;br /&gt;
* Mettre les éléments suivants dans votre /boot/grub/menu.lst:&lt;br /&gt;
 title           KNOPPIX&lt;br /&gt;
 root            (hd0,0)&lt;br /&gt;
 kernel  /boot.knoppix/vmlinuz 2 fromhd=/dev/hda4 lang=us&lt;br /&gt;
 initrd  /boot.knoppix/miniroot.gz&lt;br /&gt;
* Remarquer le paramètre &amp;quot;fromhd&amp;quot;:  c'est l'emplacement du repertoire /KNOPPIX&lt;br /&gt;
* redémarrez et appreciez.&lt;br /&gt;
&lt;br /&gt;
Si mon how-to est trop confus, ou si vous voulez une secondes opinion, regardez le très joli remastering howto de charan :&lt;br /&gt;
http://gnubox.dyndns.org:8080/~sunil/knoppix.php .&lt;br /&gt;
Un autre howto est disponible à l'adresse http://www.stirnimann.com/mystuff/doc/knoppix.txt&lt;br /&gt;
&lt;br /&gt;
Il y a un assistant qui connais toutes les démarches d'installation, compression et gravure de CD mentionnées ici. Il propose également un shell ou vous pouvez mettre à jour la KNOPPIX décompressée en utilisant les outils standards Debian d'installation de logiciel. Il s'appelle mmkcdrom et fait partie du packaqe plugscript: [http://rcswww.urz.tu-dresden.de/~holzhey/plugscript]&lt;br /&gt;
&lt;br /&gt;
Encore un autre Howto, pour les adeptes du shell sur http://quozl.linux.org.au/knoppix/&lt;br /&gt;
&lt;br /&gt;
Soyez sûr de jeter un oeil à [http://knoppix.net/forum/viewforum.php?f=2 Knoppix Customization Forum] pour des idées et de l'aide concernant le remastering.&lt;br /&gt;
----&lt;br /&gt;
Une l'arborescence recommandée pour remasteriser une KNOPPIX:&lt;br /&gt;
 . (invoke ../remaster from here)&lt;br /&gt;
 |-- master (invoke ../../[[u]]mountbootimage from here)&lt;br /&gt;
 |   |-- KNOPPIX&lt;br /&gt;
 |   |   |-- KNOPPIX (compressed image)&lt;br /&gt;
 |   |   |-- boot.img (boot floppy image)&lt;br /&gt;
 |   |   `-- (other files snipped)&lt;br /&gt;
 |   `-- index.html&lt;br /&gt;
 `-- source&lt;br /&gt;
 `-- KNOPPIX (this directory can be chrooted into)&lt;br /&gt;
 |-- bin&lt;br /&gt;
 |-- boot&lt;br /&gt;
 |-- cdrom&lt;br /&gt;
 |-- dev&lt;br /&gt;
 |-- etc&lt;br /&gt;
 |-- floppy&lt;br /&gt;
 |-- home&lt;br /&gt;
 |-- initrd&lt;br /&gt;
 |-- lib&lt;br /&gt;
 |-- mnt&lt;br /&gt;
 |-- none&lt;br /&gt;
 |-- opt&lt;br /&gt;
 |-- proc&lt;br /&gt;
 |-- root&lt;br /&gt;
 |-- sbin&lt;br /&gt;
 |-- tmp -&amp;gt; /var/tmp&lt;br /&gt;
 |-- usr&lt;br /&gt;
 |-- var&lt;br /&gt;
 `-- vmlinuz -&amp;gt; boot/vmlinuz-2.4.22-xfs&lt;br /&gt;
----&lt;br /&gt;
Le script suivant &amp;quot;remaster&amp;quot; fera le processus de remasterisation à votre place. Lancez le en tant que root, ou il se terminera avec des erreurs d'accès sur l'image.&lt;br /&gt;
&lt;br /&gt;
Le script a été essayé sur une Debian sid le 02-04-2002&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash -x&lt;br /&gt;
 # This script builds a new KNOPPIX ISO image.&lt;br /&gt;
 # Copyright (C) 2004 by Marc Haber &amp;lt;mh+knoppix-remaster@zugschlus.de&amp;gt;&lt;br /&gt;
 # License: GPL V2&lt;br /&gt;
 &lt;br /&gt;
 ROOT=&amp;quot;$PWD&amp;quot;&lt;br /&gt;
 SOURCE=&amp;quot;$ROOT/source/KNOPPIX&amp;quot;&lt;br /&gt;
 MASTER=&amp;quot;$ROOT/master&amp;quot;&lt;br /&gt;
 CLOOPTARGET=&amp;quot;$ROOT/master/KNOPPIX/KNOPPIX&amp;quot;&lt;br /&gt;
 TARGET=&amp;quot;$ROOT&amp;quot;&lt;br /&gt;
 EXCLUDELIST=&amp;quot;$ROOT/source/excludelist&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 rm -rf $SOURCE/.rr_moved&lt;br /&gt;
 &lt;br /&gt;
 cd $SOURCE&lt;br /&gt;
 mkisofs -R -U -V &amp;quot;KNOPPIX.net filesystem&amp;quot; \&lt;br /&gt;
 -P &amp;quot;KNOPPIX www.knoppix.net&amp;quot; \&lt;br /&gt;
 -hide-rr-moved -cache-inodes -no-bak -pad \&lt;br /&gt;
 -exclude-list $EXCLUDELIST \&lt;br /&gt;
 . | nice -5 /usr/bin/create''compressed''fs - 65536 &amp;gt; $CLOOPTARGET&lt;br /&gt;
 &lt;br /&gt;
 cd $MASTER&lt;br /&gt;
 rm -f KNOPPIX/md5sums&lt;br /&gt;
 find -type f -not -name md5sums -not -name boot.cat -exec md5sum {} \; &amp;gt;&amp;gt; KNOPPIX/md5sums&lt;br /&gt;
 mkisofs -pad -l -r -J -v -V &amp;quot;KNOPPIX&amp;quot; -b KNOPPIX/boot.img \&lt;br /&gt;
 -c KNOPPIX/boot.cat -hide-rr-moved -o $TARGET/knoppix.iso $MASTER&lt;br /&gt;
----&lt;br /&gt;
The following script will loop-mount boot floppy image and initrd image for modification. The umount function will build a new initrd image and put it back on the boot floppy image.&lt;br /&gt;
&lt;br /&gt;
The script has last been tried out on Debian sid on 2004-01-13.&lt;br /&gt;
&amp;lt;!-- lines starting with space a preformatted --&amp;gt;&lt;br /&gt;
 #!/bin/bash -x&lt;br /&gt;
 # This script will loop-mount boot floppy and initrd image&lt;br /&gt;
 # Copyright (C) 2004 by Marc Haber &amp;lt;mh+knoppix-remaster@zugschlus.de&amp;gt;&lt;br /&gt;
 # License: GPL V2&lt;br /&gt;
 unset CDPATH || true&lt;br /&gt;
 &lt;br /&gt;
 # if not root, re-invoke self as root&lt;br /&gt;
 if [[ &amp;quot;`id -u`&amp;quot; -ne 0 ]]; then&lt;br /&gt;
 export LOCUSER=&amp;quot;$USER&amp;quot;&lt;br /&gt;
 export LOCHOME=&amp;quot;$HOME&amp;quot;&lt;br /&gt;
 if [[ &amp;quot;${SHELLOPTS/xtrace/}&amp;quot; != &amp;quot;$SHELLOPTS&amp;quot; ]]; then&lt;br /&gt;
 sudo bash -x $0 $@&lt;br /&gt;
 exit $?&lt;br /&gt;
 else&lt;br /&gt;
 sudo $0 $@&lt;br /&gt;
 exit $?&lt;br /&gt;
 fi&lt;br /&gt;
 else&lt;br /&gt;
 LOCUSER=&amp;quot;${LOCUSER:-$USER}&amp;quot;&lt;br /&gt;
 LOCHOME=&amp;quot;${LOCHOME:-$HOME}&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 set -e&lt;br /&gt;
 &lt;br /&gt;
 KNOPPIXDIR=&amp;quot;KNOPPIX&amp;quot;&lt;br /&gt;
 BOOTIMGFILE=&amp;quot;$KNOPPIXDIR/boot.img&amp;quot;&lt;br /&gt;
 BOOTIMGFS=&amp;quot;vfat&amp;quot;&lt;br /&gt;
 BOOTIMGDIR=&amp;quot;boot.img&amp;quot;&lt;br /&gt;
 INITRDGZ=&amp;quot;$BOOTIMGDIR/miniroot.gz&amp;quot;&lt;br /&gt;
 INITRDFILE=&amp;quot;$KNOPPIXDIR/miniroot&amp;quot;&lt;br /&gt;
 INITRDFS=&amp;quot;ext2&amp;quot;&lt;br /&gt;
 INITRDDIR=&amp;quot;miniroot&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 mountbootimage() {&lt;br /&gt;
 if ! modprobe loop; then&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: cannot load loop module&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if ! [[ -e &amp;quot;$BOOTIMGFILE&amp;quot; ]]; then&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: no $BOOTIMGFILE found&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 for nofile in $BOOTIMGDIR $INITRDGZ $INITRDFILE $INITRDDIR; do&lt;br /&gt;
 if [[ -e &amp;quot;$nofile&amp;quot; ]]; then&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: $nofile already exists&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 mkdir -p $BOOTIMGDIR&lt;br /&gt;
 mount -o loop,uid=$LOCUSER -t $BOOTIMGFS $BOOTIMGFILE $BOOTIMGDIR&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt; $INITRDGZ gunzip &amp;gt; $INITRDFILE&lt;br /&gt;
 mkdir -p $INITRDDIR&lt;br /&gt;
 mount -o loop -t $INITRDFS $INITRDFILE $INITRDDIR&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 umountbootimage() {&lt;br /&gt;
 dd if=/dev/zero of=$INITRDDIR/nullfile || true&lt;br /&gt;
 sync&lt;br /&gt;
 rm $INITRDDIR/nullfile&lt;br /&gt;
 umount $INITRDDIR&lt;br /&gt;
 rmdir $INITRDDIR&lt;br /&gt;
 &amp;lt; $INITRDFILE gzip --best &amp;gt; $INITRDGZ&lt;br /&gt;
 rm -f $INITRDFILE&lt;br /&gt;
 &lt;br /&gt;
 umount $BOOTIMGDIR&lt;br /&gt;
 rmdir $BOOTIMGDIR&lt;br /&gt;
 &lt;br /&gt;
 syslinux KNOPPIX/boot.img&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;`basename $0`&amp;quot; in&lt;br /&gt;
 mountbootimage)&lt;br /&gt;
 mountbootimage&lt;br /&gt;
 ;;&lt;br /&gt;
 umountbootimage)&lt;br /&gt;
 umountbootimage&lt;br /&gt;
 ;;&lt;br /&gt;
 *)&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: called with unknown name `basename $0`&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 ;;&lt;br /&gt;
 esac&lt;/div&gt;</summary>
		<author><name>FrE</name></author>	</entry>

	<entry>
		<id>https://mail.knoppix.net/wiki/Knoppix_Remastering_Howto</id>
		<title>Knoppix Remastering Howto</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Knoppix_Remastering_Howto"/>
				<updated>2005-04-23T15:55:17Z</updated>
		
		<summary type="html">&lt;p&gt;FrE: removed a '''Bold text''' that was notthing to do there&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Translations: ==&lt;br /&gt;
* German Version: [[Knoppix Remastering Howto Deutsch]]&lt;br /&gt;
* Spanish Version: [[Knoppix Remastering Howto Spanish]]  en español&lt;br /&gt;
* French Version: [[Knoppix Remastering Howto French]]&lt;br /&gt;
* Indonesian Version: [[Knoppix Remastering Howto Indonesian]]&lt;br /&gt;
* Russian Version: [[Knoppix Remastering Howto Russian]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== See also : ==&lt;br /&gt;
* If you want to add a custom kernel, check out the [[Knoppix Custom Kernel Howto]]&lt;br /&gt;
* There also a guide at O'Reilly on the same topic : [http://linux.oreillynet.com/lpt/a/4323 Using and Customizing Knoppix]&lt;br /&gt;
----&lt;br /&gt;
=== This is a guide that will show you how to remaster KNOPPIX ===&lt;br /&gt;
(Notes : commands should appear on one line, so please maximize the window. If you have any comments/suggestions please post below.)&lt;br /&gt;
&lt;br /&gt;
You may wish to start from an already customized Knoppix, so you don't have to do as much work (such as removing programs). If so, see [[Knoppix Customizations]].&lt;br /&gt;
&lt;br /&gt;
==== System Requirements: ====&lt;br /&gt;
*CD-ISO&lt;br /&gt;
** at least 1 GB of FREE RAM+Swap total (e.g. 256M ram, and 750M swap AVAILABLE) (unless you use a different compression program - look in this page for compressloop)&lt;br /&gt;
** 3 GB free on a '''Linux filesystem (ext2/3, xfs, etc.)''' formatted disk partition&lt;br /&gt;
*DVD-ISO&lt;br /&gt;
** 5 GB free RAM + swap (for fullsized DVD)&lt;br /&gt;
** 15 GB free on a '''Linux filesystem (ext2/3, xfs, etc.)''' formatted disk partition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Instructions: ====&lt;br /&gt;
&lt;br /&gt;
# Boot from the ''Knoppix CD''&lt;br /&gt;
# Open a root shell:&lt;br /&gt;
** Menu: Kmenu-&amp;gt;Knoppix-&amp;gt;Root Shell&lt;br /&gt;
** Note: All commands below are run from this root shell.&lt;br /&gt;
# Configure your Internet connection (we'll need this later). If you use DHCP, it should already be configured.&lt;br /&gt;
** Note: Run '''ifconfig''' to check.&lt;br /&gt;
# Find the partition you will use to work on. In this example it is called '''hda1''' . The partition should have a minimum of 3 GB free space&lt;br /&gt;
# Mount the partition:&lt;br /&gt;
** '''mount -rw /dev/hda1 /mnt/hda1'''&lt;br /&gt;
** Note: Make sure that it is read/write or you will get errors when you later chroot. To check: run '''mount'''&lt;br /&gt;
# Create a root directory to work in:&lt;br /&gt;
** '''mkdir /mnt/hda1/knx'''&lt;br /&gt;
** If you put all your files here and it will be easy to clean up&lt;br /&gt;
# If you don't have 1 GB RAM ('''cat /proc/meminfo''' (physical+swap)) then you will need a swapfile:&lt;br /&gt;
** '''cd /mnt/hda1/knx ; dd if=/dev/zero of=swapfile bs=1M count=750 ; mkswap swapfile ; swapon swapfile'''&lt;br /&gt;
# Make 2 directories, one for your new Master CD, one for the source, on a disk partition. Also, make additional directories under these named KNOPPIX:&lt;br /&gt;
** '''mkdir -p /mnt/hda1/knx/master/KNOPPIX'''&lt;br /&gt;
** '''mkdir -p /mnt/hda1/knx/source/KNOPPIX'''&lt;br /&gt;
# Now, copy the KNOPPIX files to your source directory :&lt;br /&gt;
'''cp -Rp /KNOPPIX/*''' '''/mnt/hda1/knx/source/KNOPPIX '''&lt;br /&gt;
** Note: This will take a little while&lt;br /&gt;
# Copy the main HTML page for the startup page:&lt;br /&gt;
** '''cp /cdrom/index.html /mnt/hda1/knx/master/ '''&lt;br /&gt;
# Copy everything necessary files except the ~700 Mb KNOPPIX file.&lt;br /&gt;
** &amp;lt; 3.4: '''cd /cdrom/KNOPPIX &amp;amp;&amp;amp; find . -size -10000k -type f -exec cp -p --parents '{}' /mnt/hda1/knx/master/KNOPPIX/ \;'''&lt;br /&gt;
** 3.4: '''cd /cdrom &amp;amp;&amp;amp; find . -size -10000k -type f -exec cp -p --parents '{}' /mnt/hda1/knx/master/ \;'''&lt;br /&gt;
# Now you can &amp;quot;chroot&amp;quot; into the copied KNOPPIX:&lt;br /&gt;
** '''chroot /mnt/hda1/knx/source/KNOPPIX'''&lt;br /&gt;
&lt;br /&gt;
If you get a whole lot of '''/dev/null permission denied'''&lt;br /&gt;
errors,  you should do the following. This can happen if you save your Knoppix configure data to the same partition that you are using here, AND if you start with Knoppix with '''knoppix home=scan'''.&lt;br /&gt;
&lt;br /&gt;
Check your mount status if you met the problem: '''mount /dev/hdaX on /mnt/hdaX type ext3 (rw,nosuid,nodev)''' (replace X with your partiton number ) where &amp;quot;nodev&amp;quot; means that you are not accessible on mounted filesystem  and you can not access /dev/null. And some scripts get output redirect&lt;br /&gt;
to /dev/null... To solve this you should mount the target partition before you do chroot&lt;br /&gt;
like this:&lt;br /&gt;
 ^d  # control+d will exit the chroot&lt;br /&gt;
 mount /dev/hda1 /mnt/hda1&lt;br /&gt;
You should then see:&lt;br /&gt;
 mount /dev/hda1 on /mnt/hda1 type ext3 (rw)&lt;br /&gt;
&lt;br /&gt;
If the /dev/null warnings persist then before the chroot do :&lt;br /&gt;
 mkdir /mnt/hda1/knx/source/KNOPPIX/KNOPPIX&lt;br /&gt;
 mount --bind /KNOPPIX /mnt/hda1/knx/source/KNOPPIX&lt;br /&gt;
 mount --bind /dev /mnt/hda1/knx/source/KNOPPIX/dev&lt;br /&gt;
'''Better to reboot your box or you have to umount /mnt/hda1/knx/source/KNOPPIX/dev and rm /mnt/hda1/knx/source/KNOPPIX/KNOPPIX before building the CD image or your /dev directory on the CD will be messed up! then you can carry on and chroot.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You are now chrooted. &amp;quot;/&amp;quot; is actually &amp;quot;/mnt/hda1/knx/source/KNOPPIX&amp;quot;&lt;br /&gt;
* To use the internet you need to mount proc '''mount -t proc /proc proc'''&lt;br /&gt;
* Now edit /etc/resolv.conf and add your nameserver or &amp;quot;exit&amp;quot; chroot and copy the resolve.conf into the chroot folder: '''cp /etc/dhcpc/resolv.conf to /mnt/hda1/knx/source/KNOPPIX/etc/dhcpc/resolv.conf'''&lt;br /&gt;
* Also change smb.conf to your MS group if you want smbd support (MSHOME is XP Home ed. usually, and WORKGROUP is 9x Windows.&lt;br /&gt;
* check your chrooted internet connection : '''ping google.com'''&lt;br /&gt;
* Update your package list with '''apt-get update'''&lt;br /&gt;
* '''Note:''' If ''''apt-get update''' fails with &amp;quot;FATAL -&amp;gt; Could not set non-blocking flag Bad file descriptor&amp;quot;, you need to make sure your chrooted environment is mounted without the &amp;quot;nodev&amp;quot; option. (see above where it talks about the /dev/null errors when entering the chroot environment for the first time)&lt;br /&gt;
* Now you can change stuff.&lt;br /&gt;
* '''Warning''': apt-get upgrade is a BAD IDEA. It will, quite probably, render your KNOPPIX remaster unbootable, or broken in some way. A far safer method is to only upgrade packages as necessary&lt;br /&gt;
** Before you can add stuff, you will probably need to remove some packages.  To get a list of packages installed, type this:&lt;br /&gt;
'''*''' '''dpkg-query -l'''&lt;br /&gt;
** If you want that list sorted by size (this way you can get rid of the biggies), type this:&lt;br /&gt;
'''*''' '''dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n'''&lt;br /&gt;
** To remove a package (and all packages dependant on it), type this:&lt;br /&gt;
'''*''' '''apt-get remove --purge &amp;lt;name-of-package-to-remove&amp;gt;'''&lt;br /&gt;
** To check for orphaned packages, type this:&lt;br /&gt;
'''*''' '''deborphan'''&lt;br /&gt;
** Want to save more space by getting rid of those pesky orphans (how cruel!), type this ('''Warning''', you won't be prompted yes/no to remove these packages.  When you press Enter after this command, those packages '''will be gone'''):&lt;br /&gt;
'''*''' '''deborphan | xargs apt-get -y remove'''&lt;br /&gt;
** If you're uncertain about the previous command and want to see what will happen without making any changes, just add the '''-s''' option to the apt-get command like this (you can do this with all of the apt-get commands, and it's a good habit to use this option before mass operations like this one):&lt;br /&gt;
'''*''' '''deborphan | xargs apt-get -s -y remove'''&lt;br /&gt;
** Now the good stuff.  If you wish to add a package, type this:&lt;br /&gt;
'''*''' '''apt-get install &amp;lt;name-of-package-to-install&amp;gt;'''&lt;br /&gt;
** What, don't know what packages to install?  Type this.  When the list appears, you can peruse (over 13k lines!) or search for things using '''/&amp;lt;search-term&amp;gt;''':&lt;br /&gt;
'''*''' '''apt-cache search .* | sort | less'''&lt;br /&gt;
** When you're done removing and adding packages, a good way to clean up is by typing this:&lt;br /&gt;
'''*''' '''COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P'''&lt;br /&gt;
** Also, because the Debian package system keeps a cache of downloaded packages, you may want to run the following to clear out those spare files:&lt;br /&gt;
'''*''' '''apt-get clean'''&lt;br /&gt;
** user settings are in /etc/skel&lt;br /&gt;
** tip: don't put files in /root they will be only available (at runtime) in /KNOPPIX/root&lt;br /&gt;
* Unmount /proc - very important! '''umount /proc'''&lt;br /&gt;
* Press '''CTRL+D''' to leave being chrooted.&lt;br /&gt;
&lt;br /&gt;
==== Notes : ====&lt;br /&gt;
&lt;br /&gt;
When testing X-based programs, you will have to '''export DISPLAY=localhost:0.0'''&lt;br /&gt;
&lt;br /&gt;
When you want to autorun some programs, one can create a script and put it in the directory /etc/rc5.d/ (This only loads items before X loads)&lt;br /&gt;
&lt;br /&gt;
interesting stuff in /etc/init.d/knoppix-autoconfig :&lt;br /&gt;
&lt;br /&gt;
* The X background file is /cdrom/KNOPPIX/background.gif '''(in knoppix 3.4: background.jpg)'''&lt;br /&gt;
* As well as floppyconfig, there is cdromconfig which will run cdrom/KNOPPIX/knoppix.sh&lt;br /&gt;
&lt;br /&gt;
interesting stuff in /etc/init.d/xsession :&lt;br /&gt;
* it ALSO sets background as /usr/local/lib/knoppix.gif&lt;br /&gt;
&lt;br /&gt;
Now, onto creating the ISO file :&lt;br /&gt;
&lt;br /&gt;
* we've finished customizing and ready to burn!&lt;br /&gt;
* first do some cleanup : ''' remove .bash_history files, tmp files etc '''&lt;br /&gt;
* '''rm -rf /mnt/hda1/knx/source/KNOPPIX/.rr_moved'''&lt;br /&gt;
* Now we'll make the big KNOPPIX file which is a cloop compressed ISO 9660 filesystem : '''mkisofs -R -U -V &amp;quot;KNOPPIX.net filesystem&amp;quot; -publisher &amp;quot;KNOPPIX www.knoppix.net&amp;quot; -hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda1/knx/source/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 &amp;gt; /mnt/hda1/knx/master/KNOPPIX/KNOPPIX'''&lt;br /&gt;
&lt;br /&gt;
the &amp;quot;www.knoppix.net&amp;quot; and &amp;quot;Knoppix.net filesystem&amp;quot; can be changed to what you want to call the file. You will get an error that it doesn't conform to ISO standards, you can ignore this.&lt;br /&gt;
&lt;br /&gt;
In Knoppix 3.4 the create_compressed_fs script has been updated so be sure to use it to obtain the best result.&lt;br /&gt;
It has a new option '''-b''' (best), which enables the best compression by using&lt;br /&gt;
different compression schemes and tries to optimize that way, but be careful, because that option is slow (10x slower).&lt;br /&gt;
&lt;br /&gt;
* if all went well, onto making the final CD-ROM Image :&lt;br /&gt;
* '''cd /mnt/hda1/knx/master'''&lt;br /&gt;
* '''rm -f KNOPPIX/md5sums; find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; &amp;gt;&amp;gt; KNOPPIX/md5sums''' (this will update the md5 hashes of the files included in the ISO, used for integrity checking)&lt;br /&gt;
* for Knoppix &amp;lt;= 3.3: '''mkisofs -pad -l -r -J -v -V &amp;quot;KNOPPIX&amp;quot; -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /mnt/hda1/knx/knoppix.iso /mnt/hda1/knx/master''' (the ISO is stored in /mnt/hda1/knx/knoppix.iso)&lt;br /&gt;
* For Knoppix &amp;gt;= 3.4 or other isolinux based distributions do:&lt;br /&gt;
'''mkisofs -pad -l -r -J -v -V &amp;quot;KNOPPIX&amp;quot; -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o /mnt/hda1/knx/knoppix.iso /mnt/hda1/knx/master''' (the ISO is stored in /mnt/hda1/knx/knoppix.iso)&lt;br /&gt;
* all done!&lt;br /&gt;
&lt;br /&gt;
=== Tips ===&lt;br /&gt;
If you are looking for big installed packages then the command&lt;br /&gt;
: dpkg-awk &amp;quot;Status: .* installed$&amp;quot; -- Package Installed-Size | \&lt;br /&gt;
: awk '{print $2}' | egrep -v '^$' | xargs -n2 echo | \&lt;br /&gt;
: perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg&lt;br /&gt;
will list the  packages  with size in descending order.&lt;br /&gt;
At least ten times faster is the command&lt;br /&gt;
&lt;br /&gt;
: dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n&lt;br /&gt;
&lt;br /&gt;
and you don't need dpkg-awk or awk or perl.&lt;br /&gt;
&lt;br /&gt;
If you have trouble with the above sort command, try using KPackage, expanded all the trees and sorted by the size column to find big packages.&lt;br /&gt;
&lt;br /&gt;
Check out the program &amp;quot;deborphan&amp;quot;, it will list orphaned packages that you can remove, these packages were used by packages that are now removed.&lt;br /&gt;
&lt;br /&gt;
I have had good results remastering working from the cd as root working from fluxbox. Just say &amp;quot;knoppix 2&amp;quot; at the boot prompt and it will boot you to a root prompt where you can then say &amp;quot;startx /usr/bin/fluxbox&amp;quot;. I like to use the xterm unicode shell.&lt;br /&gt;
&lt;br /&gt;
While working chroot doing the remastering I like to use &amp;quot;apt-get remove --purge pkg-name&amp;quot; to remove packages because before it does anything it will stop and show detials on what it is fixing to remove and let you say &amp;quot;yes or no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you don't use the above &amp;quot;apt-get&amp;quot; instructions and have a lot to cleanup and purge, here's the easy way to do it: &amp;quot;COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' &amp;gt;topurge&amp;quot;. That will make a list of all removed packages to purge and then you just say &amp;quot;dpkg -P `cat topurge `&amp;quot; and your all done. &amp;quot;COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P&amp;quot; is a one-line version of this.&lt;br /&gt;
Also use &amp;quot;deborphan &amp;gt;orphaned&amp;quot; then &amp;quot;dpkg -P `cat orphaned `&amp;quot;. &amp;quot;deborphan | xargs dpkg -P &amp;quot; is a one line version for that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thats it. This is an updated version of my previous howto. This is not meant for linux beginners, you will need to know your way around linux to get this to work. I'll update this as corrections/improvements/etc come through.&lt;br /&gt;
&lt;br /&gt;
Thanks to aay, charan, Tech2k, and #knoppix for some corrections and tips and ideas.  Feel free to edit or add to this howto.&lt;br /&gt;
Note about swap:&amp;lt;br&amp;gt;&lt;br /&gt;
You don't really need 1G swap as there are two new tools to create compressed filesystems. Here are some candidates to make''compressed''fs:&lt;br /&gt;
* Valentijn's rewrite [http://projects.openoffice.nl/downloads/compressloop/]&lt;br /&gt;
* Quozl's port of compressloop for Knoppix 3.4 [http://quozl.linux.org.au/compressloop-1.9-64bit.c]&lt;br /&gt;
* Quozl's distributed compressloop (use more than one processor to speed things up) [http://quozl.linux.org.au/knoppix/compressloop/] or [http://quozl.netrek.org/knoppix/compressloop/]&lt;br /&gt;
* Justin's patch [http://s.bouncybouncy.net/~justin/code/] (link broken) I also just wrote a distributed cloop compressor(or for smp)  It's in that same directory.&lt;br /&gt;
&lt;br /&gt;
==== Tip, test cd-image without recording cd ====&lt;br /&gt;
&lt;br /&gt;
If you have a spare partition with at least 700MB free space formatted with ext2, ext3 or Vfat, you can use this for test by booting from a floppy disk. A floppy boot will look for a partiton with /KNOPPIX/ in the root, and the compressed image /KNOPPIX/KNOPPIX. Instead of using the sub-directory /mnt/hda1/knx/master/KNOPPIX/ as described above, it should be called /mnt/hda2/KNOPPIX/ . The root index.html will then be located at /mnt/hda2/index.html and the compressed image will be at /mnt/hda2/KNOPPIX/KNOPPIX . Now you can boot from floppy and use /mnt/hda2 as your image. For further information see [[Hd BasedHowTo]].&lt;br /&gt;
&lt;br /&gt;
If you don't have an extra partition or you don't want to do so much for it, you can use Qemu ( see [http://fabrice.bellard.free.fr/qemu/] ) with the ISO image like this:&lt;br /&gt;
'''qemu -m 128 -cdrom /temp/knoppix-custom.iso -boot d -user-net'''&lt;br /&gt;
You even do not have to build a hard disk image before, just install Qemu and try this. Amazing!&lt;br /&gt;
&lt;br /&gt;
==== Booting Knoppix images with GRUB ====&lt;br /&gt;
* First copy /boot of the Knoppix cd to your boot partition (or even your dos partition). I named mine boot.knoppix&lt;br /&gt;
''' Copy the /KNOPPIX directory to your '''root directory* of any hard disk. You may place it somewhere other than the boot partition. (ext2/3, reiserfs, vfat are supported)&lt;br /&gt;
* put the following in your /boot/grub/menu.lst:&lt;br /&gt;
 title           KNOPPIX&lt;br /&gt;
 root            (hd0,0)&lt;br /&gt;
 kernel  /boot.knoppix/vmlinuz 2 fromhd=/dev/hda4 lang=us&lt;br /&gt;
 initrd  /boot.knoppix/miniroot.gz&lt;br /&gt;
* notice the fromhd parameter: it's the location of the /KNOPPIX directory&lt;br /&gt;
* reboot and have fun.&lt;br /&gt;
&lt;br /&gt;
If my howto is too confusing, or you'd like a second opinion, check out charan's very nice remastering howto : http://gnubox.dyndns.org:8080/~sunil/knoppix.php .&lt;br /&gt;
Another Howto is at  http://www.stirnimann.com/mystuff/doc/knoppix.txt&lt;br /&gt;
&lt;br /&gt;
There is a wizard, which knows all the unpacking, compressing and CD-recording steps mentioned here. It also shows a shell where you can update the uncompressed KNOPPIX system using debian's standard software installation tools. It is called mmkcdrom and part of the plugscript package: [http://rcswww.urz.tu-dresden.de/~holzhey/plugscript]&lt;br /&gt;
&lt;br /&gt;
Yet another HOWTO, for shell freaks, is at http://quozl.linux.org.au/knoppix/&lt;br /&gt;
&lt;br /&gt;
Be sure to check out the [http://knoppix.net/forum/viewforum.php?f=2 Knoppix Customization Forum] for ideas and help with remastering.&lt;br /&gt;
----&lt;br /&gt;
This is the recommended directory layout for remastering KNOPPIX:&lt;br /&gt;
 . (invoke ../remaster from here)&lt;br /&gt;
 |-- master (invoke ../../[[u]]mountbootimage from here)&lt;br /&gt;
 |   |-- KNOPPIX&lt;br /&gt;
 |   |   |-- KNOPPIX (compressed image)&lt;br /&gt;
 |   |   |-- boot.img (boot floppy image)&lt;br /&gt;
 |   |   `-- (other files snipped)&lt;br /&gt;
 |   `-- index.html&lt;br /&gt;
 `-- source&lt;br /&gt;
 `-- KNOPPIX (this directory can be chrooted into)&lt;br /&gt;
 |-- bin&lt;br /&gt;
 |-- boot&lt;br /&gt;
 |-- cdrom&lt;br /&gt;
 |-- dev&lt;br /&gt;
 |-- etc&lt;br /&gt;
 |-- floppy&lt;br /&gt;
 |-- home&lt;br /&gt;
 |-- initrd&lt;br /&gt;
 |-- lib&lt;br /&gt;
 |-- mnt&lt;br /&gt;
 |-- none&lt;br /&gt;
 |-- opt&lt;br /&gt;
 |-- proc&lt;br /&gt;
 |-- root&lt;br /&gt;
 |-- sbin&lt;br /&gt;
 |-- tmp -&amp;gt; /var/tmp&lt;br /&gt;
 |-- usr&lt;br /&gt;
 |-- var&lt;br /&gt;
 `-- vmlinuz -&amp;gt; boot/vmlinuz-2.4.22-xfs&lt;br /&gt;
----&lt;br /&gt;
the following script &amp;quot;remaster&amp;quot; will do the remaster process for you. Use as root, or you will end up with wrong access rights in the image.&lt;br /&gt;
&lt;br /&gt;
The script has last been tried out on Debian sid on 2004-04-02.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash -x&lt;br /&gt;
 # This script builds a new KNOPPIX ISO image.&lt;br /&gt;
 # Copyright (C) 2004 by Marc Haber &amp;lt;mh+knoppix-remaster@zugschlus.de&amp;gt;&lt;br /&gt;
 # License: GPL V2&lt;br /&gt;
 &lt;br /&gt;
 ROOT=&amp;quot;$PWD&amp;quot;&lt;br /&gt;
 SOURCE=&amp;quot;$ROOT/source/KNOPPIX&amp;quot;&lt;br /&gt;
 MASTER=&amp;quot;$ROOT/master&amp;quot;&lt;br /&gt;
 CLOOPTARGET=&amp;quot;$ROOT/master/KNOPPIX/KNOPPIX&amp;quot;&lt;br /&gt;
 TARGET=&amp;quot;$ROOT&amp;quot;&lt;br /&gt;
 EXCLUDELIST=&amp;quot;$ROOT/source/excludelist&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 rm -rf $SOURCE/.rr_moved&lt;br /&gt;
 &lt;br /&gt;
 cd $SOURCE&lt;br /&gt;
 mkisofs -R -U -V &amp;quot;KNOPPIX.net filesystem&amp;quot; \&lt;br /&gt;
 -P &amp;quot;KNOPPIX www.knoppix.net&amp;quot; \&lt;br /&gt;
 -hide-rr-moved -cache-inodes -no-bak -pad \&lt;br /&gt;
 -exclude-list $EXCLUDELIST \&lt;br /&gt;
 . | nice -5 /usr/bin/create''compressed''fs - 65536 &amp;gt; $CLOOPTARGET&lt;br /&gt;
 &lt;br /&gt;
 cd $MASTER&lt;br /&gt;
 rm -f KNOPPIX/md5sums&lt;br /&gt;
 find -type f -not -name md5sums -not -name boot.cat -exec md5sum {} \; &amp;gt;&amp;gt; KNOPPIX/md5sums&lt;br /&gt;
 mkisofs -pad -l -r -J -v -V &amp;quot;KNOPPIX&amp;quot; -b KNOPPIX/boot.img \&lt;br /&gt;
 -c KNOPPIX/boot.cat -hide-rr-moved -o $TARGET/knoppix.iso $MASTER&lt;br /&gt;
----&lt;br /&gt;
The following script will loop-mount boot floppy image and initrd image for modification. The umount function will build a new initrd image and put it back on the boot floppy image.&lt;br /&gt;
&lt;br /&gt;
The script has last been tried out on Debian sid on 2004-01-13.&lt;br /&gt;
&amp;lt;!-- lines starting with space a preformatted --&amp;gt;&lt;br /&gt;
 #!/bin/bash -x&lt;br /&gt;
 # This script will loop-mount boot floppy and initrd image&lt;br /&gt;
 # Copyright (C) 2004 by Marc Haber &amp;lt;mh+knoppix-remaster@zugschlus.de&amp;gt;&lt;br /&gt;
 # License: GPL V2&lt;br /&gt;
 unset CDPATH || true&lt;br /&gt;
 &lt;br /&gt;
 # if not root, re-invoke self as root&lt;br /&gt;
 if [[ &amp;quot;`id -u`&amp;quot; -ne 0 ]]; then&lt;br /&gt;
 export LOCUSER=&amp;quot;$USER&amp;quot;&lt;br /&gt;
 export LOCHOME=&amp;quot;$HOME&amp;quot;&lt;br /&gt;
 if [[ &amp;quot;${SHELLOPTS/xtrace/}&amp;quot; != &amp;quot;$SHELLOPTS&amp;quot; ]]; then&lt;br /&gt;
 sudo bash -x $0 $@&lt;br /&gt;
 exit $?&lt;br /&gt;
 else&lt;br /&gt;
 sudo $0 $@&lt;br /&gt;
 exit $?&lt;br /&gt;
 fi&lt;br /&gt;
 else&lt;br /&gt;
 LOCUSER=&amp;quot;${LOCUSER:-$USER}&amp;quot;&lt;br /&gt;
 LOCHOME=&amp;quot;${LOCHOME:-$HOME}&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 set -e&lt;br /&gt;
 &lt;br /&gt;
 KNOPPIXDIR=&amp;quot;KNOPPIX&amp;quot;&lt;br /&gt;
 BOOTIMGFILE=&amp;quot;$KNOPPIXDIR/boot.img&amp;quot;&lt;br /&gt;
 BOOTIMGFS=&amp;quot;vfat&amp;quot;&lt;br /&gt;
 BOOTIMGDIR=&amp;quot;boot.img&amp;quot;&lt;br /&gt;
 INITRDGZ=&amp;quot;$BOOTIMGDIR/miniroot.gz&amp;quot;&lt;br /&gt;
 INITRDFILE=&amp;quot;$KNOPPIXDIR/miniroot&amp;quot;&lt;br /&gt;
 INITRDFS=&amp;quot;ext2&amp;quot;&lt;br /&gt;
 INITRDDIR=&amp;quot;miniroot&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 mountbootimage() {&lt;br /&gt;
 if ! modprobe loop; then&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: cannot load loop module&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if ! [[ -e &amp;quot;$BOOTIMGFILE&amp;quot; ]]; then&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: no $BOOTIMGFILE found&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 for nofile in $BOOTIMGDIR $INITRDGZ $INITRDFILE $INITRDDIR; do&lt;br /&gt;
 if [[ -e &amp;quot;$nofile&amp;quot; ]]; then&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: $nofile already exists&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 mkdir -p $BOOTIMGDIR&lt;br /&gt;
 mount -o loop,uid=$LOCUSER -t $BOOTIMGFS $BOOTIMGFILE $BOOTIMGDIR&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt; $INITRDGZ gunzip &amp;gt; $INITRDFILE&lt;br /&gt;
 mkdir -p $INITRDDIR&lt;br /&gt;
 mount -o loop -t $INITRDFS $INITRDFILE $INITRDDIR&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 umountbootimage() {&lt;br /&gt;
 dd if=/dev/zero of=$INITRDDIR/nullfile || true&lt;br /&gt;
 sync&lt;br /&gt;
 rm $INITRDDIR/nullfile&lt;br /&gt;
 umount $INITRDDIR&lt;br /&gt;
 rmdir $INITRDDIR&lt;br /&gt;
 &amp;lt; $INITRDFILE gzip --best &amp;gt; $INITRDGZ&lt;br /&gt;
 rm -f $INITRDFILE&lt;br /&gt;
 &lt;br /&gt;
 umount $BOOTIMGDIR&lt;br /&gt;
 rmdir $BOOTIMGDIR&lt;br /&gt;
 &lt;br /&gt;
 syslinux KNOPPIX/boot.img&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;`basename $0`&amp;quot; in&lt;br /&gt;
 mountbootimage)&lt;br /&gt;
 mountbootimage&lt;br /&gt;
 ;;&lt;br /&gt;
 umountbootimage)&lt;br /&gt;
 umountbootimage&lt;br /&gt;
 ;;&lt;br /&gt;
 *)&lt;br /&gt;
 echo &amp;gt;&amp;amp;2 &amp;quot;ERR: called with unknown name `basename $0`&amp;quot;&lt;br /&gt;
 exit 1&lt;br /&gt;
 ;;&lt;br /&gt;
 esac&lt;br /&gt;
&lt;br /&gt;
==== Tips around apt-get to install/update/remove applications ====&lt;br /&gt;
(by gnarvaja)&lt;br /&gt;
* If you booted from CD, even on a HD install (example: Pivot Install) instead of copying the original CD and KNOPPIX directory to the HD, you can use them directly from their mount points.&lt;br /&gt;
* Another alternative is to mount an ISO image of the original CD as a loop device and mount the KNOPPIX image as a '''cloop''' device. You will save close to 2GB of space. Script to mount from an ISO image:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # Assumes that the current directory is the working space&lt;br /&gt;
 # original.iso is an image of the CD we will be using as master&lt;br /&gt;
 mount -t iso9660 original.iso ./oldcd -o ro,loop&lt;br /&gt;
 # initialize the compressed loop device&lt;br /&gt;
 losetup /dev/cloop1 ./oldcd/KNOPPIX/KNOPPIX&lt;br /&gt;
 mount -t iso9660 /dev/cloop1 ./KNOPPIX -o ro,loop&lt;br /&gt;
&lt;br /&gt;
* Get '''apt-spy''' and use it to modify the sources.list file with the best mirrors for your particular region. This will speed up the downloading. Backup the original '''sources.list''' just in case.&lt;br /&gt;
* Another technique is to modify '''sources.list'''. Replace the string '''.de.''' in the ftp addresses (ftp.de.debian.org) with the code corresponding to your country. Examples: USA -&amp;gt; .us. (ftp.us.debian.org), Brazil -&amp;gt; .br. (ftp.br.debian.org). Check the Debian site for debian.org mirrors in your country.&lt;br /&gt;
* Remember to uncomment the '''linuxtag''' ftp addresses to get the latest and greatest from Knoppix&lt;br /&gt;
* Use '''apt-get update''' to get the lists with the latest releases and patches. Do not update a package if you don't need to, it may lead to the use of additional disk space (precious commodity when you want to keep everything below 700MB) and you may brake something else without knowing. Abuse the '''-s''' option to simulate the installation.&lt;br /&gt;
* Before doing the update, I modified my default releases to '''testing''', that means that the software I'll be using will have a good balance of stability and features. Knoppix uses '''unstable''' by default, which is too risky for my personal taste.&lt;br /&gt;
* Get '''[apt-get install] locale''' and configure it with the locales you are going to use. It will save lots of space when downloading applications with plenty of locale modules and localized manual pages.&lt;br /&gt;
* I use '''aptitude''' to get/remove applications, it is character based so it works with init 2. As you mark packages for install/update/removal, it will tell you how much disk space you will save/use, try to solve depencies problems and give you plenty control to fix them manually when possible.&lt;br /&gt;
* When installing applications it is likely that your '''/etc/rc?.d''' directories will have new entries, many of them unwanted or unplanned. Make sure you check them and remove the new entries based on your preferences. I usually leave '''/etc/rc2.d''' and '''/etc/rc5.d''' as close as the originals as possible and modify '''/etc/rc3.d''' and '''/etc/rc4.d''' to test new stuff. '''Example:''' You may want to have ntfs installed, but not necessarily running by default. Same with apache, mysql and many others.&lt;br /&gt;
* When removing/purging applications, they may leave behind non-empty directories. Usually this is announced by aptitude, apt-get or any other installation utilty. Make sure to check the messages and manually remove those directories.&lt;br /&gt;
* After you are done, '''aptitude''' may leave some files behind. Here's a clean up script I use:&lt;br /&gt;
&lt;br /&gt;
 # !/bin/bash&lt;br /&gt;
 # Clean package files generated by aptitude&lt;br /&gt;
 rm /var/log/aptitude&lt;br /&gt;
 rm /var/lib/apt/lists/*debian*&lt;br /&gt;
 rm /var/lib/apt/lists/*knoppix*&lt;/div&gt;</summary>
		<author><name>FrE</name></author>	</entry>

	</feed>