TringaliLuca

mycroft-enable-raspi.sh

Sep 29th, 2019
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. cat << EOF | tee ~/.asoundrc
  4.  
  5. pcm.!default {
  6.         type hw
  7.         card 1
  8. }
  9.  
  10. ctl.!default {
  11.         type hw
  12.         card 1
  13. }
  14. EOF
  15.  
  16. sudo sed -i "s/defaults\.ctl\.card 0/defaults\.ctl\.card 1/g" /usr/share/alsa/alsa.conf
  17. sudo sed -i "s/defaults\.pcm\.card 0/defaults\.pcm\.card 1/g" /usr/share/alsa/alsa.conf
  18.  
  19. wget http://ftp.de.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_armhf.deb
  20. sudo dpkg -i libicu57_57.1-6+deb9u3_armhf.deb
  21. rm libicu57_57.1-6+deb9u3_armhf.deb
  22. /home/pi/mycroft-core/mimic/bin/mimic -t "Hello World"
  23.  
  24. echo -e "{\n  \"max_allowed_core_version\": 19.2,\n  \"lang\": \"en-us\"\n}" > ~/.mycroft/mycroft.conf
  25. sed -i '1i/home/pi/mycroft-core/bin/mycroft-start all' /home/pi/.bashrc
  26.  
  27. #https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/pairing-your-device
  28. #https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/basic-commands
RAW Paste Data