RetroPie - Running games directly via network

Channel:
Subscribers:
73
Published on ● Video Link: https://www.youtube.com/watch?v=ef1neCAYJiE



Duration: 2:56
12,052 views
24


In this video i show the script that i made to mount a samba server and run roms directly via network without moving into the sd card, i tried a thousand of methods and this is the only one that worked without bugs or lags

Tutorial:

- First of all, MOVE all folders (except the ports) on roms folders of your pi to your pc, then share this folder (ex: \\192.168.1.37\roms)

- In PI go to terminal (alt-f4) or do it via ssh, navigate to /home/pi/ and create a new rom folder using the command "sudo mkdir roms"

- Navigate to /home/pi/RetroPie/roms/ports and type "sudo nano loadroms.sh, a file editor will open, then you gonna create your file to load roms from your shared folder, your loadroms.sh should be like this (you don't need to add the # lines)

#Mount the shared folder into /home/pi/roms (replace xxx with your shared user)
sudo mount -t cifs -o user=xxx,password=xxx //your_server_ip/Roms /home/pi/roms
#Create symbolic links of each folder that you have roms to the correct path
sudo ln -s /home/pi/roms/psx /home/pi/RetroPie/roms
sudo ln -s /home/pi/roms/gba /home/pi/RetroPie/roms
sudo ln -s /home/pi/roms/snes /home/pi/RetroPie/roms
#Kill the emulationstation process
ps -ef | grep "emulationstation" | awk '{print $2}' | xargs kill
#Start a new emulationstation process
emulationstation
# END

- Why do i mount roms folder into /home/pi and create symbolic links of the emulator roms folder instead mounting the entire rom folder into the correct path? Because if i replace the entire original roms folder with the mounted one, emulation station will bug A LOT, so you need to create a symbolic link to EVERY folder that contain roms, just add one line and replace the emulator folder (EX: "sudo ln -s /home/pi/roms/mame /home/pi/RetroPie/roms" for mame roms)

- Now that you have create your loadroms.sh file, press CRTL+X, then Y and Enter to save file

- You need to create a file to umount and delete the links when you done playing (yes it's necessary), in /home/pi/RetroPie/roms/ports folder type "sudo nano unmount.sh" and hit enter, edit your file to be like this:

#START
sudo rm /home/pi/RetroPie/roms/psx
sudo rm /home/pi/RetroPie/roms/gba
sudo rm /home/pi/RetroPie/roms/snes
sudo umount /home/pi/roms
ps -ef | grep "emulationstation" | awk '{print $2}' | xargs kill
emulationstation
#END

- Remember to add one line with every folder that you created symbolic links (EX: sudo rm /home/pi/RetroPie/roms/snes), press CRTL+X, then Y and Enter to save file.

- Return to emulationstation and test if its working !