Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
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
OSTC MK2 1394
-
- Posts: 37
- Joined: 04 Feb 2011, 15:06
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Hi D,
I recently migrated to Ubunto 10.10 and I downloaded Jdivelog, installed Sun JAVA but when I type the string in the terminal I receive the following: "Unable to access jarfile jdivelog-installer-2.14.jar".
I know you are not an IT spec, but perahps you have an idea....
Thanks,

I recently migrated to Ubunto 10.10 and I downloaded Jdivelog, installed Sun JAVA but when I type the string in the terminal I receive the following: "Unable to access jarfile jdivelog-installer-2.14.jar".
I know you are not an IT spec, but perahps you have an idea....
Thanks,

www.pinnanobilis.net
OSTC Mk2 1695
OSTC Mk2 1695
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
peppe.marsala Wrote:
-------------------------------------------------------
> Hi D,
>
> I recently migrated to Ubunto 10.10 and I
> downloaded Jdivelog, installed Sun JAVA but when I
> type the string in the terminal I receive the
> following: "Unable to access jarfile
> jdivelog-installer-2.14.jar".
> I know you are not an IT spec, but perahps you
> have an idea....
>
> Thanks,
>
>
Hi Peppe,
Couple of possibilities.
First it is likely that you downloaded the file to the Downloads folder so navigate to it.
Just like in the old MS-DOS (which is a direct plagiarism of UNIX systems) type "cd name-of-folder" (BTW UNIX systems are case sensitive Downloads is not the same as downloads)
Once you are in the required folder (or simply to see which folder is next)type "ls" you should see a list of the files and folders contained in the folder you currently are. (it is the equivalent of "dir" on MS-DOS)
Once you are in the right location run the file by typing "sudo java -jar THE NAME OF THE FILE" (i.e. super user do, program java, run jar file, name of file)
(This is the other possibility... you are trying to install ver 15 and the command posted above is for 14)
Tip. You do not need to write the full name just type "sudo java -jar and start typing the name" and then press the tab it will auto complete it for you.
It's the only time you need to do it. The reason to do it from terminal is because you need to install JDiveLog as a "root" user. Otherwise it will only run once.
I hope this helps.
Otherwise let me know and we'll try something else.
Best regards
D
-------------------------------------------------------
> Hi D,
>
> I recently migrated to Ubunto 10.10 and I
> downloaded Jdivelog, installed Sun JAVA but when I
> type the string in the terminal I receive the
> following: "Unable to access jarfile
> jdivelog-installer-2.14.jar".
> I know you are not an IT spec, but perahps you
> have an idea....
>
> Thanks,
>
>

Hi Peppe,
Couple of possibilities.
First it is likely that you downloaded the file to the Downloads folder so navigate to it.
Just like in the old MS-DOS (which is a direct plagiarism of UNIX systems) type "cd name-of-folder" (BTW UNIX systems are case sensitive Downloads is not the same as downloads)
Once you are in the required folder (or simply to see which folder is next)type "ls" you should see a list of the files and folders contained in the folder you currently are. (it is the equivalent of "dir" on MS-DOS)
Once you are in the right location run the file by typing "sudo java -jar THE NAME OF THE FILE" (i.e. super user do, program java, run jar file, name of file)
(This is the other possibility... you are trying to install ver 15 and the command posted above is for 14)
Tip. You do not need to write the full name just type "sudo java -jar and start typing the name" and then press the tab it will auto complete it for you.
It's the only time you need to do it. The reason to do it from terminal is because you need to install JDiveLog as a "root" user. Otherwise it will only run once.
I hope this helps.
Otherwise let me know and we'll try something else.
Best regards
D
OSTC MK2 1394
-
- Posts: 37
- Joined: 04 Feb 2011, 15:06
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
D,
thank you for your tips... I was still working it around whist you wrote and I was able to install it... just moving the .jar from "downloads" to "home"
After I posted I downloaded the 2.15, looks to work but I haven't connected the Mk2 to it yet.
Peppe
thank you for your tips... I was still working it around whist you wrote and I was able to install it... just moving the .jar from "downloads" to "home"

