Skip to content

Instantly share code, notes, and snippets.

@JulianNorton
Last active April 5, 2018 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulianNorton/4ac0a340ea847f117911f48a9f36b7f4 to your computer and use it in GitHub Desktop.
Save JulianNorton/4ac0a340ea847f117911f48a9f36b7f4 to your computer and use it in GitHub Desktop.
Raspberry pi installation script alexa
# change change password, keyboard layout, enable ssh, enable wifi
sudo raspi-config
# update
sudo apt-get update
# install git
sudo apt-get install git -y
# vim
sudo apt-get install vim-runtime -y
sudo apt-get install vim
# VNC
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer
# alexa stuff
# https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry-Pi
sudo git clone https://github.com/alexa/alexa-avs-sample-app.git
# install nvm to upgrade node/npm which is required for localhost tunneling
sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
npm --version
node nvm install node
# reboot required to make nvm work
reboot
# use 9.* version of node
nvm install 9
# screen to have multiple terminal sessions
sudo apt-get install screen
# Using screen
cd ~/assistant/alexa-avs-sample-app/samples/
# web_service
cd companionService && npm start
sudo apt-get install byobu
# BASH SCRIPT
#!/bin/bash
byobu new-session -d -s "companion" "cd ~/Desktop/alexa-avs-sample-app/samples && cd companionService && npm start"
byobu new-session -d -s "javaclient" "cd ~/Desktop/alexa-avs-sample-app/samples && cd javaclient && mvn exec:exec"
byobu new-session -d -s "wakeword" "cd ~/Desktop/alexa-avs-sample-app/samples && cd wakeWordAgent/src && ./wakeWordAgent -e kitt_ai"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment