Trouble with setting up RetroPie in a custom script
-
Hello. So, what I'm trying to do is create a custom script that will set up my Raspberry Pi from a clean installation of Raspbian Lite, though every time I test it, I keep running into a specific problem. When it comes to setting up RetroPie, and I perform a basic installation, remove usbromservice, and install pixel desktop, my script will abruptly end when I exit the installer.
I noticed that when I exit the installer right after it loads, the script will continue on, but this isn't what I want, since the desktop has to be installed for the tasks afterwards, and also since I just want to install RetroPie in one go.
If I were to make an educated guess about what's going on, I'd say that the RetroPie setup script is cancelling itself after it completes an operation, which in turn cancels my script, and then reloads itself and not my script. A possible workaround that comes to mind is that I could place the commands necessary for my particular setup directly into my script, which would set up the things necessary while not exiting out of my script.
How can I do this if possible, and if not, how else can I fix this annoying problem?
-
@azsorlex26 Not an answer but... why are you making this much more complicated than it needs to be? Why not just use the RetroPie official image which is based on Raspbian Lite?
What is the purpose of using Raspbian Lite then installing the Desktop? Why not just use the full Raspbian image which already includes the Desktop if you want to down that route?
You are being very vague about what your script does so it's gonna be pretty difficult for anyone to offer any meaningful advice. -
@jonnykesh You make a good point about the official image, however if it already doesn't come with the desktop installed on it, then that still doesn't help me since I need to have the desktop installed. Also, if I use the full raspbian image, firstly retropie won't be installed, so I'll still have to run the RetroPie installer and run into the same error, and secondly, the full raspbian image comes with a bunch of bloat that's a nightmare to remove; I find it easier to add what I want and not make any removals.
Also, my script is very simple. It's essentially a bunch of commands that set up the system. There are commands such as printf for creating and adding to files (such as wpa_supplicant.conf), update commands (apt-get update, apt full-upgrade, rpi-upgrade), installations of some other things (geany, apache2 etc.), as well as commands for changing raspi-config settings automatically without going into the GUI, and a setup of PiVPN.
-
@azsorlex26 You can install Pixel Desktop within Retropie : https://retropie.org.uk/docs/FAQ/#where-did-the-desktop-go
-
@bytethis Yes I'm aware of that, but running that setup would still cancel my script.
-
A couple of problems. When I play SNES Tecmo Super Bowl, the controllers only work for one player and the game whistles at me when I try to do 2 players. The controllers work on all other games. I can play the game if I press both controllers's buttons at the same time. It's like the controllers are slaved together for this game.
The other problem is I can download the stuff I need to make the NINtendo DS work on my Retropie but I do not know what to do next. Is it possible to make Nintendo DS games work for the Retropie? If so, some help! Thanks.
-
@luke99k23 Please do NOT hijack someone else's post!
Seriously, have some manners. If you have a problem then start your own thread and supply the requested information. https://retropie.org.uk/forum/topic/3/read-this-first -
@jonnykesh I apologize. I was in a hurry and it kept telling me I needed someone else to
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.