Installing [RetroPie][1][?][1] 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][2][?][2] from CIFS

Configure [AutoFS][3][?][3]

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][5][?][5]

/etc/emulationstation/es_systems.cfg using

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

<?xml version="1.0"?>

      amstradcpc     Amstrad CPC     /mnt/mediasys/games/library/amstradcpc     .cdt .cpc .dsk .zip .CDT .CPC .DSK .ZIP     /opt/retropie/supplementary/runcommand/runcommand.sh 0 \_SYS\_ amstradcpc %ROM%</command>     amstradcpc     amstradcpc         arcade     Arcade     /mnt/mediasys/games/library/arcade     .7z .cue .fba .iso .zip .7Z .CUE .FBA .ISO .ZIP     /opt/retropie/supplementary/runcommand/runcommand.sh 0 \_SYS\_ arcade %ROM%</command>     arcade     arcade     ... $[Get Code][6] [4]: Games?action=sourceblock&num=1 [6]: Games?action=sourceblock&num=2