No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

install.sh 1.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. # Error out if anything fails.
  3. set -e
  4. # Make sure script is run as root.
  5. if [ "$(id -u)" != "0" ]; then
  6. echo "Must be run as root with sudo! Try: sudo ./install.sh"
  7. exit 1
  8. fi
  9. echo "Installing dependencies..."
  10. echo "=========================="
  11. #apt-get update
  12. #apt-get -y install build-essential python-dev python-pip python-pygame supervisor git
  13. echo "Installing omxplayer..."
  14. echo "======================="
  15. if [ -f "omxplayer-dist.tgz" ]; then
  16. rm omxplayer-dist.tgz
  17. fi
  18. wget https://github.com/adafruit/omxplayer/releases/download/2%2F10%2F2015/omxplayer-dist.tgz
  19. tar xvfz omxplayer-dist.tgz -C /
  20. echo "Installing hello_video..."
  21. echo "========================="
  22. git clone https://github.com/adafruit/pi_hello_video.git
  23. cd pi_hello_video
  24. ./rebuild.sh
  25. cd hello_video
  26. make install
  27. cd ../..
  28. rm -rf pi_hello_video
  29. echo "Installing video_looper program..."
  30. echo "=================================="
  31. python setup.py install --force
  32. cp video_looper.ini /boot/video_looper.ini
  33. echo "Configuring video_looper to run on start..."
  34. echo "==========================================="
  35. cp video_looper.conf /etc/supervisor/conf.d/
  36. service supervisor restart
  37. echo "Finished!"