Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo This script is designed intended for retro pie running raspbian and python 2.7
- echo This script will now install the drivers and files required to use the steam controller with retropie
- echo Ensure your pi has an internet connection prior to running.
- echo Moving to home directory
- cd /home/pi
- echo Installing dependancies Python package manager and git
- sudo apt-get install python-pip git
- echo Installing - libusb1
- sudo pip install libusb1
- echo Installing - enum34
- sudo pip install enum34
- echo Cloning steam controller files.
- git clone https://github.com/ynsta/steamcontroller.git
- echo Moving to steam controller files directory
- cd steamcontroller
- echo Intsalling steam controller files
- sudo python setup.py install
- echo Setting up udev rules
- echo SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"28de\", GROUP=\"games\", MODE=\"0660\" >> /etc/udev/rules.d/99-steam-controller.rules
- echo KERNEL==\"uinput\", MODE=\"0660\", GROUP=\"games\", OPTIONS+=\"static_node=uinput\" >> /etc/udev/rules.d/99-steam-controller.rules
- echo Reloading udev
- sudo udevadm control --reload
- tput setaf 1;echo All operations complete
- echo PLEASE READ THE FOLLOWING
- echo
- echo Update crontab ...
- echo crontab -e
- echo Add the following to crontab ...
- echo @reboot /usr/local/bin/sc-xbox.py start
- echo Ensure the steam usb dongle is inserted when you reboot otherwise emulationstation might not load.
- echo
- echo If you need to run the script more than once besure to clean the udev rules found in:
- echo /etc/udev/rules.d/99-steam-controller.rules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement