Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 22-09-2024, 10:29   #1
Registered User

Join Date: Sep 2024
Posts: 1
Raspberry Pi 4 Installation of OpenCPN

I'm struggling with the Installation of OpenCPN on a headless Raspberry Pi.

Questions

Is it possible to install OpenCPN headless and access through other devices?
If so, can you help me identify me error in the installation process?



System

Rasperry Pi 4
4 GB RAM
OS Debian bookworm



Installation attempts

APT Install attempt
$ sudo apt install opencpn
$ E: Package 'opencpn' has no installation candidate

It doesn't seem to be in the APT repo, contrary to what I got from the homepage

flatpack install attempt
flatpack installed
opencpn installed
$ flatpak run org.opencpn.OpenCPN
$ Error: Unable to initialize GTK+, is DISPLAY set properly?

This suggests to me that the system is not happy to not have a monitor.



Thanks a lot for you help!
henko152 is offline   Reply With Quote
Old 22-09-2024, 13:50   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Raspberry Pi 4 Installation of OpenCPN

You may want to test OpenPlotter where everything is set up?
https://openplotter.readthedocs.io/4...wnloading.html
Hakan is online now   Reply With Quote
Old 23-09-2024, 04:20   #3
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,162
Re: Raspberry Pi 4 Installation of OpenCPN

The RaspiOS 64= Debian Bookworm can be installed direct from internet.

Connect the RPI to the internet. Hold the Shjift key impressed during setup.

Then you get the installer. Make your choises. And the Raspi OS is installing direct from the server after adding a medium: usb stick (fast version) SSD or SD (also a fast one)

There are two options for remote screens: the buildin VNC server Mist be switched on in the Rpi setup or the new RPI connect. Works via internet worldwide.

If you have that working. Install OpenCPN. I always prefer the Flatpak versions.

In the past I used a HDMI dummy stick. Then the system thinks that an HDMI screen is connected.

Bram
verkerkbr is offline   Reply With Quote
Old 24-09-2024, 02:36   #4
Registered User

Join Date: Jun 2010
Location: Virginia
Boat: Wauquiez Centurion 41
Posts: 145
Send a message via Skype™ to Kijit
Re: Raspberry Pi 4 Installation of OpenCPN

I just did this. I just downloaded OpenPlotter headless version, imaged a micro SD card, and everything worked.
Kijit is offline   Reply With Quote
Old 26-09-2024, 07:36   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,123
Images: 2
Re: Raspberry Pi 4 Installation of OpenCPN

With some time and experience with using Opencpn 5.10 now, I would like to know if this page in the Basic Manual for RPI Installation is clear and useful, and what changes if any, are advisable (and Why). We are trying to keep this short but useful. Thanks.


https://opencpn.org/wiki/dokuwiki/do...stallation:rpi
rgleason is offline   Reply With Quote
Old 26-09-2024, 07:45   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,419
Re: Raspberry Pi 4 Installation of OpenCPN

What I can see it's relevant.
Maybe update the OpenPlotter link to:
https://openplotter.readthedocs.io/4...wnloading.html
Hakan is online now   Reply With Quote
Old 26-09-2024, 14:06   #7
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,123
Images: 2
Re: Raspberry Pi 4 Installation of OpenCPN

Quote:
Originally Posted by Hakan View Post
What I can see it's relevant.
Maybe update the OpenPlotter link to:
https://openplotter.readthedocs.io/4...wnloading.html

Thanks, done.
rgleason is offline   Reply With Quote
Old 26-09-2024, 15:32   #8
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,162
Re: Raspberry Pi 4 Installation of OpenCPN

Hi Rick,

The RaspiOS64 ( =- Debian Bookworm) can be installed direct from the internet. Simply by starting the RPI4-5 with Shift key pressed. And no media in the RPI. Then you get the installer. Very easy to do.


Another excellent RPI OS is the Fedora 40 Linux version. Supported by Redhat/IBM.

All these versions work well with the Flatpak enviroment allready installed.

OpenCPN for Flatpak can be found on the Flathub site. One version for almost all Linux systems.

Details can be added with a discription how to do.


Bram
verkerkbr is offline   Reply With Quote
Old 26-09-2024, 16:24   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,123
Images: 2
Re: Raspberry Pi 4 Installation of OpenCPN

Quote:
Originally Posted by verkerkbr View Post
Hi Rick,
  1. The RaspiOS64 ( =- Debian Bookworm) can be installed direct from the internet. Simply by starting the RPI4-5 with Shift key pressed. And no media in the RPI. Then you get the installer. Very easy to do.
  2. Another excellent RPI OS is the Fedora 40 Linux version. Supported by Redhat/IBM.
  3. All these versions work well with the Flatpak enviroment already installed.
  4. OpenCPN for Flatpak can be found on the Flathub site. One version for almost all Linux systems.
  5. Details can be added with a description how to do.
Bram

Thanks Bram.


How is this for Flatpak Install instructions ?
rgleason is offline   Reply With Quote
Old 27-09-2024, 13:18   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,162
Re: Raspberry Pi 4 Installation of OpenCPN

