Open CPN on ubuntu?

Yes. No need for wine. I haven't used the latest ubuntu but I regularly use 12.04 for development work and I also run it on OpenSuSE. See here for various options for install including installation from repos:
http://opencpn.org/ocpn/installing_opencpn
You could also install it from git and compile it but if you're asking this question I'm guessing you don't want to do that.

See the link above for recommendations such as making sure you're in the dialout group if you want to access serial devices (such as GPS units)
 
Those are packages for older versions of ubuntu you have gone to, built over a year ago.

There only seems to be a beta for ubuntu 13 as yet.

Ubuntu 14.04 (trusty) was only officially released 17 April 2014 so as yet there isn't a specific opencpn package for trusty.

You could compile it yourself, wait for someone else to build it and package it up or try and run with the version for ubuntu 13, which may or may not work.

It isn't too bad to compile.

You seem to have put yourself on the bleeding edge...

So I go to that link.

Select " Download OpenCPN 3.2.2 for all other *Ubuntu's, Linux Mint and other Ubuntu clones"

It takes me to this page https://launchpad.net/~opencpn/+archive/opencpn

That offers me 7 different "published packages"

How do I choose which one. There's nothing to tell a non linux geek what all the different versions are.
 
So I go to that link.

Select " Download OpenCPN 3.2.2 for all other *Ubuntu's, Linux Mint and other Ubuntu clones"

It takes me to this page https://launchpad.net/~opencpn/+archive/opencpn

That offers me 7 different "published packages"

How do I choose which one. There's nothing to tell a non linux geek what all the different versions are.

If you're new to Linux, and not terribly dedicated to running 14.04, why not have a look at Navigatrix. It's Ubuntu with a different skin on. Comes with loads of sailing focused software already installed for you, including Opencpn.

http://navigatrix.net/

Also, it doesn't use the Unity desktop which is a blessing IMHO.

Cheers, PT
 
If you're new to Linux, and not terribly dedicated to running 14.04, why not have a look at Navigatrix. It's Ubuntu with a different skin on. Comes with loads of sailing focused software already installed for you, including Opencpn.

http://navigatrix.net/

Also, it doesn't use the Unity desktop which is a blessing IMHO.

Cheers, PT

I wish I had known that before I started converting this laptop to ubuntu. and I don't want to start all over again.

So is Ubuntu really that picky? would an application compiled for version 12 really not run on version 14? If so they have coppied windoze programming methods??

I guess it's a case of pick one and try it.

It's not for use for navigation. Just when we get back from a trip I can upload the track data from my GPS so we can have a record of where we have been, and also for printing chartlets if we are going somewhere that I can write on, make notes etc without defacing my real set of charts.
 
With the disclaimer that I generally only use Ubuntu for development so always compile from source, 14.04 ("trusty" in their ridiculous naming scheme) is mentioned here:
https://launchpad.net/~nohal/+archive/opencpn
Pavel is one of the OpenCPN developers.
If you select "Trusty (14.04)" in the drop down list it will give you the lines to paste into your /etc/apt/sources.list file. That file tells the various package maintenance tools the various locations to look for available software.

Do take anyone else's counter-advice over mine though: as previously stated I'm not an expert on this.
 
I wish I had known that before I started converting this laptop to ubuntu. and I don't want to start all over again.

If you don't like the Unity desktop you can easily select another. Use the Ubuntu Software Centre to add kubuntu-desktop (kde), xubuntu-desktop (xfce) or lubuntu-desktop (lxde) and a whole new user interface becomes available. I use Xubuntu for anything with some grunt and Lubuntu on Netbooks and the like. Lubuntu is probably the most like the classic Windows experience as installed - Xubuntu can be even more so, but needs customised for that to happen.

So is Ubuntu really that picky? would an application compiled for version 12 really not run on version 14? If so they have coppied windoze programming methods??.

The Linux Way is for programmes to do as little as possible themselves and to use libraries for as much as they can. So for example, opencpn needs eight libraries to be installed

me@desktop:~$ apt-cache depends opencpn
opencpn
Depends: libc6
Depends: libwxgtk2.8-0
Depends: libglu1-mesa
Depends: libgl1-mesa-glx
Depends: zlib1g
Depends: bzip2
Depends: libtinyxml2.6.2
Depends: libportaudio2
Recommends: xcalib

The installation of these dependencies is handled by the package manager which installs the application (unless you're a masochist). Different releases of Ubuntu may have different versions of the libraries, though, which is why some packages come in different versions.
 
Last edited:
...The Linux Way is for programmes to do as little as possible themselves and to use libraries for as much as they can. So for example, opencpn needs eight libraries to be installed...

I think all sensible OSs use shared libraries (even Windows), its not just Linux.

...The installation of these dependencies is handled by the package manager which installs the application (unless you're a masochist). Different releases of Ubuntu may have different versions of the libraries, though, which is why some packages come in different versions.

Some libraries have thier names changed to reflect the Linux release they are part of. 12.04 managed to get libraries named for 12.11 into the release which broke the package manager for OpenCPN because it didnt see the exact name it was looking although the library function hadnt changed (ref http://www.cruisersforum.com/forums/f134/ocpn-3-2-0-install-on-ubuntu-12-04-dependencies-100079.html). Not difficult to fix but daunting for someone moving away from the ubiquitous Windows.
 
Last edited:
I think all sensible OSs use shared libraries (even Windows), its not just Linux.

That's true, but Linux tends to take it further than Windows, I think.

Some libraries have thier names changed to reflect the Linux release they are part of. 12.04 managed to get libraries named for 12.11 into the release which broke the package manager for OpenCPN because it didnt see the exact name it was looking although the library function hadnt changed (ref http://www.cruisersforum.com/forums/...es-100079.html). Not difficult to fix but daunting for someone moving away from the ubiquitous Windows.

I think the OpenCPN team may make things unnecessarily difficult by insisting on very specific versions of libraries. Their Linux installation stuff is still definitely at the hobbyist rather than end-user level, as this thread shows.
 
Long story short.

Our laptop died, needed a new HDD. I didn't want to go through what would have been a lot of trouble to put Windoze Vista back on it, so it now has Ubuntu 14.02LTS

Is Open CPN available for ubunto, or will it run under Wine? anyone tried it? any tips etc.

We use OpenCPN on Ubuntu as our primary navigation tool. OPEN a terminal window and use the sudo app-get OpenCPN command.
 
Last edited:
It's not for use for navigation. Just when we get back from a trip I can upload the track data from my GPS so we can have a record of where we have been, and also for printing chartlets if we are going somewhere that I can write on, make notes etc without defacing my real set of charts.


You can do much of that directly on Google Earth.
 
Okay I have got it working.

I downloaded the version for ubuntu 12.04 and it worked fine (apart from the installer telling me it was untrusted software and might harm my computer, which I ignored)

However I am not happy with how it displays some of the charts.

Go to somewhere like Nairn harbour, where there is extra detail around the harbour area. As soon as you pan to the area with extra detail, the surrounding area defaults back to "no chart" with no detail whatsoever. It's hard to explain so I'll try and get some screen shots to demonstrate the problem

This doesn't happen on my other PC (same charts in use) so it's not a chart issue. This PC has Open CPN 2.3.1

New install of ubuntu has a much more recent version of Open CPN version 3.2.2

Is it a bug in the newer version? Should I sek out and try the older version for ubuntu?

Okay this is what I am trying to describe. Here is the coast near Nairn:

screenshot_2.png


But scroll along so the harbour area is near the centre and you get the extra detail of the harbour, but everything else dissapears.

screenshot_1.png
 
Last edited:
Top