Raspberry Pi Recipes

SETI@home

image297

What is SETI@home?

SETI@home is a scientific experiment, based at UC Berkeley, that uses Internet-connected computers in the Search for Extraterrestrial Intelligence (SETI). Click here to find out more. 


This recipe will show you how to configure a Raspberry Pi which will download and analyse radio telescope data for SETI@Home (or any other BOINC project).

Disclaimer

This recipe was written using a Raspberry Pi 3B+ running Raspbian Stretch with Desktop and recommended software 13th November 2018 build.


I do not know whether any 3rd party software is safe. By following the guide below you accept ALL responsibility. I will not be held accountable for any issues that may arise. 

Configure the Pi

Download and Install Raspbian

  1. Download Raspbian Stretch with desktop and recommended software.
  2. "Burn" the image to the SD card using Etcher


Boot the Pi and then run through the "out of the box experience"

  1. Set the locale and keyboard language as required.
  2. Set a password for user 'pi'. 


Enable remote GUI access

Go to "Start" > Preferences > Raspberry Pi Configuration.

  1. System: Disable Splash Screen.
  2. Interfaces: Enable VNC.


Update the Pi firmware

Open the Terminal and type (wait for each command to finish before proceeding).

  • sudo rpi-update
  • sudo apt-get update
  • sudo apt-get upgrade

Install and Configure SETI@home

Install BOINC

Open the Terminal and type (wait for each command to finish before proceeding)

  • sudo apt-get install boinc


Add the BOINC Manager icon to the taskbar

Right click anywhere on the taskbar and click Add / Remove Panel Items.

  1. Select Application Launch Bar and then click Preferences.
    • Add BOINC Manager (System Tools).


Configure SETI@home

RUN BOINC Manager and run through the initial wizard.

  1. Scroll down and select SETI@home (or your chosen project) then click Next.
  2. Select Yes, existing user, enter your username and password then click Next.
  3. Click Finish.

 

Reboot and see it running!

Open the Terminal and type (wait for each command to finish before proceeding).

  1. sudo reboot
  2. boinccmd --get_tasks

Alternatively, instead of running the boinccmd --get_tasks command, open the BOINC Manager.


To manage remotely, download VNC Viewer and connect to the IP address of the Pi.

AlexaPi

image298

What is an AlexaPi?

An AlexaPi is a prototype Amazon Echo device which uses Amazon's Alexa Voice Service. 


This recipe requires that you have accounts with Amazon and GitHub. Also, as it is a prototype Amazon Echo, there are limitations. Please don't expect an all singing, all dancing device at the end of it.

Disclaimer

This recipe was written using a Raspberry Pi 3B+ running Raspbian Stretch with Desktop and recommended software 13th November 2018 build.


I do not know whether any 3rd party software is safe. By following the guide below you accept ALL responsibility. I will not be held accountable for any issues that may arise. 

Configure the Pi

Download and Install Raspbian

  1. Download Raspbian Stretch with desktop and recommended software.
  2. "Burn" the image to the SD card using Etcher


Boot the Pi and then run through the "out of the box experience"

  1. Set the locale and keyboard language as required.
  2. Set a password for user 'pi'. 


Enable remote GUI access

Go to "Start" > Preferences > Raspberry Pi Configuration.

  1. System: Disable Splash Screen.
  2. Interfaces: Enable VNC.


Update the Pi firmware

Open the Terminal and type (wait for each command to finish before proceeding).

  • sudo rpi-update
  • sudo apt-get update
  • sudo apt-get upgrade

Create your Amazon Developer account

Go to https://developer.amazon.com/login.html and login using your normal Amazon account.

  1. Read the terms and conditions. If you do not agree to the terms and conditions, do not click Accept! 


Configure the Alexa service and an LWA (Login with Amazon) Security Profile

