RaceCapture on Raspberry Pi: Difference between revisions

Line 70: Line 70:
<pre>
<pre>
/opt/racecapture/run_racecapture.sh
/opt/racecapture/run_racecapture.sh
</pre>
===Launching with Watchdog===
You can launch the RaceCapture app with an automatic watchdog that re-launches the app in case a crash occurs.
<pre>
/opt/racecapture/run_racecapture.sh -w 1
</pre>
* '''Note:''' to break out of the watchdog loop, press '''ctrl-z''' to suspend the app, then issue:
<pre>
killall -9 run_racecapture.sh
</pre>
</pre>

Revision as of 18:37, 12 July 2017

Introduction

Prerequisites

Change the default password

For maximum security, change the password for the default user 'pi'

> passwd

Configure Raspberry Pi base settings

Enable WiFi

Enable and configure WiFi per the official documentation

(Optional) Enable SSH

You can optionally enable SSH for remote management from the comfort of your main computer's keyboard and screen.

Enable and configure ssh per the official documentation

Install multi-touch tools

Install the packages that enable multi-touch interfaces.

> sudo apt-get install mtdev-tools

Configure memory split

You'll need to bump up the memory made available to the GPU. Increase the default value of 64 to 256.

  • Via raspi-config tool

You can adjust the memory split by running the raspi-config tool. See the official documentation

  • Editing /boot/config.txt

You can adjust the value directly by editing the /boot/config.txt file.

> sudo nano /boot/config.txt

Find the line containing gpu_mem=64 and change the number to 256

gpu_mem=256


Installing the RaceCapture app package

Download the latest RaceCapture app package and place it in the /opt/ directory of the Raspberry Pi.

  • Directly downloading to the Raspberry Pi

You can download it directly by getting the URL of the package by right-clicking the download link and copying the URL to your clipboard. Then, use it in the command below:

cd /opt
sudo wget <package URL>

Extract the package

Now extract the downloaded package :

sudo tar -xjvf <downloaded file>

Launch the app

Launch the RaceCapture app by running the following command:

/opt/racecapture/run_racecapture.sh

Launching with Watchdog

You can launch the RaceCapture app with an automatic watchdog that re-launches the app in case a crash occurs.

/opt/racecapture/run_racecapture.sh -w 1
  • Note: to break out of the watchdog loop, press ctrl-z to suspend the app, then issue:
killall -9 run_racecapture.sh