Installing RetroPie in OSMC

https://github.com/RetroPie/RetroPie-Setup/wiki/OSMC

The script:

  • requires pv
  • assumes you're running from /home/osmc as user osmc

Auto-mount ROMs from CIFS

Configure AutoFS

sudo apt-get install autofs

$[Get Code]4

/etc/auto.mediasys

mediasys -fstype=cifs,username=foo,password=bar ://media/mediasys

Add at the end of /etc/auto.master

/mnt /etc/auto.mediasys --timeout=300

This combination mounts //media/mediasys as /mnt/mediasys.

Reconfigure EmulationStation

/etc/emulationstation/es_systems.cfg using

:%s%/home/osmc/RetroPie/roms/%/mnt/mediasys/games/library/%g
 in vim: 




<?xml version="1.0"?>
<systemList>
  <system>
    <name>amstradcpc</name>
    <fullname>Amstrad CPC</fullname>
    <path>/mnt/mediasys/games/library/amstradcpc</path>
    <extension>.cdt .cpc .dsk .zip .CDT .CPC .DSK .ZIP</extension>
    <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 \_SYS\_ amstradcpc %ROM%</command>
    <platform>amstradcpc</platform>
    <theme>amstradcpc</theme>
  </system>
  <system>
    <name>arcade</name>
    <fullname>Arcade</fullname>
    <path>/mnt/mediasys/games/library/arcade</path>
    <extension>.7z .cue .fba .iso .zip .7Z .CUE .FBA .ISO .ZIP</extension>
    <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 \_SYS\_ arcade %ROM%</command>
    <platform>arcade</platform>
    <theme>arcade</theme>
  </system>
  ...