After I posted I downloaded the 2.15, looks to work but I haven't connected the Mk2 to it yet.
Peppe
www.pinnanobilis.net
OSTC Mk2 1695
OSTC Mk2 1695
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
before you install 2.15 you need to completely delete 2.14.
Not at home right now to see where the folder is located but I think its under the main file system then /user /local or something like that. There is a folder called JDiveLog. Just delete it and start again. (not everything just the sudo java -jar bit.)
Easiest way is open a terminal and sudo nautilus. That will open nautilus (file browser) as root. Then you can navigate your way through and delete anything you want (so be careful).
D
Not at home right now to see where the folder is located but I think its under the main file system then /user /local or something like that. There is a folder called JDiveLog. Just delete it and start again. (not everything just the sudo java -jar bit.)
Easiest way is open a terminal and sudo nautilus. That will open nautilus (file browser) as root. Then you can navigate your way through and delete anything you want (so be careful).
D
OSTC MK2 1394
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
it is /usr/local/JDiveLog
OSTC MK2 1394
-
- Posts: 37
- Joined: 04 Feb 2011, 15:06
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Thanks again,
I did not installed 2.14 before, 2.15 starts smoothly and is working even better! a little problem with USB at the beginning but after restarting the MK2 and Jdivelog I downloaded my first dive!
Can I get in touch with you via email? I have a picture to send you.
I did not installed 2.14 before, 2.15 starts smoothly and is working even better! a little problem with USB at the beginning but after restarting the MK2 and Jdivelog I downloaded my first dive!
Can I get in touch with you via email? I have a picture to send you.
www.pinnanobilis.net
OSTC Mk2 1695
OSTC Mk2 1695
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
sure, my name at gmail
OSTC MK2 1394
-
- Posts: 37
- Joined: 04 Feb 2011, 15:06
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
so, as I read it and gmail dot com?
www.pinnanobilis.net
OSTC Mk2 1695
OSTC Mk2 1695
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Yep, d... At g... Dot com
OSTC MK2 1394
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Hi,
I am running Ubuntu 11.04. I installed JDiveLog and when I select
Download from Divecomputer I can see the screen on my OSTC changing
but I can not select anything
Interface
Start
Data
Header
Profile
Done
at the same time a red light flashes at the bottom left hand corner
of my JDivelog and a bar goes yellow saying Transferring but at the
end of it nothing happens!!!
any thoughts????
D
I am running Ubuntu 11.04. I installed JDiveLog and when I select
Download from Divecomputer I can see the screen on my OSTC changing
but I can not select anything
Interface
Start
Data
Header
Profile
Done
at the same time a red light flashes at the bottom left hand corner
of my JDivelog and a bar goes yellow saying Transferring but at the
end of it nothing happens!!!
any thoughts????
D
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Under file > settings > Dive computer make sure you've got the protocol that matches our current system version.
Make sure that the OSTC is ON when you connect it to the PC and remains ON when you launch JDivelog and attempt to download.
D
Make sure that the OSTC is ON when you connect it to the PC and remains ON when you launch JDivelog and attempt to download.
D
OSTC MK2 1394
-
- Posts: 841
- Joined: 30 Jul 2011, 07:30
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Cheers,
Hansjoerg
--> 2N - 2201 / 3892
--> OSTC4 - 257 / 392 / 424 / 1324 Fischer
--> OSTC5 - 1507 S8
RTFM
Hansjoerg
--> 2N - 2201 / 3892
--> OSTC4 - 257 / 392 / 424 / 1324 Fischer
--> OSTC5 - 1507 S8
RTFM
-
- Posts: 10
- Joined: 06 Sep 2011, 10:36
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Dimitris Papakonstantis Wrote:
-------------------------------------------------------
> Hi,
>
> I am running Ubuntu 11.04. I installed JDiveLog
> and when I select
> Download from Divecomputer I can see the screen on
> my OSTC changing
> but I can not select anything
>
> Interface
> Start
> Data
> Header
> Profile
> Done
>
> at the same time a red light flashes at the bottom
> left hand corner
> of my JDivelog and a bar goes yellow saying
> Transferring but at the
> end of it nothing happens!!!
> any thoughts????
>
> D
You will get this sort of behaviour if there is no new dives to download. Is this the first time you have downloaded? Did you create a new log?
-------------------------------------------------------
> Hi,
>
> I am running Ubuntu 11.04. I installed JDiveLog
> and when I select
> Download from Divecomputer I can see the screen on
> my OSTC changing
> but I can not select anything
>
> Interface
> Start
> Data
> Header
> Profile
> Done
>
> at the same time a red light flashes at the bottom
> left hand corner
> of my JDivelog and a bar goes yellow saying
> Transferring but at the
> end of it nothing happens!!!
> any thoughts????
>
> D
You will get this sort of behaviour if there is no new dives to download. Is this the first time you have downloaded? Did you create a new log?
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Hi,
thanks for the responses
I have the OSTC ON when I try to download
and this is the first time I am trying to download dives since I bought it
gave up with trying to make it work in ubuntu
so trying to get in windows XP SP2 but does exactly the same...
Regards
thanks for the responses
I have the OSTC ON when I try to download
and this is the first time I am trying to download dives since I bought it
gave up with trying to make it work in ubuntu
so trying to get in windows XP SP2 but does exactly the same...

Regards
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Try using another usb cable
OSTC MK2 1394
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
have tried a 4 different cables
pretty confident that the cables are ok as they seem to work fine with my mobile and external hdd
pretty confident that the cables are ok as they seem to work fine with my mobile and external hdd
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Ok, regardless of the operating system.
Make sure that you plug the computer and turn it on before launching the software.
In linux make sure it's listed under the usb hardware (lsusb our something like that)
In ms make sure that you install the driver before you even plug the n2.
Make sure as well that it shops up in the hardware list.
The port on your computer is working as they used it to load the os.
Be patient it will be very easy once you figure it out. Think about what process are you doing that may be failing the whole op
Make sure that you plug the computer and turn it on before launching the software.
In linux make sure it's listed under the usb hardware (lsusb our something like that)
In ms make sure that you install the driver before you even plug the n2.
Make sure as well that it shops up in the hardware list.
The port on your computer is working as they used it to load the os.
Be patient it will be very easy once you figure it out. Think about what process are you doing that may be failing the whole op
OSTC MK2 1394
Re: Getting the OSTC to work with JDiveLog under Ubuntu 10.10 Tutorial
Hey Dimitris
When you go to your settings can you see the com port?
swissdiving Wrote:
-------------------------------------------------------
> http://www.heinrichsweikamp.com/file.php?2,f
> ile=233,filename=jDiveLogEinstellungen.jpg
When you go to your settings can you see the com port?
swissdiving Wrote:
-------------------------------------------------------
> http://www.heinrichsweikamp.com/file.php?2,f
> ile=233,filename=jDiveLogEinstellungen.jpg
OSTC MK2 1394