opencpn:opencpn_user_manual:getting_started:opencpn_installation:raspberrypi_rpi2
Keywords: opencpn,opencpn_user_manual,getting_started,opencpn_installation,raspberrypi_rpi2

## Raspberry Pi 2/3

### Installing Raspbian

OpenCPN works on Raspberry Pi 2 and 3 (recommended) 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/

### Adding OpenCPN Ubuntu PPA to Raspbian Software Sources

Once you have Raspbian running on Raspberry Pi, go to Menu → Accessories → Terminal, and type:

    sudo nano /etc/apt/sources.list

A text editor will open. Move the cursor to the end and add this line:

    deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ xenial main

Or, if your Raspbian is older than Scratch:

    deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ trusty main

Save the file pressing Ctrl+X, say Yes and press enter. Now type:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C865EB40

and press enter. Now be sure you have Internet connection and type:

    sudo apt-get update

The Software sources will be updated and finally you will have to type:

    sudo apt-get install opencpn

and you are done!

To install OpenCPN and all the available plugins for Linux, type:

    sudo apt-get install opencpn*

If you get an error doing this, you will have to install the plugins one by one typing:

    sudo apt-get install opencpn-plugin-watchdog
    sudo apt-get install opencpn-plugin-statusbar
    …

If a new version of OpenCPN is released, just type:

    sudo apt-get update
    sudo apt-get install opencpn

### Advanced

#### Installing OpenCPN betas

Coming soon

#### OpenGL acceleration

Coming soon

#### Compiling OpenCPN on Raspberry Pi

https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:developer_manual:developer_guide:compiling_linux:rpi2