When you have logged in, her your cursor over the Alexa tab and then click Alexa Voice Service.

  1. Click Get Started, Products, Create Product.
  2. Enter Raspberry Pi Alexa as the Product name.
  3. Enter Raspberry_Pi_Alexa as the Product ID.
  4. Select Application with Alexa built-in under Please select your product type and then Yes under Will your device use a companion app?
  5. Select Smart Home as the Product Category
  6. Enter Raspberry Pi Alexa into Brief product description.
  7. Tick Touch-initiated and Hands-Free under How will your users interact with your product?
  8. Select No under Do you intend to distribute this product commercially? No
  9. Click Next.
  10. Click CREATE NEW PROFILE
  11. Enter Raspberry Pi Echo as the Security Profile Name.
  12. Enter Raspberry Pi Echo as the Security Profile Description.
  13. Click Next.
  14. Make a note of the Client ID and Client secret. These will be required later. 
  15. Add (don't forget to replace ALEXA.DEVICE.IP.ADDRESS with the device IP!):
    1. http://localhost:5050
    2. https://localhost:5050
    3. http://ALEXA.DEVICE.IP.ADDRESS:5050 
    4. https://ALEXA.DEVICE.IP.ADDRESS:5050 into Allowed Origins 
  16. Then add (don't forget to replace ALEXA.DEVICE.IP.ADDRESS with the device IP!):
    1. http://localhost:5050/code
    2. https://localhost:5050/code 
    3. http://ALEXA.DEVICE.IP.ADDRESS:5050/code 
    4. https://ALEXA.DEVICE.IP.ADDRESS:5050/code into Allowed Return URLS 
  17. Read the terms and      conditions. If you do not agree to the terms and conditions, do not tick the box and click      Finish!
  18. Click Capabilities 
    1. Tick Named Timers and Reminders 
    2. Tick Display Cards > Display Cards with Text

Install AVS on the Pi

Open the Terminal and type (wait for each command to finish before proceeding).

IF YOU HAVE ENABLED TWO-FACTOR AUTHENTICATION ON YOUR GITHUB ACCOUNT, THE FOLLOWING WILL NOT WORK UNTIL YOU HAVE DISABLED IT. YOU CAN RE-ENABLE IT ONCE YOU HAVE COMPLETED THIS STEP.

  1. cd /opt
  2. sudo chown pi /opt
  3. sudo git clone https://github.com/alexa-pi/AlexaPi.git (case sensitive)
  4. sudo ./AlexaPi/src/scripts/setup.sh 
    1. Press enter
    2. Press enter
    3. Enter 1 then press enter (this will run AlexaPi on boot)
    4. Enter y then press enter (this will also install AirPlay functionality)
    5. Enter your Raspberry_Pi_Alexa as Device Type ID
    6. Enter your Security Profile description
    7. Enter your Security Profile ID
    8. Enter your Client ID
    9. Enter your Client Secret
    10. Go to https://ALEXA.DEVICE.IP.ADDRESS:5050 into a web browser on your PC or mac. 
    11. Login to your Amazon account.
    12. Click Allow
  5. sudo reboot


Test!


To manage remotely, download VNC Viewer and connect to the IP address of the Pi.

OnionPi

image299

What is an OnionPi?

An OnionPi is simply a Raspberry Pi that acts as a Wireless Access Point that passes all internet traffic through the Tor network to help you stay anonymous. 


This recipe will show you how to configure a Raspberry Pi to be both a Wireless Access Point and a Tor proxy.

What is the Tor network?

Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location. For more information, please go to https://www.torproject.org/.

Disclaimer

This guide was written using a Raspberry Pi 3B+ running Raspbian Stretch with Desktop and recommended software 13th November 2018 build.


After configuring your OnionPi, there are a lot of ways you can be identified even if your IP address is changed. Please go to https://www.torproject.org/ for more information on how to stay anonymous.


I do not know whether any 3rd party software is safe. By following the guide below you accept ALL responsibility. I will not be held accountable for any issues that may arise. 

Where's the recipe?

I've identified an issue with the recipe so it's not currently available. As soon as I've identified and resolved the issue, the recipe will re-published.