# Raspberry Pi Setup

Install and setup [Raspbian Lite](https://www.raspberrypi.org/downloads/raspbian/).

Install NodeJS ([see also](https://learn.adafruit.com/node-embedded-development/installing-node-dot-js)):

    curl -sLS https://apt.adafruit.com/add | sudo bash
    sudo apt-get install node

Install git:

    sudo apt-get install git

Clone this repo.

    git clone https://github.com/lectroidmarc/rocket-tracker.git

Build the node modules:

    cd rocket-tracker/ground-station/node
    npm install

(Optional) Install the systemd system file

    cd ..
    sudo cp ground-station.service.txt /etc/systemd/system

-30-

# Raspberry Pi Setup

Install and setup [Raspbian Lite](https://www.raspberrypi.org/downloads/raspbian/).

Install NodeJS _assumes Node 6.9.2 on a Pi 1 (armv6)_:

    wget https://nodejs.org/dist/latest-v6.x/node-v6.9.2-linux-armv6l.tar.xz
    sudo tar -xf node-v6.9.2-linux-armv6l.tar.xz -C /usr/local --strip-components=1

Install git:

    sudo apt-get install git

Clone this repo.

    git clone https://github.com/lectroidmarc/rocket-tracker.git

Build the node modules (this will take a very long time on a slow Pi):

    cd rocket-tracker/ground-station/node
    npm install

(Optional) Install the systemd system file

    cd ..
    sudo cp ground-station.service.txt /etc/systemd/system/ground-station.service

-30-

Update the Pi docs for the latest Node.
Update the Pi docs for the latest Node.
