Advertisement
metalx1000

Download and play NES ROM on Raspbmc - Raspberry Pi

Sep 6th, 2014
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/bash
  2. #By Kris Occhipinti
  3. #http://filmsbykris.com
  4. #GPLv3
  5. #Aug 2014
  6. #kills xbmc and installs/starts NES emulator
  7. #grabs ROMS from web
  8.  
  9. sudo initctl stop xbmc
  10. sudo modprobe snd_bcm2835
  11.  
  12. if [ -f "/usr/games/fceu" ];
  13. then
  14. echo "Emulator is installed."
  15. else
  16. echo "Installing Emulator."
  17. sudo apt-get install fceu alsa alsa-oss ca-certificates xorg icewm
  18. fi
  19.  
  20. url="$1"
  21. echo "Getting Game..."
  22. wget "$url" -O /tmp/rom.zip && aoss fceu /tmp/rom.zip
  23. rm /tmp/rom.zip
  24.  
  25. echo "Thanks for playing!!!"
  26. echo "Good Bye!!!"
  27.  
  28.  
  29. sudo initctl start xbmc
  30.  
  31. whoami
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement