Memory stick duo internal reader @ dell m1330 in Ubuntu 10.10 (Ricoh R5C592)

UPDATE: Ubuntu 12.04 includes the Ricoh internal card reader driver, so I will advice you to upgrade your Ubuntu to minimum 12.04 so you do not have to mess around with installing drivers for the Ricoh internal card reader… However if you are stuck with an old version of Ubuntu less than 12.04, then you can follow the guide below:

This is the essential information needed to install a driver for the Ricoh internal card reader (R5C592) so that it can read memory stick duo. It works for my Dell m1330 laptop.

I have got all information from the following bug thread and if there is any problem with my guide then it is probably a good idea to have a look at that thread (e.g. if the linux kernel is not supported):

Lets get started! First we gotta make sure that you have the particular memory stick reader chipset.

type the following command: lspci | grep Ricoh

It should output this (03:01.x can vary):
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

Now go ahead and click “download master.tar.gz” from to download the needed driver. I have also uploaded a version of it here, but it might be outdated for the current kernel: ricoh-kernel-ricoh-kernel-master.tar Then unzip the folder.

Open the unzipped folder in a terminal, open to the subfolder “memstick” and write the following commands (if any of them fails, try preceding them with sudo):
make install
make load

Now the drive should be present!!!

Big thanks to the Maxim Levitsky for the driver and guidance!!

Be aware that you need to reinstall the driver each time you update the kernel… But I have made a simple gui based script to make it much faster to reinstall the driver:

Just put the file in the root folder of the unzipped file (ricoh-kernel-ricoh-kernel-master.tar), make it executable and run it.

This is my first attempt in shell scripting so please don’t be offended by my newbie mistakes.

Java UML Generator plugin for Eclipse

Yet another brilliant Eclipse plugin:

Create a Diagram and then drag the wanted files onto it.

Remember to save as a JPG instead of GIF because some text is missing when using GIF.

I recommend the following disabling:

  • Disable package (for smaller projects)
  • attribute defaults (default values)
  • icons (remove eclipse symbols and use normal UML)
  • dependencies/add relationsships/labels/nesting

Output HTML with syntax highlight from Java Code

This plugin for eclipse is brilliant for including source code in computer science reports:

Remember to go to Window -> Preferences -> Java -> Java2HTML:

  • Show line numbers
  • Show file name
  • Show Table border
  • Tabulator size 2

Ant cannot find JRE to run JUnit tests

Sometimes Ant cannot find the JRE to run the JUnit tests – this can easily be fixed by right clicking on the build.xml file, selecting “Run As..” -> “External Tools Configuration”. Choose the JRE tab far to the right and select the JRE that the workspace also runs.

Eclipse 3.6.1 Linux General, Junit 4.0 and ant 1.71.2.

JUnit jar classpath error in Eclipse

When trying to develop unit tests using JUnit 4 and Ant 1.71 in Eclipse 3.6.1, I kept getting this error even though I had added JUnit.jar to the Eclipse buildpath:
The <classpath> for <junit> must include junit.jar if not in Ant's own classpath
The solution was to do the following:
Window -> Preferences -> Ant -> Runtime -> Classpath: Add JUnit.jar to the Global Entries as an external Jar-file.

Remove old Linux Kernels from Dualboot Grub Startup Menu using Ubuntu

First of all, determine which Linux Kernel version you are running using the command:
sudo uname -r

Then go to System ->Administration -> “Synaptic Package Manager”.

Search for “linux-image-“, arrange by installed packages (click at the column header most to the left) and then completely remove all linux kernels (linux-images) that are older than you current version.

Then run the command:
sudo update-grub

Installing Oracle SQL Developer on Ubuntu 10.04

Enable the partner repository in order to download Sun Java6 JDK: System -> Software Sources -> Other Software -> partner)
Get the following packages from System -> Synaptic Package Manager:
  • sqldeveloper-package (this is a special package that contains all prerequisites except sun-java6-jdk)
  • sun-java6-jdk
Download “Oracle SQL Developer for other platforms” from bottom of Oracles website:
Extract the archive to a folder and make the file executable (right click on it and select properties->permissions).
Run Oracle SQL Developer for the first time by typing the following command in the console:
sh /path/to/extracted/folder/
When requested for a JVM directory, use something like this:
Click the save all button (this saves the path of the JVM directory) and then close the program.
You can now use the Oracle SQL Developer by running the following command:
sh /path/to/extracted/folder/
I would recommend making a launcher for it – just right click on the desktop. Avoid using “~” in the path.