rpi_install_kalliope.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/env bash
  2. # This script will install automatically everything needed for Kalliope
  3. # usage: ./rpi_install_kalliope.sh [<branch_name>]
  4. # E.g: ./rpi_install_kalliope.sh dev
  5. # If no branch are set, the master branch will be installed
  6. # name of the branch to install
  7. branch="master"
  8. # get the branch name to install from passed arguments if exist
  9. if [ $# -eq 0 ]
  10. then
  11. echo "No arguments supplied. Master branch will be installed"
  12. else
  13. branch=$1
  14. echo "Selected branch name to install: ${branch}"
  15. fi
  16. echo "Installing python pip..."
  17. wget https://bootstrap.pypa.io/get-pip.py
  18. sudo python get-pip.py
  19. echo "Installing python pip... [OK]"
  20. # install packages
  21. echo "Installing system packages..."
  22. sudo apt-get update
  23. sudo apt-get install -y git python-dev libsmpeg0 libttspico-utils libsmpeg0 \
  24. flac dialog libffi-dev libffi-dev libssl-dev portaudio19-dev build-essential \
  25. libssl-dev libffi-dev sox libatlas3-base mplayer libyaml-dev libpython2.7-dev libav-tools
  26. # this is used to help the RPI
  27. sudo apt-get install -y libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev
  28. sudo apt-get install -y libffi-dev python-yaml python-pycparser python-paramiko python-markupsafe apt-transport-https
  29. echo "Installing system packages...[OK]"
  30. echo "Cloning the project"
  31. # clone the project
  32. git clone https://github.com/kalliope-project/kalliope.git
  33. echo "Cloning the project...[OK]"
  34. # Install the project
  35. echo "Installing Kalliope..."
  36. cd kalliope
  37. git checkout ${branch}
  38. sudo python setup.py install
  39. echo "Installing Kalliope...[OK]"