Hi Rick,

the installation works in my view easier on another way:

check if the Flatpak enviroment is available. sudo apt install flatpak.
Most new OS's have already flatpak available.

Then go to the site flathub.

Search for OpenCPN. Then the install button. (Installs nothing)

The go in your system in the terminal to the Downloads folder. (cd Downloads).
There you find the OpenCPN installation file.

sudo flatpak install (file in the Download folder). Reboot the system and then you find the OpenCPN Icon.

Bram

Forgot to mention flatpak updates: sudo flatpak update
verkerkbr is offline   Reply With Quote
Old 16-10-2024, 13:38   #11
Registered User
 
kotovasii's Avatar

Join Date: Oct 2024
Location: Cambridge, UK
Posts: 9
Re: Raspberry Pi 4 Installation of OpenCPN

Quote:
Originally Posted by henko152 View Post
I'm struggling with the Installation of OpenCPN on a headless Raspberry Pi.

Questions

Is it possible to install OpenCPN headless and access through other devices?
If so, can you help me identify me error in the installation process?



System

Rasperry Pi 4
4 GB RAM
OS Debian bookworm



Installation attempts

APT Install attempt
$ sudo apt install opencpn
$ E: Package 'opencpn' has no installation candidate

It doesn't seem to be in the APT repo, contrary to what I got from the homepage

flatpack install attempt
flatpack installed
opencpn installed
$ flatpak run org.opencpn.OpenCPN
$ Error: Unable to initialize GTK+, is DISPLAY set properly?

This suggests to me that the system is not happy to not have a monitor.



Thanks a lot for you help!
Hi henko152,
did you ever managed to get this resolved? I have just tried to install opencpn on Raspberry pi 4 latest version of software. I have it running over ethernet (accessing via ssh & VNC)

pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm


I get the same issue:

pi@raspberrypi:~ $ sudo apt-get install opencpn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package opencpn is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'opencpn' has no installation candidate

I understand people suggest installing the OpenPlotter, but this is not what I am trying to do.

Any thoughts or suggestions are really appreciated.

I am obviously following the instructions here:
https://opencpn.org/wiki/dokuwiki/do...stallation:rpi
kotovasii is offline   Reply With Quote
Old 18-10-2024, 03:26   #12
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,162
Re: Raspberry Pi 4 Installation of OpenCPN

What about upgrading the Bookworm OS::


sudo apt update
and then sudo apt upgrade.


Bram
verkerkbr is offline   Reply With Quote
Old 18-10-2024, 06:11   #13
Registered User
 
kotovasii's Avatar

Join Date: Oct 2024
Location: Cambridge, UK
Posts: 9
Re: Raspberry Pi 4 Installation of OpenCPN

Quote:
Originally Posted by verkerkbr View Post
What about upgrading the Bookworm OS::


sudo apt update
and then sudo apt upgrade.


Bram
Hi Bram,
Thank for your reply!
I mentioned above that I already have bookworm this is what lsb_release -a shows, but of course here is the print out from:

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


Also, one cannot update distro by running apt-get upgrade – we need to run $ apt-get dist-upgrade but I am on the latest release.
It is not the issue with the distro, but the repositories -- they do not contain opencpn for some reason. I will investigate further when I have time, but I found this very strange that given that Raspi is so popular for boaters opencpn is not prebuilt for it. I am holding off compiling it myself. Clearly the original poster had the same issue -- I just hope they come back to share with us the solution.

I got it running no problem on Ubuntu, but my intention was to run it via a compact computer based on Raspberry Pi (with 5 out this is quite a powerful machine now).
kotovasii is offline   Reply With Quote
Old 18-10-2024, 07:36   #14
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 565
Re: Raspberry Pi 4 Installation of OpenCPN

Quote:
Originally Posted by kotovasii View Post
It is not the issue with the distro, but the repositories -- they do not contain opencpn for some reason.
You could try burning openplotter onto a spare card & check it works ok, then see what repositories they use. On a Pi4 openplotter v4 I'm on 5.10.2
barcoMeCasa is offline   Reply With Quote
Old 18-10-2024, 07:46   #15
Registered User
 
kotovasii's Avatar

Join Date: Oct 2024
Location: Cambridge, UK
Posts: 9
Re: Raspberry Pi 4 Installation of OpenCPN

Quote:
Originally Posted by barcoMeCasa View Post
You could try burning openplotter onto a spare card & check it works ok, then see what repositories they use. On a Pi4 openplotter v4 I'm on 5.10.2
Very good idea I'll check that out, thanks. I am also curious if we can update the official support wiki for OpenCPN as it is clearly not correct.
kotovasii is offline   Reply With Quote
Reply

Tags
enc, installation, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is OpenCPN Installation: Raspberry Pi link down? jimseng OpenCPN 6 26-05-2024 01:28
Raspberry (Buster) OpenCPN installation issue brice3010 OpenCPN 15 18-06-2023 00:26
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 03:30
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 13:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 20:09

Advertise Here


All times are GMT -7. The time now is 00:23.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2025, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.