Launching games with CLI?
-
So i am "playing" around in retropie. Just to learn more about Linux in general and to see how everything works.
So from what i understand. You can launch games directly from the shell? I found this string in runcommand.log:
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Adventures of Lolo (USA).zip" --appendconfig /dev/shm/retroarch.cfg
So naturally i hook up to my RetroPie with Putty in SSH and i run that line. And nothing happens.
So i am running around Internet searching about launching games from CLI. And i read about it. And the line i found in runncommand.log should work.
But why doesn´t it? Because it can´t run in my Putty Window? Do i need to "direct the output to my tv" somehow?
Or does it not work because i am using RetroPie? What am i missing?
Thanx in advance for any knowledge on the subject!
-
@djaay Have you tried to execute that line directly on the Pi with keyboard and TV connected? As far as I know you can't get any graphic mode thru SSH; but I'm not an expert in this area.
-
@djaay you can launch games through SSH but you cannot play games through the SSH terminal. There is no mechanism for streaming the gameplay. A vncserver may work partially but it requires a desktop environment which retropie doesn't not have.
In short. No. You can only play games on your TV or monitor the pi is connected to with it's video output.
-
Thank you for the knowledge! But my pi is connected to a TV...i thought that i could execute that line and then the game would start on my TV...i´m executing the line from SSH...but from what i understand i actually need to do it in front of my TV (not using SSH)?
And there is no way to tell Pi that the output should be displayed on the TV and not my SSH client?
-
@djaay you can do it via gdb debugger:
> gdb --args /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Adventures of Lolo (USA).zip" --appendconfig /dev/shm/retroarch.cfg > tty /dev/tty1 > run
bit of a round about way of doing it, but i do this when i'm debugging.
probably a way to do redirect tty in straight linux also, but yeah.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.