<?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=Dosboss</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=Dosboss"/>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Special:Contributions/Dosboss"/>
		<updated>2026-09-30T15:32:13Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://mail.knoppix.net/wiki/Remastering_Hacks</id>
		<title>Remastering Hacks</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Remastering_Hacks"/>
				<updated>2006-01-06T23:37:56Z</updated>
		
		<summary type="html">&lt;p&gt;Dosboss: /* Useful packages for install packages and cleaning up locales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are so many howtos cropping up, each with individual tips and customization examples for Knoppix remasters, that it seems good to have a place to put generic tips, no matter how you go about remastering, be it using scripts, completely by hand, or via a HD install, Morphix, etc...  Please add your tips and example &amp;quot;hacks&amp;quot; here.  &lt;br /&gt;
&lt;br /&gt;
= Remastering Process Tips =&lt;br /&gt;
== Saving space while running chroot environment ==&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;
= Installing software and clearing up space with Apt =&lt;br /&gt;
&lt;br /&gt;
== Get the best apt mirror ==&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;
&lt;br /&gt;
== Update all packages ==&lt;br /&gt;
&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;
&lt;br /&gt;
== Configuring locale settings ==&lt;br /&gt;
&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;
&lt;br /&gt;
*NOTE: Knoppix 4.0.2 (possibly other 4.x and 3.9 versions too) already has the 'locales' package installed.  In this case it is easy to get the right locale set.  Just run the command '''dpkg-reconfigure locales''' as the '''root''' user.  This will allow you to select/de-select the locales that you will use, and choose a default locale for your system.&lt;br /&gt;
&lt;br /&gt;
== Character based pkg mgt w/Aptitude ==&lt;br /&gt;
&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;
* 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;br /&gt;
&lt;br /&gt;
== Cleaning up space when removing apps ==&lt;br /&gt;
&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;
&lt;br /&gt;
== Removing a bunch of Internationalization support to save space`using Apt and grep ==&lt;br /&gt;
&lt;br /&gt;
The  following command returns a listing of all packages installed.&lt;br /&gt;
&lt;br /&gt;
 dpkg-query -l | less&lt;br /&gt;
&lt;br /&gt;
While that command is useful, you can use grep to sort out which packages you to remove. The following command shows me packages that kde uses for internationalization support and strips off all the other extraneous information.&lt;br /&gt;
&lt;br /&gt;
 dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3&lt;br /&gt;
&lt;br /&gt;
I can feed this to apt-get so that it will remove those packages.&lt;br /&gt;
&lt;br /&gt;
 apt-get remove `dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3`&lt;br /&gt;
&lt;br /&gt;
You could remove openoffice and other German tools as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get remove openoffice-de-en manpages-de trans-de-en&lt;br /&gt;
&lt;br /&gt;
== Other packages commonly removed for custom images ==&lt;br /&gt;
&lt;br /&gt;
Remove enigma and bacula as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get remove enigma bacula-common&lt;br /&gt;
&lt;br /&gt;
Remove emacs as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get remove emacs21 emacs21-bin-common emacs21-common emacsen-common gettext-el zile&lt;br /&gt;
&lt;br /&gt;
German Language user package&lt;br /&gt;
&lt;br /&gt;
 apt-get remove user-de&lt;br /&gt;
&lt;br /&gt;
This results in a reasonable base to begin updating and adding packages to this system. First configure /etc/apt/sources.list and add the appropriate entries for a local Debian mirror.&lt;br /&gt;
&lt;br /&gt;
== What to do when behind a proxy ==&lt;br /&gt;
&lt;br /&gt;
If you are behind a proxy and must authenticate against it to access the internet, then use the following command.&lt;br /&gt;
export http_proxy=&amp;quot;http://username:passwd@yourproxy.company.com:portnumber/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Useful packages for install packages and cleaning up locales ==&lt;br /&gt;
&lt;br /&gt;
Add three useful packages:&lt;br /&gt;
&lt;br /&gt;
 apt-get install localepurge aptitude&lt;br /&gt;
&lt;br /&gt;
Localepurge will only keep the locales that are marked. This means that it will free up additional space. After running through the configuration removing locales you don't need, you must run it from the command line:&lt;br /&gt;
&lt;br /&gt;
 localepurge&lt;br /&gt;
&lt;br /&gt;
NOTE: localepurge may not be able to be installed by the '''apt-get install''' command (ie. you get the error &amp;quot;Couldn't find package localepurge&amp;quot; when you try to install), but you can install it with the '''aptitude''' interface.&lt;br /&gt;
&lt;br /&gt;
Aptitude is a console menu front end to apt and dpkg.&lt;br /&gt;
&lt;br /&gt;
=== Package updates within the GUI ===&lt;br /&gt;
&lt;br /&gt;
 apt-get install synaptic&lt;br /&gt;
&lt;br /&gt;
Synaptic is a graphical front end to apt &amp;amp; dpkg.&lt;br /&gt;
&lt;br /&gt;
= Boot =&lt;br /&gt;
&lt;br /&gt;
== Boot logo ==&lt;br /&gt;
&lt;br /&gt;
The boot logo : The boot image is logo.16 and is a lss16 format image. To start make a 16 color image (in Gimp, create the image and use the Image -&amp;gt; Mode -&amp;gt; Indexed menu to export to 16 colors) you want to use. The image must be 640x480 or less. 640x400 leaves room at the bottom for the boot prompt. Save the image as a bmp format (in gimp you can save as ppm as well to skip the first conversion). Then run:&lt;br /&gt;
&lt;br /&gt;
 bmptoppm mylogo.bmp &amp;gt; logo16.ppm&lt;br /&gt;
 ppmtolss16 &amp;lt; logo16.ppm &amp;gt; logo.16&lt;br /&gt;
&lt;br /&gt;
When using the script method [[Knoppix Remastering with Menu Based Scripts]], the logo file will be located somewhere like:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;path-to-remaster dir&amp;gt;KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/boot/isolinux&lt;br /&gt;
&lt;br /&gt;
There are also some files in KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/KNOPPIX/images that might be interesting to look at.&lt;br /&gt;
&lt;br /&gt;
== Desktop ==&lt;br /&gt;
&lt;br /&gt;
=== To keep certain desktop settings persistent ===&lt;br /&gt;
&lt;br /&gt;
I must now mention the file /etc/X11/Xsession.d/45xsession. This script controls how knoppix behaves &amp;amp; how knoppix creates the knoppix user's home directory. &lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/X11/Xsession.d/45xsession and look for the ninth occurence of rsync in the script and it is found at or around line 128:&lt;br /&gt;
&lt;br /&gt;
 126: if [ -z &amp;quot;$DONTCHANGE&amp;quot; ]; then&lt;br /&gt;
 127: # No persistent homedir, copy everything&lt;br /&gt;
 128: rsync -Ha --ignore-existing /etc/skel/{.kde*,Desktop} $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
 129: [ &amp;quot;$USER&amp;quot; = &amp;quot;knoppix&amp;quot; ] &amp;amp;&amp;amp; rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is line 128 which populates the /home/knoppix folder. So In line 128, I delete from &amp;amp; including the { to the }. It is changed as follows.&lt;br /&gt;
&lt;br /&gt;
 126: if [ -z &amp;quot;$DONTCHANGE&amp;quot; ]; then&lt;br /&gt;
 127: # No persistent homedir, copy everything&lt;br /&gt;
 128: rsync -Ha --ignore-existing /etc/skel/ $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
 129: [ &amp;quot;$USER&amp;quot; = &amp;quot;knoppix&amp;quot; ] &amp;amp;&amp;amp; rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
Make the change and save the 45xsession file.&lt;br /&gt;
&lt;br /&gt;
=== Making a permanent desktop background change ===&lt;br /&gt;
&lt;br /&gt;
Replace the &amp;lt;path to chroot env&amp;gt;/KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/KNOPPIX/background.png from outside the chroot env to be the one you would like for the default desktop background.&lt;br /&gt;
&lt;br /&gt;
=== Changing the desktop splash screen ===&lt;br /&gt;
&lt;br /&gt;
Replace /usr/share/apps/ksplash/Themes/Default/splash_top.png &lt;br /&gt;
&lt;br /&gt;
(400X248 px is the normal size of this image)&lt;br /&gt;
&lt;br /&gt;
== Adding Icons ==&lt;br /&gt;
&lt;br /&gt;
Plonk them into /etc/skel/Desktop or if you are working under a knoppix home directory, plonk them there.  Under any KDE or GNOME system you can find examples of the format for these files.&lt;br /&gt;
&lt;br /&gt;
= Startup =&lt;br /&gt;
== Adding init scripts that should run ==&lt;br /&gt;
&lt;br /&gt;
Say you need to make sure certain services are started up at boot time.  You would think you could put them in the proper /etc/rc&amp;lt;num&amp;gt;.d/ directory and they would just work eh.  Ha.  Ha.  To get something to always start, you have to actually modify the /etc/init.d/knoppix-autoconfig script and have it start the services.  The init scripts will always be in the /etc/init.d/ directory, but they won't stay in the /etc/rc&amp;lt;num&amp;gt;.d directories, even if you put them there.  It will make you sad.&lt;br /&gt;
&lt;br /&gt;
For example, to add a custom vpn script and turn on some of the NFS client utils, one could add some lines after the automounty stuff:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Start automounter now&lt;br /&gt;
/etc/init.d/autofs start &amp;gt;/dev/null &amp;amp;&amp;amp; echo &amp;quot;${GREEN}Automounter started for: ${MAGENTA}${AUTOMOUNTS}${GREEN}.${NORMAL}&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
#&lt;br /&gt;
# CUSTOM SCRIPTY STUFF&lt;br /&gt;
#&lt;br /&gt;
if [ -f /etc/init.d/portmap ] ; then&lt;br /&gt;
        /etc/init.d/portmap start &amp;gt;/dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
        echo &amp;quot;${GREEN}Portmapper started&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
if [ -f /etc/init.d/nfs-common ] ; then&lt;br /&gt;
        /etc/init.d/nfs-common start &amp;gt;/dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
        echo &amp;quot;${GREEN}NFS Common Services started&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
# Start VPN&lt;br /&gt;
if [ -f /etc/init.d/vtundvpn ] ; then&lt;br /&gt;
        /etc/init.d/vtundvpn start &amp;gt;/dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
        echo &amp;quot;${GREEN}VPN started&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
#&lt;br /&gt;
# END CUSTOM SCRIPTY STUFF&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making the CD fallback default language not German ==&lt;br /&gt;
&lt;br /&gt;
Again, you want to modify the /etc/init.d/knoppix-autoconfig script and find where the LANGUAGE variable gets set.  Change it to the desired default language (for example, from 'de' to 'us'.)&lt;br /&gt;
&lt;br /&gt;
[[Category: Remastering Knoppix]]&lt;/div&gt;</summary>
		<author><name>Dosboss</name></author>	</entry>

	<entry>
		<id>https://mail.knoppix.net/wiki/Remastering_Hacks</id>
		<title>Remastering Hacks</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Remastering_Hacks"/>
				<updated>2006-01-06T22:25:49Z</updated>
		
		<summary type="html">&lt;p&gt;Dosboss: /* Configuring locale settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are so many howtos cropping up, each with individual tips and customization examples for Knoppix remasters, that it seems good to have a place to put generic tips, no matter how you go about remastering, be it using scripts, completely by hand, or via a HD install, Morphix, etc...  Please add your tips and example &amp;quot;hacks&amp;quot; here.  &lt;br /&gt;
&lt;br /&gt;
= Remastering Process Tips =&lt;br /&gt;
== Saving space while running chroot environment ==&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;
= Installing software and clearing up space with Apt =&lt;br /&gt;
&lt;br /&gt;
== Get the best apt mirror ==&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;
&lt;br /&gt;
== Update all packages ==&lt;br /&gt;
&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;
&lt;br /&gt;
== Configuring locale settings ==&lt;br /&gt;
&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;
&lt;br /&gt;
*NOTE: Knoppix 4.0.2 (possibly other 4.x and 3.9 versions too) already has the 'locales' package installed.  In this case it is easy to get the right locale set.  Just run the command '''dpkg-reconfigure locales''' as the '''root''' user.  This will allow you to select/de-select the locales that you will use, and choose a default locale for your system.&lt;br /&gt;
&lt;br /&gt;
== Character based pkg mgt w/Aptitude ==&lt;br /&gt;
&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;
* 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;br /&gt;
&lt;br /&gt;
== Cleaning up space when removing apps ==&lt;br /&gt;
&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;
&lt;br /&gt;
== Removing a bunch of Internationalization support to save space`using Apt and grep ==&lt;br /&gt;
&lt;br /&gt;
The  following command returns a listing of all packages installed.&lt;br /&gt;
&lt;br /&gt;
 dpkg-query -l | less&lt;br /&gt;
&lt;br /&gt;
While that command is useful, you can use grep to sort out which packages you to remove. The following command shows me packages that kde uses for internationalization support and strips off all the other extraneous information.&lt;br /&gt;
&lt;br /&gt;
 dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3&lt;br /&gt;
&lt;br /&gt;
I can feed this to apt-get so that it will remove those packages.&lt;br /&gt;
&lt;br /&gt;
 apt-get remove `dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3`&lt;br /&gt;
&lt;br /&gt;
You could remove openoffice and other German tools as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get remove openoffice-de-en manpages-de trans-de-en&lt;br /&gt;
&lt;br /&gt;
== Other packages commonly removed for custom images ==&lt;br /&gt;
&lt;br /&gt;
Remove enigma and bacula as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get remove enigma bacula-common&lt;br /&gt;
&lt;br /&gt;
Remove emacs as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get remove emacs21 emacs21-bin-common emacs21-common emacsen-common gettext-el zile&lt;br /&gt;
&lt;br /&gt;
German Language user package&lt;br /&gt;
&lt;br /&gt;
 apt-get remove user-de&lt;br /&gt;
&lt;br /&gt;
This results in a reasonable base to begin updating and adding packages to this system. First configure /etc/apt/sources.list and add the appropriate entries for a local Debian mirror.&lt;br /&gt;
&lt;br /&gt;
== What to do when behind a proxy ==&lt;br /&gt;
&lt;br /&gt;
If you are behind a proxy and must authenticate against it to access the internet, then use the following command.&lt;br /&gt;
export http_proxy=&amp;quot;http://username:passwd@yourproxy.company.com:portnumber/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Useful packages for install packages and cleaning up locales ==&lt;br /&gt;
&lt;br /&gt;
Add three useful packages:&lt;br /&gt;
&lt;br /&gt;
 apt-get install localepurge aptitude&lt;br /&gt;
&lt;br /&gt;
Localepurge will only keep the locales that are marked. This means that it will free up additional space. After running through the configuration removing locales you don't need, you must run it from the command line:&lt;br /&gt;
&lt;br /&gt;
 localepurge&lt;br /&gt;
&lt;br /&gt;
Aptitude is a console menu front end to apt and dpkg.&lt;br /&gt;
&lt;br /&gt;
=== Package updates within the GUI ===&lt;br /&gt;
&lt;br /&gt;
 apt-get install synaptic&lt;br /&gt;
&lt;br /&gt;
Synaptic is a graphical front end to apt &amp;amp; dpkg.&lt;br /&gt;
&lt;br /&gt;
= Boot =&lt;br /&gt;
&lt;br /&gt;
== Boot logo ==&lt;br /&gt;
&lt;br /&gt;
The boot logo : The boot image is logo.16 and is a lss16 format image. To start make a 16 color image (in Gimp, create the image and use the Image -&amp;gt; Mode -&amp;gt; Indexed menu to export to 16 colors) you want to use. The image must be 640x480 or less. 640x400 leaves room at the bottom for the boot prompt. Save the image as a bmp format (in gimp you can save as ppm as well to skip the first conversion). Then run:&lt;br /&gt;
&lt;br /&gt;
 bmptoppm mylogo.bmp &amp;gt; logo16.ppm&lt;br /&gt;
 ppmtolss16 &amp;lt; logo16.ppm &amp;gt; logo.16&lt;br /&gt;
&lt;br /&gt;
When using the script method [[Knoppix Remastering with Menu Based Scripts]], the logo file will be located somewhere like:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;path-to-remaster dir&amp;gt;KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/boot/isolinux&lt;br /&gt;
&lt;br /&gt;
There are also some files in KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/KNOPPIX/images that might be interesting to look at.&lt;br /&gt;
&lt;br /&gt;
== Desktop ==&lt;br /&gt;
&lt;br /&gt;
=== To keep certain desktop settings persistent ===&lt;br /&gt;
&lt;br /&gt;
I must now mention the file /etc/X11/Xsession.d/45xsession. This script controls how knoppix behaves &amp;amp; how knoppix creates the knoppix user's home directory. &lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/X11/Xsession.d/45xsession and look for the ninth occurence of rsync in the script and it is found at or around line 128:&lt;br /&gt;
&lt;br /&gt;
 126: if [ -z &amp;quot;$DONTCHANGE&amp;quot; ]; then&lt;br /&gt;
 127: # No persistent homedir, copy everything&lt;br /&gt;
 128: rsync -Ha --ignore-existing /etc/skel/{.kde*,Desktop} $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
 129: [ &amp;quot;$USER&amp;quot; = &amp;quot;knoppix&amp;quot; ] &amp;amp;&amp;amp; rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is line 128 which populates the /home/knoppix folder. So In line 128, I delete from &amp;amp; including the { to the }. It is changed as follows.&lt;br /&gt;
&lt;br /&gt;
 126: if [ -z &amp;quot;$DONTCHANGE&amp;quot; ]; then&lt;br /&gt;
 127: # No persistent homedir, copy everything&lt;br /&gt;
 128: rsync -Ha --ignore-existing /etc/skel/ $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
 129: [ &amp;quot;$USER&amp;quot; = &amp;quot;knoppix&amp;quot; ] &amp;amp;&amp;amp; rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
Make the change and save the 45xsession file.&lt;br /&gt;
&lt;br /&gt;
=== Making a permanent desktop background change ===&lt;br /&gt;
&lt;br /&gt;
Replace the &amp;lt;path to chroot env&amp;gt;/KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/KNOPPIX/background.png from outside the chroot env to be the one you would like for the default desktop background.&lt;br /&gt;
&lt;br /&gt;
=== Changing the desktop splash screen ===&lt;br /&gt;
&lt;br /&gt;
Replace /usr/share/apps/ksplash/Themes/Default/splash_top.png &lt;br /&gt;
&lt;br /&gt;
(400X248 px is the normal size of this image)&lt;br /&gt;
&lt;br /&gt;
== Adding Icons ==&lt;br /&gt;
&lt;br /&gt;
Plonk them into /etc/skel/Desktop or if you are working under a knoppix home directory, plonk them there.  Under any KDE or GNOME system you can find examples of the format for these files.&lt;br /&gt;
&lt;br /&gt;
= Startup =&lt;br /&gt;
== Adding init scripts that should run ==&lt;br /&gt;
&lt;br /&gt;
Say you need to make sure certain services are started up at boot time.  You would think you could put them in the proper /etc/rc&amp;lt;num&amp;gt;.d/ directory and they would just work eh.  Ha.  Ha.  To get something to always start, you have to actually modify the /etc/init.d/knoppix-autoconfig script and have it start the services.  The init scripts will always be in the /etc/init.d/ directory, but they won't stay in the /etc/rc&amp;lt;num&amp;gt;.d directories, even if you put them there.  It will make you sad.&lt;br /&gt;
&lt;br /&gt;
For example, to add a custom vpn script and turn on some of the NFS client utils, one could add some lines after the automounty stuff:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Start automounter now&lt;br /&gt;
/etc/init.d/autofs start &amp;gt;/dev/null &amp;amp;&amp;amp; echo &amp;quot;${GREEN}Automounter started for: ${MAGENTA}${AUTOMOUNTS}${GREEN}.${NORMAL}&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
#&lt;br /&gt;
# CUSTOM SCRIPTY STUFF&lt;br /&gt;
#&lt;br /&gt;
if [ -f /etc/init.d/portmap ] ; then&lt;br /&gt;
        /etc/init.d/portmap start &amp;gt;/dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
        echo &amp;quot;${GREEN}Portmapper started&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
if [ -f /etc/init.d/nfs-common ] ; then&lt;br /&gt;
        /etc/init.d/nfs-common start &amp;gt;/dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
        echo &amp;quot;${GREEN}NFS Common Services started&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
# Start VPN&lt;br /&gt;
if [ -f /etc/init.d/vtundvpn ] ; then&lt;br /&gt;
        /etc/init.d/vtundvpn start &amp;gt;/dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
        echo &amp;quot;${GREEN}VPN started&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
#&lt;br /&gt;
# END CUSTOM SCRIPTY STUFF&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Making the CD fallback default language not German ==&lt;br /&gt;
&lt;br /&gt;
Again, you want to modify the /etc/init.d/knoppix-autoconfig script and find where the LANGUAGE variable gets set.  Change it to the desired default language (for example, from 'de' to 'us'.)&lt;br /&gt;
&lt;br /&gt;
[[Category: Remastering Knoppix]]&lt;/div&gt;</summary>
		<author><name>Dosboss</name></author>	</entry>

	<entry>
		<id>https://mail.knoppix.net/wiki/Bugs/4.0.2CD</id>
		<title>Bugs/4.0.2CD</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Bugs/4.0.2CD"/>
				<updated>2005-12-30T15:21:36Z</updated>
		
		<summary type="html">&lt;p&gt;Dosboss: added 3a &amp;quot;toram&amp;quot; problem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1)The 4.0.2 CD at boot says: Welcome to the KNOPPIX live Linux-on-DVD!&lt;br /&gt;
&lt;br /&gt;
THIS IS THE CD AND NOT THE DVD AS IT DISPLAYS!&lt;br /&gt;
&lt;br /&gt;
2) Boot Option &amp;quot;knoppix no{swap}&amp;quot; is getting ignored (at least on an SATA Harddrive with Linux Swap partition).  !!! Knoppix will still use the swap partition !!!&lt;br /&gt;
&lt;br /&gt;
3) if toram boot option is used, shutdown does not work. After X-windows exit, shell prompt appears, but system does not do shutdown. Also poweroff or shutdown commands have no effect at all.&lt;br /&gt;
&lt;br /&gt;
3a) if toram boot option is used, &amp;quot;knoppix-terminalserver&amp;quot; NFS does not work. The client side will say &amp;quot;Permission denied by server&amp;quot; when trying to mount the exported &amp;quot;/cdrom&amp;quot; dir. Have attempted modifying/blanking hosts.allow and hosts.deny, fiddling with export options, flushing iptables, and changing permissions/owners on the exported directory.  This function works flawlessly when booted from CD.&lt;br /&gt;
&lt;br /&gt;
4) not sure this is new, but while customizing 4.0.2CD I encountered a problem involving hotplugging multiple usb-storage devices.  If one is mounted, and another is plugged in, the first device often seems to move to a new device but the old mount remains.  There seems to be some explanation of this behavior in /sbin/hotplug-knoppix.  Comments therein suggests the problem goes back to 2002.  It would be the nice and expected behavior if plugging new storage doesn't booger up existing mounts.  Any explanation of the issues involved would be helpful as well.&lt;br /&gt;
&lt;br /&gt;
5) Starting knoppix with boot option &amp;quot;knoppix desktop=xfce&amp;quot; initiates successfully xsession, sound can be heard but when loading xfce desktop computer returns to shell screen with message X Window xsession terminated with errors.&lt;br /&gt;
Tried on x40, within vmware. all other options boot up correctly (in regard to xsession...)&lt;br /&gt;
no errors in xfreelogs:&lt;br /&gt;
(WW) VMWARE(0): Failed to set up write-combining range (0xfa000000,0x1000000)&lt;br /&gt;
(WW) VMWARE(0): Option &amp;quot;DPMS&amp;quot; is not used&lt;br /&gt;
(WW) `fonts.dir' not found (or not valid) in &amp;quot;/usr/share/fonts/truetype&amp;quot;.&lt;br /&gt;
	Entry deleted from font path.&lt;br /&gt;
	(Run 'mkfontdir' on &amp;quot;/usr/share/fonts/truetype&amp;quot;).&lt;br /&gt;
(WW) The directory &amp;quot;/usr/share/fonts/latex-ttf-fonts&amp;quot; does not exist.&lt;br /&gt;
	Entry deleted from font path.&lt;br /&gt;
(WW) The directory &amp;quot;/usr/X11R6/lib/X11/fonts/defoma/CID&amp;quot; does not exist.&lt;br /&gt;
	Entry deleted from font path.&lt;br /&gt;
(WW) The directory &amp;quot;/usr/X11R6/lib/X11/fonts/defoma/TrueType&amp;quot; does not exist.&lt;br /&gt;
	Entry deleted from font path.&lt;br /&gt;
(WW) Open APM failed (/dev/apm_bios) (No such device)&lt;br /&gt;
&lt;br /&gt;
just tried this on a quite typical desktop machine. same behaviour. desktop xfce seems to be broken.&lt;br /&gt;
&lt;br /&gt;
6) /usr/share/knoppix/profile contains files and directories (e.g. .gnupg .mozilla .nessus.keys .netscape) which are copied into /home/knoppix when the X session is started (see rsync commands in /etc/X11/Xsession.d/45xsession). However, these files are '''owned by root''', not knoppix! So files which knoppix does not have permission to read '''fail to get copied''' (e.g. .nessus.keys). Only found this out because I was trying to add a .ssh directory in there and wondered why it failed to get copied across at boot time ... a swift ''chown -R knoppix.knoppix /usr/share/knoppix'' before re-mastering the Knoppix CD fixes this.&lt;br /&gt;
&lt;br /&gt;
If you follow the instructions on the [[Knoppix_Remastering_Howto]], the equivalent command would be ''chown -R 1000.1000 /mnt/hda1/knx/source/KNOPPIX/usr/share/knoppix''.&lt;br /&gt;
&lt;br /&gt;
7) Knoppix 4.02 CD won't boot on an IBM Thinkpad I Series 1161-43u.  It only&lt;br /&gt;
displays &amp;quot;Disabling IRQ 15&amp;quot; over and over.  Knoppix 3.8 CD works fine.&lt;br /&gt;
* Have you tried any of the cheatcodes?  Have you cross posted this issue to the forum? --[[User:Rwcitek|Rwcitek]] 22:16, 5 Nov 2005 (GMT)&lt;br /&gt;
&lt;br /&gt;
8) Change read/write mode not working with bootfrom-cheat ---&lt;br /&gt;
If I start knoppix with &amp;quot;knoppix bootfrom=/dev/hdb1/KNOPPIX.iso&amp;quot;, and then right-click &amp;quot;Hard Disk [hdb1]&amp;quot; on Desktop and choose Actions-&amp;gt;Change read/write mode, I get this error after confirming the action: &amp;quot;The remount command failed. Maybe there is another process accessing the filesystem currently.&amp;quot;&lt;br /&gt;
I can still remount this manually with &amp;quot;sudo mount -o remount,rw /cdrom2.loop&amp;quot;&lt;br /&gt;
This bug is also present in 4.0.2-DVD&lt;br /&gt;
* Possible workaround: create a swapfile /mnt/hdb1/knoppix.swp.  Have you cross posted this issue in a forum? --[[User:Rwcitek|Rwcitek]] 22:16, 5 Nov 2005 (GMT)&lt;br /&gt;
&lt;br /&gt;
9) Knoppix-terminalserver&lt;br /&gt;
* clients/hosts booting with etherboot ROM's fail, because of some bug in the etherboot.nbi, but I'm not sure. can't find miniroot.gz, ... and than vmlinuz&lt;br /&gt;
* /etc/resolv.conf which is symlink to /etc/dhcpc/resolv.conf is not updated even for the hosts which boot with a PXE ROM, running netcardconfig with dhcp yes does the trick. --[[User:bsd|bsd]] Mon Nov  7 05:30:02 UTC 2005&lt;br /&gt;
&lt;br /&gt;
10) CD 4.02 do not use the USB 2.0 full speed mode.&lt;br /&gt;
The error is in the linuxrc in /boot/isolinux/minirt.gz The line &lt;br /&gt;
USB2=&amp;quot;ehci_hcd.ko&amp;quot; &lt;br /&gt;
should be &lt;br /&gt;
USB2=&amp;quot;ehci_hcd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
11) There seems to be something wrong with the hardware detection of several versions of knoppix (all Knoppix versions with kernel 2.6.x that I tried, including the latest (4.0.2)):&lt;br /&gt;
I've written a forum entry describing the problem: http://www.knoppix.net/forum/viewtopic.php?t=22343&lt;br /&gt;
To be more specific, the wrong driver for a family of network cards is being loaded (or that's what I think), causing knoppix to crash on boot, while trying to get an IP from DHCP.&lt;/div&gt;</summary>
		<author><name>Dosboss</name></author>	</entry>

	</feed>