Advertisement
Guest User

Hakology - Retropie steam controller installation script

a guest
Oct 7th, 2016
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.52 KB | None | 0 0
  1. #!/bin/bash
  2. echo This script is designed intended for retro pie running raspbian and python 2.7
  3. echo This script will now install the drivers and files required to use the steam controller with retropie
  4. echo Ensure your pi has an internet connection prior to running.
  5. echo Moving to home directory
  6. cd /home/pi
  7. echo Installing dependancies Python package manager and git
  8. sudo apt-get install python-pip git
  9. echo Installing - libusb1
  10. sudo pip install libusb1
  11. echo Installing - enum34
  12. sudo pip install enum34
  13. echo Cloning steam controller files.
  14. git clone https://github.com/ynsta/steamcontroller.git
  15. echo Moving to steam controller files directory
  16. cd steamcontroller
  17. echo Intsalling steam controller files
  18. sudo python setup.py install
  19. echo Setting up udev rules
  20. echo SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"28de\", GROUP=\"games\", MODE=\"0660\" >> /etc/udev/rules.d/99-steam-controller.rules
  21. echo KERNEL==\"uinput\", MODE=\"0660\", GROUP=\"games\", OPTIONS+=\"static_node=uinput\" >> /etc/udev/rules.d/99-steam-controller.rules
  22. echo Reloading udev
  23. sudo udevadm control --reload
  24.  
  25. tput setaf 1;echo All operations complete
  26. echo PLEASE READ THE FOLLOWING
  27. echo
  28. echo Update crontab ...
  29. echo crontab -e
  30. echo Add the following to crontab ...
  31. echo @reboot /usr/local/bin/sc-xbox.py start
  32. echo Ensure the steam usb dongle is inserted when you reboot otherwise emulationstation might not load.
  33. echo
  34. echo If you need to run the script more than once besure to clean the udev rules found in:
  35. echo /etc/udev/rules.d/99-steam-controller.rules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement