RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Unable to start DOSBOX, getting error with Runcommand and/or permissions

    Scheduled Pinned Locked Moved Help and Support
    dosboxms-dospermissionsruncommand
    6 Posts 2 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lordcrammy
      last edited by

      I have RetroPie working on an RPI3 right now. I've got all of the emulators working fine, with exception of DOSBOX.

      I've installed it, updated it, re-installed it, and no matter what I try, when i open the MS-DOS section of the emulator list, then choose "+Start DOSBOX" it just goes to a black screen and puts 2 lines up on before going back to Retropie.

      The lines read:
      sh: 1: /opt/retropie/supplementary: Permission denied
      sh: 2: /runcommand/runcommand.sh: not found

      Does anyone know how to fix this?

      1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators
        last edited by

        Please provide information as detailed here - https://retropie.org.uk/forum/topic/3/read-this-first

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by BuZz

          Please also post the output of cat "/home/pi/RetroPie/roms/pc/+Start DOSBox.sh"

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 0
          • L
            lordcrammy
            last edited by BuZz

            Pi Model: 3B
            RetroPie Version Used: 4.02
            Built From: Pre-made SD Image on RetroPie website
            USB Devices connected: 1 xbox 360 controller
            Controller used: Rock Candy Xbox 360 controller
            Error messages received: (see first post)
            Log found in /dev/shm/runcommand.log (if relevant): EMPTY
            Guide used: n/a Just installed DOSBOX from optional package menu
            File:+Start Dosbox.sh
            Emulator: Dosbox
            Attachment of config files:

            The entry for the PC emulator section of the /etc/emulationstation/es_systems.cfg file is:

              <system>
                <name>pc</name>
                <fullname>PC (x86)</fullname>
                <path>/home/pi/RetroPie/roms/pc</path>
                <extension>.bat .com .exe .sh .BAT .COM .EXE .SH</extension>
                <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pc %ROM%</command>
                <platform>pc</platform>
                <theme>pc</theme>
              </system>
            

            The contents of /opt/retropie/configs/pc/emulators.cfg is as follows:

            dosbox = "/home/pi/RetroPie/roms/pc/+Start\ DOSBox.sh %ROM%"
            default = "dosbox"
            
            1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators
              last edited by BuZz

              Use markdown to format your posts - see http://commonmark.org/help/ - and put large logs on a pastebin type site like http://paste.ubuntu.com/ http://pastebin.com/ or similar.

              You should wrap the XML in a code block otherwise information is not displayed correctly.

              Please post the output of cat "/home/pi/RetroPie/roms/pc/+Start DOSBox.sh"

              Please wrap it in a code block or use an external site like pastebin.com

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 0
              • L
                lordcrammy
                last edited by

                You can mark this SOLVED! I remembered I was following another site's suggestion on creating ".SH" files to automatically launch games in DOSBox without having to manually type the commands. Along the way, I had modified the es_systems.cfg file to give it an entry so it would show as an emulator because it wasn't coming up after installing DOSBox.

                It turns out, there's more than one es_systems.cfg file. The one I posted above was in the ETC path. I found another one under /opt/retropie/configs/all/emulationstation/

                When I opened it up, I guess I had somehow split the line:

                    <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pc %ROM%</command>
                

                into this:

                <command>/opt/retropie/supplementary/
                runcommand/runcommand.sh 0 _SYS_ pc %ROM%
                </command>
                

                Once I backspaced each separation so it was on one line, it worked! Well, the "+Start DOSBox" entry works, but the ".SH" scripts I made do not launch the games properly, so that will be my next mission. Thanks for your help BuZz.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                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.