PICkit2 - Tutorials, Experiments
PICkit 2 - Small size USB programmer
from Microchip.
How to use it as a demo device for
USB programming in C language
Java SE SWING JSR-296 Example
How to run background task in
JSR-296 SWING application
with 'busy animation' in the status bar.
Useful addition to Netbeans template.
Computer vision
Vision is the main sense of our robots.
See some Java algorithms we use
Tips-n-Tricks
Some advices about hardware and software tricks
PIC Programming
(firmware)
Assembler program for PIC16F628A
Communication program for sending
commands from cell phone to motors.
Driver for motor controller.
RoboHobbyPlugin
Open Source project on
SourceForge, Java brain
for the robot
Part 2
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:
KNOPPIX_V5.1.1CD-2007-01-04-EN.iso
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
>java -version
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.
Step-by-step instructions:
1) Download CD image (big binary file) from KNOPPIX server.
I recommend URL:
ftp://ftp.kernel.org/pub/dist/knoppix/
2) Download new Java from SUN server.
I recommend you NOT to use RPM file.
It would be better to use 'bin' file. For example file 'jdk-6u3-linux-i586.bin' .
3) Get the file and save it on your PC, for example in the directory
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.
------------------
Note:
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 :
www.RoboHobby.com-Open_Terminal_Program.gif
8) Become a root - type in command line:
>sudu su
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
'/mnt/hda1/knx/master/'
17) Copy 3 scripts from /mnt/hda5/LinuxNewJava to /mnt/hda7/KN directory
all_iso.sh
mk_iso.sh
live_cd_iso.sh
18) Run chroot command:
>chroot /mnt/hda7/KN/source/KNOPPIX
Now the initial directory '/mnt/hda7/KN/source/KNOPPIX' is your root directory '/' (under chroot)
19) Run the script file 'rem_list.sh':
>sh ./rem_list.sh
20) Install new Java version - if you in 'mc', click on
21) Remove the file 'rem_list.sh' from directory
>rm ./rem_list.sh
22) Go back from chroot, using Ctrl+D and run script 'all_iso.sh'
(or run this script outside of the chroot )
>sh ./all_iso.sh
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.
>java -version
New Java is in directory /jdk1.6.0_03/bin/
>cd /jdk1.6.0_03/bin/
>java -version
If you did not delete old Java, then you may have two versions of Java on the same KNOPPIX CD
Contact us:
If you have any questions,
please, send me a letter :