Now that the Raspberry Pi 3 Model B and the Pi 3 Model B+ are the latest and greatest in the line of Raspberry Pi Single Board Computers, what's new? This hookup guide goes through the same process of getting going that worked with the Pi 2, but from a Pi 3 point of view.
Raspberry Pi 2/3/4
Installing Raspbian
OpenCPN works on Raspberry Pi 2, 3 and 4 models. You can install OpenCPN adding an Ubuntu PPA (Personal Packages Archives) to your system's Software Sources. We will see how to do this but first of all you need to have a running system.
Raspbian is the official Operating System for Raspberry Pi. You have two options to install Raspbian on an SD card: with NOOBS (New Out Of Box Software) or installing an SD image directly. We recommend NOOBS.
Follow this easy guide for both options: https://www.raspberrypi.org/learning/software-guide/quickstart/
If you feel lazy you can try OpenPlotter, a complete marine Operating System for Raspberry Pi with OpenCPN + plugins installed and amazing extra tools ready to use. OpenPlotter can be installed with NOOBS following this guide: https://sailoog.gitbooks.io/openplotter-documentation/content/en/getting_started.html
Apt-Key Deprecated - May 2018
See http://www.cruisersforum.com/forums/f134/opencpn-version-4-8-4-released-200246-2.html#post2627925 and the later posts from bdbcat and CaptRon. How do I fix the GPG error “NO_PUBKEY”? Apt-key is deprecated, see gpg: keyserver receive failed: No dirmngr and GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available
Raspberry Pi 2 User Manual
Adding OpenCPN Ubuntu PPA to Raspbian Software Sources
Once you have Raspbian running on Raspberry Pi, go to Menu → Accessories → Terminal, and type:
A text editor will open. Move the cursor to the end and add this line if you are on Raspbian Stretch:
Or, if your Raspbian is the latest Buster:
Save the file pressing Ctrl X, say Yes and press enter. Now type:
(A certificate management service, needed for the next command) Then type
and press enter. Now be sure you have Internet connection and type:
The Software sources will be updated and finally you will have to type:
and you are done!
Installing plugins
Most plugin packages are named as opencpn-plugin-<pluginname> , to install a plugin, use a command like shown on the example below:
Wildcards can be used in the installed package names, so to install all the available plugins, you may use:
Some plugins have different names. Go to the plugins page to know the correct name:
If a new version of OpenCPN or a plugin is released and you want to update (this IS a good idea), just type:
Advanced
SD Cards
It is suggested to use 'High Endurance' microSDHC cards. Google 'Wear Level' on SD cards to discover more information.
OpenGL acceleration
Raspberry Pi Instruction Manual
The latest version of Raspbian based on Debian Buster has OpenGL enabled by default if you are running it on a Raspberry 4.