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.

47 líneas
1.2 KiB

  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. mkdir -p /mnt/usbdrive0 # This is very important if you put your system in readonly after
  32. python setup.py install --force
  33. cp video_looper.ini /boot/video_looper.ini
  34. echo "Configuring video_looper to run on start..."
  35. echo "==========================================="
  36. cp video_looper.conf /etc/supervisor/conf.d/
  37. service supervisor restart
  38. echo "Finished!"