Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

před 5 roky
1234567891011121314151617181920212223242526272829303132333435363738
  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 update && apt -y install git build-essential python3-dev python3 python3-pip python3-pygame supervisor wiringpi omxplayer
  12. echo "Installing hello_video..."
  13. echo "========================="
  14. git clone https://github.com/adafruit/pi_hello_video.git
  15. cd pi_hello_video
  16. ./rebuild.sh
  17. cd hello_video
  18. make install
  19. cd ../..
  20. rm -rf pi_hello_video
  21. echo "Installing video_looper program..."
  22. echo "=================================="
  23. mkdir -p /mnt/usbdrive0 # This is very important if you put your system in readonly after
  24. pip3 install setuptools
  25. python3 setup.py install --force
  26. cp video_looper.ini /boot/video_looper.ini
  27. echo "Configuring video_looper to run on start..."
  28. echo "==========================================="
  29. cp video_looper.conf /etc/supervisor/conf.d/
  30. service supervisor restart
  31. echo "Finished!"