Kodi Community Forum

Full Version: Script to install all major emulators
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering if anyone knows how to make a script that automatically installs all the common emulators in XBMC live. Essentially, it would do the following:

sudo apt-get install mednafen (and automatically say "Yes" to the install prompt)
sudo apt-get install mupen64plus
sudo apt-get install zsnes
and whatever it takes to get Gens installed (I believe this is more involved)

additionally, it would be nice if it would create a default roms directory in the xbmc home directory, for example:
/home/xbmc/roms/

from there populate the roms with subfolders for all the systems:
'n64', 'nes', 'snes', 'gba', genesis, etc

It would be great if the script did at least the first of the above, but I'm thinking this would be a really easy way for someone to jump into things and install the Launcher addon afterward. Maybe even in the future an addon that runs the script + Launcher and then sets up the arguments and roms directories automatically.
This is totally untested, I may have made typos, etc. but this should be a good start for you. It will install the emulators and make the folders.

Code:
#!/bin/bash

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu lucid-getdeb games" >> /etc/apt/sources.list.d/getdeb.list'
sudo apt-get update
sudo apt-get -y install mednafen mupen64plus zsnes gens-gs
mkdir ~/roms ~/roms/n64 ~/roms/nes ~/roms/snes ~/roms/gba ~/roms/genesis

The first two lines adds the repo for playdeb, which houses gens/gs. Apparently a forked version of gens.
excellent, I just did a fresh install of Beta3 and I have lost my emulators

-=Jason=-
Will this work in Dharma 10.1? If so, How would I run it??