Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Posted: 26 Oct 2010, 02:26
This guide aims to show on a step by step basis how to synchronise the OSTC with JDiveLog under Ubuntu 10.10 32bit. (I’ll make a note or two for 64bit)
NOTE: I am not an IT professional. There must be easier ways to complete this task however I lack the knowledge to complete it on an easier way. I would actually thank if someone could turn this small guide into a script so people like me that hate windoze but are no expert at Linux have an easier task linking the OSTC and Jdivelog. (Potentially it will enhance sales)
Having said that, it is not a hard task to complete. However a number of components need to work together in order that the communication works correctly.
Ok, this is what you need to do.
[hr]
1. The driver. The current version of Ubuntu already incorporates the driver into the kernel so there is NO need to compile the driver again. The computer is plug and play in Ubuntu 10.10
[hr]
2. Java. The developers of JDiveLog have used the Sun Java implementation to deploy their software through Mac, Windoze and Linux. Ubuntu recently dropped Sun Java from the main distribution in favour of OpenJDK. I am sure that OpenJDK works fine but I encourage you to use Sun Java JDK as per the JDiveLog’s website recommendation.
a) Add the repository
a. Go to Applications –> Ubuntu Software Center
b. Then select Edit –> Software Sources…
c. Select ‘Other Software’ tab and make sure the following two lines below are checked.
http:// archive.canonical.com/ubuntu maveric partner" (has an extra space to allow reading)
http:// archive.canonical.com/ubuntu maveric partner (source code)" (has an extra space to allow reading)
If you can’t see the two lines above then click Add and copy paste the following lines (one by one) and click Add Source
"deb http:// archive.canonical.com/ubuntu maverick partner" (has an extra space to allow reading)
"deb-src http:// archive.canonical.com/ubuntu maverick partner" (has an extra space to allow reading)
Then, click "Close" and when asked, click "Reload"
b) Install Sun Java
a. Open a terminal and write:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts sun-java6-jdk
b. Type your password
c. Follow the prompts for the Sun Java licences.
c) Change the default Java from OpenJDK to Sun Java
Get the list of installed java versions. On a terminal type::
sudo update-java-alternatives -l
The output of the above command on my system is:
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
To check the current version you can use the following:
java -version
I get the following:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7)
OpenJDK Server VM (build 14.0-b08, mixed mode)
To switch to the Sun-Java-6 I used:
sudo update-java-alternatives -s java-6-sun
[hr]
3. JDiveLog.
a. Go to the JDiveLog website, How To, Linux
b. Download the software (save it on the home folder to make it easy)
c. Open a terminal and write the following command
sudo java -jar jdivelog-installer-2.14.jar (or relevant file/version)
On installation tick the option to install RXTX 2.1
(If you are running Ubuntu 64 then do not tick this box you will need to manually install RXTX 2.2pre release which is 64 bit compatible)
[hr]
4. OSTC
The OSTC needs to be ON when you attempt to synchronise
Done!
[hr]
*** Ubuntu 64 users
Download rxtx 2.2pre2 (pre-release) bin file from here
http:// rxtx.qbang.org/wiki/index.php/Download (has an extra space to allow reading)
extract the file
tar -zxvf rxtx-2.2pre2-bins
copy the RXTXcomm.jar to the relevant folder (you will need to find the correct path sorry I don’t have at present a 64 bit installation to check it for you)
For example
cp rxtxcomm.jar /usr/java/j2sdk1.4.0/jre/lib/ext/
and librxtxSerial.so located under x86_64-unknown-linux-gnu to the relevant folder. (again you need to find the correct path)
For example
cp libSerial.so /usr/java/j2sdk1.4.0/jre/lib/i386/
[hr]
Best regards
D
NOTE: I am not an IT professional. There must be easier ways to complete this task however I lack the knowledge to complete it on an easier way. I would actually thank if someone could turn this small guide into a script so people like me that hate windoze but are no expert at Linux have an easier task linking the OSTC and Jdivelog. (Potentially it will enhance sales)
Having said that, it is not a hard task to complete. However a number of components need to work together in order that the communication works correctly.
Ok, this is what you need to do.
[hr]
1. The driver. The current version of Ubuntu already incorporates the driver into the kernel so there is NO need to compile the driver again. The computer is plug and play in Ubuntu 10.10
[hr]
2. Java. The developers of JDiveLog have used the Sun Java implementation to deploy their software through Mac, Windoze and Linux. Ubuntu recently dropped Sun Java from the main distribution in favour of OpenJDK. I am sure that OpenJDK works fine but I encourage you to use Sun Java JDK as per the JDiveLog’s website recommendation.
a) Add the repository
a. Go to Applications –> Ubuntu Software Center
b. Then select Edit –> Software Sources…
c. Select ‘Other Software’ tab and make sure the following two lines below are checked.
http:// archive.canonical.com/ubuntu maveric partner" (has an extra space to allow reading)
http:// archive.canonical.com/ubuntu maveric partner (source code)" (has an extra space to allow reading)
If you can’t see the two lines above then click Add and copy paste the following lines (one by one) and click Add Source
"deb http:// archive.canonical.com/ubuntu maverick partner" (has an extra space to allow reading)
"deb-src http:// archive.canonical.com/ubuntu maverick partner" (has an extra space to allow reading)
Then, click "Close" and when asked, click "Reload"
b) Install Sun Java
a. Open a terminal and write:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts sun-java6-jdk
b. Type your password
c. Follow the prompts for the Sun Java licences.
c) Change the default Java from OpenJDK to Sun Java
Get the list of installed java versions. On a terminal type::
sudo update-java-alternatives -l
The output of the above command on my system is:
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
To check the current version you can use the following:
java -version
I get the following:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7)
OpenJDK Server VM (build 14.0-b08, mixed mode)
To switch to the Sun-Java-6 I used:
sudo update-java-alternatives -s java-6-sun
[hr]
3. JDiveLog.
a. Go to the JDiveLog website, How To, Linux
b. Download the software (save it on the home folder to make it easy)
c. Open a terminal and write the following command
sudo java -jar jdivelog-installer-2.14.jar (or relevant file/version)
On installation tick the option to install RXTX 2.1
(If you are running Ubuntu 64 then do not tick this box you will need to manually install RXTX 2.2pre release which is 64 bit compatible)
[hr]
4. OSTC
The OSTC needs to be ON when you attempt to synchronise
Done!
[hr]
*** Ubuntu 64 users
Download rxtx 2.2pre2 (pre-release) bin file from here
http:// rxtx.qbang.org/wiki/index.php/Download (has an extra space to allow reading)
extract the file
tar -zxvf rxtx-2.2pre2-bins
copy the RXTXcomm.jar to the relevant folder (you will need to find the correct path sorry I don’t have at present a 64 bit installation to check it for you)
For example
cp rxtxcomm.jar /usr/java/j2sdk1.4.0/jre/lib/ext/
and librxtxSerial.so located under x86_64-unknown-linux-gnu to the relevant folder. (again you need to find the correct path)
For example
cp libSerial.so /usr/java/j2sdk1.4.0/jre/lib/i386/
[hr]
Best regards
D