Last active
April 5, 2018 13:48
-
-
Save JulianNorton/4ac0a340ea847f117911f48a9f36b7f4 to your computer and use it in GitHub Desktop.
Raspberry pi installation script alexa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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