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

    [Solved]Getting Moonlight to run without..

    Scheduled Pinned Locked Moved Help and Support
    27 Posts 3 Posters 18.1k 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.
    • ExmixE
      Exmix @mediamogul
      last edited by

      @mediamogul
      Tried. New code:
      #!/bin/bash
      /home/pi/RetroPie/roms/ports/moonlight stream [My IP Address]

      Still says it's not found, with the same error.
      It's weird. like I said I can get it to run when I use the "File Manager' from the RetroPie menu. When in there I just use:
      moonlight stream [My IP Address] and it boots up no problem.

      mediamogulM 1 Reply Last reply Reply Quote 0
      • mediamogulM
        mediamogul Global Moderator @Exmix
        last edited by mediamogul

        @Exmix

        Based on what you wrote there, something tells me your path is not correct. The path you have above leads to the ports directory where the shell script was created. Is that really where the Moonlight executable resides? Remember, the shell script we created is different than the actual Moonlight executable. The path needs to point to the latter.

        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

        ExmixE 1 Reply Last reply Reply Quote 0
        • ExmixE
          Exmix @mediamogul
          last edited by Exmix

          @mediamogul
          I THINK it's under /usr/bin
          Lemme try that.

          Edit:
          Nope. I tried to change the path to:
          /usr/bin/moonlight stream [My IP Address]
          That is my Moonlight.sh

          It's still telling me:
          sh: 1: /home/pi/RetroPie/roms/ports/Moonlight.sh: not found

          mediamogulM 2 Replies Last reply Reply Quote 0
          • mediamogulM
            mediamogul Global Moderator @Exmix
            last edited by

            @Exmix

            Just for clarity, I have to ask if the /usr/bin/ location was a guess or did actually check to see if it was there first?

            RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

            ExmixE 1 Reply Last reply Reply Quote 0
            • ExmixE
              Exmix @mediamogul
              last edited by Exmix

              @mediamogul
              xD I checked. I'm still looking through my other folders, but thats where I see moonlight.
              If you have any form of IM to make this quicker i'm ok with that. Just let me know what you have.

              Edit:
              Just tried running that moonlight from the /usr/bin folder and that is the right path

              1 Reply Last reply Reply Quote 0
              • mediamogulM
                mediamogul Global Moderator @Exmix
                last edited by mediamogul

                @Exmix

                Based on the ability to run the command as you originally listed from the file manager without doing anything more, you might want to try:

                Edit: Well, I have to admit, I'm at a bit of a loss. I'm probably missing something because it's late. I'll continue to think on it, but in the mean time, if anyone else out there can see what the barrier might be, feel free to chime in.

                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                ExmixE 1 Reply Last reply Reply Quote 0
                • ExmixE
                  Exmix @mediamogul
                  last edited by Exmix

                  @mediamogul
                  Right. I didn't think of using the origional path but I don't know what's going on either. Figured a simple script should fix this.
                  All good. If you think of anything, i'll check this as often as I can to see if anythign works.
                  I just cant figure out why it says it's not found.

                  mediamogulM 1 Reply Last reply Reply Quote 0
                  • mediamogulM
                    mediamogul Global Moderator @Exmix
                    last edited by

                    @Exmix

                    After some more thought, I still don't have much as to why this isn't working. The error you're getting reports that the problem is with line 1 of the script, so my only advice is to examine it closely for any potential issues.

                    RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                    ExmixE 1 Reply Last reply Reply Quote 0
                    • ExmixE
                      Exmix @mediamogul
                      last edited by Exmix

                      @mediamogul
                      I have been. No idea what's going on. I guess i'll just have to type it in through the File Manager if I wanna use it.
                      Thanks for all your help though. I appreciate it.

                      mediamogulM 1 Reply Last reply Reply Quote 0
                      • mediamogulM
                        mediamogul Global Moderator @Exmix
                        last edited by mediamogul

                        @Exmix

                        Is it at all possible that the script has even temporarily been on a Windows/Mac drive or been through Windows/Mac software?

                        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                        ExmixE 1 Reply Last reply Reply Quote 1
                        • ExmixE
                          Exmix @mediamogul
                          last edited by Exmix

                          @mediamogul
                          Yeah. I have it saved on the RetroPie, but I opened and edited it through Samba and use Notepad++, save it, then reload emulationstation.
                          Only reason I did that is because for some reason when I try to type a poun sign(#) on the command line on the Pi, I get the symbol for a Euro. xD or well it looks like a Euro symbol.
                          I can always SSH into it and do it that was it that would work since it's still creating it on the Pi itself.

                          herb_fargusH mediamogulM 2 Replies Last reply Reply Quote 0
                          • herb_fargusH
                            herb_fargus administrators @Exmix
                            last edited by

                            @Exmix

                            If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                            Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                            ExmixE 1 Reply Last reply Reply Quote 1
                            • mediamogulM
                              mediamogul Global Moderator @Exmix
                              last edited by mediamogul

                              You crazy Brits with your kooky keyboards and Spotted Dick. Actually, you'll have to forgive me. The only knowledge I have of the region comes from 'King Ralph'.

                              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                              1 Reply Last reply Reply Quote 0
                              • ExmixE
                                Exmix @herb_fargus
                                last edited by Exmix

                                @mediamogul said in Getting Moonlight to run without..:

                                @Exmix

                                You crazy Brits with your kooky keyboards and Spotted Dick. Actually, you'll have to forgive me. The only knowledge I have of the region comes from 'King Ralph'.

                                I'm actually from the US. xD Mine just isn't set to be US.

                                @herb_fargus said in Getting Moonlight to run without..:

                                When I try this, it doesn't save. Mine has an extra step I don't see in your video about asking what my Model of Keyboard is. It's a Logitech Wireless Keyboard. So i'm running through most the logitech options now.

                                EDIT:
                                Keyboard is working properly. Had to do a restart. Going to try to add the script in manually now.

                                herb_fargusH 1 Reply Last reply Reply Quote 0
                                • herb_fargusH
                                  herb_fargus administrators @Exmix
                                  last edited by

                                  @Exmix keyboard type doesn't really matter. Default 105 keyboard works fine.

                                  If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                                  Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                                  ExmixE 1 Reply Last reply Reply Quote 0
                                  • ExmixE
                                    Exmix @herb_fargus
                                    last edited by Exmix

                                    @herb_fargus
                                    Yeah I got it now. :P

                                    @mediamogul
                                    Update:
                                    So I manually added Moonlight.sh to the /home/pi/RetroPie/roms/ports/ directory.
                                    I try to run it, it says:
                                    sh: 1: /home/pi/RetroPie/roms/ports/Moonlight.sh: Permission denied

                                    SO I try to do a:
                                    chmod +x /home/pi/RetroPie/roms/ports/Moonlight.sh

                                    It tells me:
                                    chmod: changing permissions of /home/pi/RetroPie/roms/ports/Moonlight.sh : Operation not permitted

                                    mediamogulM 1 Reply Last reply Reply Quote 0
                                    • mediamogulM
                                      mediamogul Global Moderator @Exmix
                                      last edited by

                                      @Exmix said in Getting Moonlight to run without..:

                                      chmod +x /home/pi/RetroPie/roms/ports/Moonlight.sh

                                      Try sudo chmod +x /home/pi/RetroPie/roms/ports/Moonlight.sh

                                      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                      ExmixE 1 Reply Last reply Reply Quote 1
                                      • ExmixE
                                        Exmix @mediamogul
                                        last edited by

                                        @mediamogul
                                        Mother Effin PERFECT!
                                        It's working perfeclty now.
                                        I'll update my first post to try to help if anyone else has this issue ever.

                                        mediamogulM 1 Reply Last reply Reply Quote 0
                                        • mediamogulM
                                          mediamogul Global Moderator @Exmix
                                          last edited by mediamogul

                                          @Exmix said in Getting Moonlight to run without..:

                                          Mother Effin PERFECT!

                                          Q-Bert couldn't have said it better. I'm glad to see this resolved. A while back, I was helping someone out with a similar issue for launching DOOM wads from ES and I believe this might have been the same problem. I'll have to track that post down & point it back here for reference.

                                          God save the Queen.

                                          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                          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.