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
  • outdated now

Debian Bullseye

Auto-mount ROMs from CIFS

Configure AutoFS

sudo apt-get install autofs

/etc/auto.mediasys

/auto/mediasys -fstype=cifs,rw,credentials=/etc/auto.xbmc.credentials,iocharset=utf8,uid=osmc,gid=osmc ://media/mediasys

Add to /etc/auto.d/whalebarn.autofs

/- /etc/auto.mediasys --timeout 15 browse

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

Reconfigure EmulationStation

/etc/emulationstation/es_systems.cfg using

:%s%/home/osmc/RetroPie/roms/%/auto/mediasys/games/library/%g

in vim:

<?xml version="1.0"?>
<systemList>
  <system>
    <name>amstradcpc</name>
    <fullname>Amstrad CPC</fullname>
    <path>/auto/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>/auto/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>
  ...