Java Installation on your own (customized) KNOPPIX CD
How to place new JDK to your own version of KNOPPIX Live CD.
Note about KNOPPIX versions
I like to use KNOPPIX V5.0.1. File: KNOPPIX_V5.0.1CD-2006-06-01-EN.iso.
The URL is ftp://ftp.kernel.org/pub/dist/knoppix/KNOPPIX_V5.0.1CD-2006-06-01-EN.iso
Java version, installed there is 1.4.2
And it would be good to install newer version on the KNOPPIX.
There are some more fresh versions, for example:
The URL is: ftp://ftp.kernel.org/pub/dist/knoppix/KNOPPIX_V5.1.1CD-2007-01-04-EN.iso)
Java, installed on the KNOPPIX 5.1.1 also is not the best.
If you type
You will see '1.5.0_10', not the last possible version of Java.
I do not like this version of KNOPPIX (5.1.1) and do not work with it.
There are some strange things with this version, for example you can see
strange time at the bottom right corner of the screen.
HOW TO DO JAVA-ORIENTED KNOPPIX REMASTERING
This section of the article is a little bit more complicated.
It is supposed that you know some Linux commands and you know how to work with
mc (Midnight Commander) - Unix/Linux program, similar to good-old Norton Commander for DOS.
To work with this section you should have Linux-compatible partition on your hard drive.
Let's say it is partition 'hda7', for example.
(On your PC this may be 'hda1' or 'hdc3', etc.)
This partition should be pretty big, for example 10Gb.
It must be formatted in one of Linux-oriented formats,
for example 'ext3' or 'reiserfs'.
It should not be FAT or NTFS.
You can create this partition on your hard drive using one of Linux distribution.
If you ask me, I like to use Open SUSE for this.
One more note: Some steps may take some time.
The time depends on speed of your CPU.
I used for this experiments my old PC with Celeron 1.7Mhz.
1) Download CD image (big binary file) from KNOPPIX server.
I recommend URL:
Notes about 'rem_list.sh' file:
The purpose of script file 'rem_list.sh' is to remove some applications
from original KNOPPIX CD installation copy - just to free some space for new Java (JDK).
You can edit this file - add or remove some commands and remove or add applications.
If you comment int the file 'rem_list.sh' the string:
apt-get -y remove --purge java*
then old Java will not be removed and it will be possible to use even two versions of
Java on the same KNOPPIX CD.
5) Write this CD image to empty CD disk,
using Nero or other program
I can recommend free program 'CDBurnerXP', Site: www.cdburnerxp.se
if you still use Windows
or using k3b, if you under Linux
6) Insert this new CD to CD drive, re-start your PC and load OS from the CD.
7) Open terminal window :
8) Become a root - type in command line:
9) Mount your Linux-type hard drive partition.
For example I have Linux-compatible disk on 'hda7'
Type in command line:
>mount -rw /dev/hda7 /mnt/hda7
(I also have hda5 FAT-formatted partition)
Type 'mc' in terminal window - this will open Midnight Commander
Typical view of Midnight Commander program:
10) Create new directory 'KN', using F7 in mc program or using Linux commands.
11) Create directory '/mnt/hda7/KN/source'
12) Copy directory '/KNOPPIX' to '/mnt/hda7/KN/source/KNOPPIX'
You can do this, using 'mc' - (command 'copy' in mc is key 'F5') or using Linux command:
>cp -R /KNOPPIX /mnt/hda7/KN/source/
This may take some time (on my PC it takes 20 minutes)
Note: Command-line version works faster then mc version.
13) Copy 'boot' directory, using mc (F5) or Linux commands:
>cp -ar /cdrom/boot /mnt/hda7/KN/master/boot
14) Copy all the other files from /cdrom directory, using mc (F5) or Linux commands:
>cp -ar /cdrom/* /mnt/hda7/KN/master/
15) Create directory /mnt/hda7/KN/master/KNOPPIX, using mc or command:
>mkdir -p /mnt/hda7/KN/master/KNOPPIX
16) Place the file 'rem_list.sh' from '/mnt/hda5/LinuxNewJava/' to directory
17) Copy 3 scripts from /mnt/hda5/LinuxNewJava to /mnt/hda7/KN directory
18) Run chroot command:
Now the initial directory '/mnt/hda7/KN/source/KNOPPIX' is your root directory '/' (under chroot)
19) Run the script file 'rem_list.sh':
20) Install new Java version - if you in 'mc', click on
21) Remove the file 'rem_list.sh' from directory
22) Go back from chroot, using Ctrl+D and run script 'all_iso.sh'
(or run this script outside of the chroot )
Note(!): This may take time. On my PC it takes 40-80 minutes.
23) After this you should see ISO file in the directory /mnt/hda7/KN/knoppix.iso
24) Burn this ISO file to CD, using your favorite CD writing utility
25) Insert this new CD to cd drive and re-start your PC
26) Test - what java version do you have on your new re-mastered KNOPPIX CD.
New Java is in directory /jdk1.6.0_03/bin/
If you did not delete old Java, then you may have two versions of Java on the same KNOPPIX CD