您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

44 行
1.1 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 omxplayer samba samba-common-bin
  13. echo "Installing hello_video..."
  14. echo "========================="
  15. cd pi_hello_video
  16. make -C libs/ilclient clean
  17. make -C hello_video clean
  18. make -C libs/ilclient
  19. make -C hello_video
  20. cd hello_video
  21. make install
  22. cd ../..
  23. rm -rf pi_hello_video
  24. echo "Installing video_looper program..."
  25. echo "=================================="
  26. mkdir -p /mnt/usbdrive0 # This is very important if you put your system in readonly after
  27. python setup.py install --force
  28. cp video_looper.ini /boot/video_looper.ini
  29. echo "Configuring video_looper to run on start..."
  30. echo "==========================================="
  31. cp video_looper.conf /etc/supervisor/conf.d/
  32. service supervisor restart
  33. echo "Finished!"