[WARNING! THIS IS POTENTIALLY UNSAFE RIGHT NOW!]
If you have a PI 2 and want to test a new and safer way, please see this post:
Old post for reference and documentation:
I tried a lot of stuff to get RetroPie installed on OSMC on a Pi 2 as it is using Debian Jessie from main armhf repo, not Raspbian.
I made a script, that is able to install everything by using Raspbian packages where needed.
Also it will update some stuff to make it easy for you to add a shortcut to the KODI menu that will stop KODI and start Emulationstation. After you quit out of Emulationstation, KODI is started again.
It may be rough around the edges, but it worked for me on a fresh install of OSMC RC.
Here is how you use it:
Ssh into the pi or get on a commandline as user osmc. I only tested this on PI 2. It might work on the 1 but I am not sure.
You need to stop Kodi before running emulationstation as the input will be grabbed by kodi otherwise.
Note: Everything you do with this is on your own risk!
On a shell go to the osmc home directory:
Download the script:
Run the script:
chmod +x INSTALL_RETROPIE_ON_OSMC_RC.sh sudo ./INSTALL_RETROPIE_ON_OSMC_RC.sh
Wait a long time and pray.
If you see the dialog of the RetroPie-Setup script, choose Binary installation!!!
If you see it again, ignore uninstallable packages and select cancel afterwards. The rest of the script will continue.
If you want a launcher in KODI, you have to setup a custom menu shortcut with “System.Exec(/home/osmc/retropie.sh)”. The custom scripts should already be in place.
You can create the shortcut from the script now.
If you exit emulationstation when you started from the script, you should be back in KODI again.
1.4 - From now on, the script (from version 1.4 upwards) will update itself with every run.
1.13 - It has a nice dialog frontend now.
1.15 - (hopefully) fixed dependency problems with apt-get
2.06 - New way to handle dependencies, no unneeded dev packages will be installed
Should also be safe for Pi 1 users as it restores previous sources.list
2.09 - Fixed automatic menu shortcut creation and some stuff that could cause the script to hang also added the raspbian repository key to get access.
Please test and report any problems you find.