Peppermint OS Community Forum

General => GNU/Linux Gaming => Topic started by: dro3m on June 13, 2018, 04:07:10 pm

Title: RetroPie Peppermint OS 8 Support
Post by: dro3m on June 13, 2018, 04:07:10 pm
Craving for some Pokemon Gold? What about some good ol' Doom? Well RetroPie may be the answer.

Well, your almost done installing, now you just need to run the setup script, type in the command
and....

OH COME OOOOOOOOOOOOOOOON! :-[

Code: [Select]
Distributor ID:	Peppermint
Description: Peppermint 8 Eight
Release: 8
Codename: xenial

That make no since does it? Peppermint is Debian/Ubuntu based, and RetroPie can run on that right?

Well I have a fix for you! Go to Home -> RetroPie-Setup -> scriptmodules and open system.sh in your favorite text editor
Scrool a little bit until your see the line
Code: [Select]
*)
(ln 151) above that paste this code:

Code: [Select]
        Peppermint)
            if compareVersions "$__os_release" lt 6; then
                error="You need Peppermint OS 6 or newer"
            elif compareVersions "$__os_release" lt 8; then
                __os_ubuntu_ver="14.04"
            else
                __os_ubuntu_ver="16.04"
            fi
            __os_debian_ver="8"
            ;;

Make sure to keep it in line with the rest of the code. Save and rerun the script. Enjoy!

Disclaimer: This code will only work on Peppermint OS 6 or newer, this will not fix any other distros. I am not responsible for your lost game save or waste of time. Feel free to contact me. Do not ask anything about RetroPie on this forum except the following code.

RetroPie:
https://retropie.org.uk/

Title: Re: RetroPie Peppermint OS 8 Support
Post by: 00ninja on June 13, 2018, 04:22:09 pm
I found the same issue a few months back and added the same fix. Works great and allows RetroPie Setup Script to run.....but I had an issue when it attempted to build 2 cores using P8 or P8 r2. One is an N64 core (lr-mupen64plus)the other is a PSX core (lr-pcsx-rearmed). It was a dependancy problem but after running the script on Linux Mint, and transferring the newly built cores into Peppermint, all is well.
Title: Re: RetroPie Peppermint OS 8 Support
Post by: PCNetSpec on June 13, 2018, 06:00:55 pm
Nice, if they update that script for 18.04 I may submit a pull request with this fix (or a modified 18.04 version of it).

Another option would have been to edit /etc/lsb-release to read the same as the Ubuntu version .. run the script .. then un-edit /etc/lsb-release .. but the above fix is better.
Title: Re: RetroPie Peppermint OS 8 Support
Post by: dro3m on June 13, 2018, 06:43:53 pm
Nice, if they update that script for 18.04 I may submit a pull request with this fix (or a modified 18.04 version of it).

Another option would have been to edit /etc/lsb-release to read the same as the Ubuntu version .. run the script .. then un-edit /etc/lsb-release .. but the above fix is better.

No worry, RetroPie has been installed and tested on Lubuntu 18.04 by me. No script modifications required. It really just depends on the version of Debian its based on. Right now 8 and 9. 10 (Codename Buster) has recently under gone development. I also like to note that RetroPie has a hard time detecting detecting Debian versions, that's why i made some code to fix that.
Title: Re: RetroPie Peppermint OS 8 Support
Post by: PCNetSpec on June 13, 2018, 06:46:00 pm
Nice, if I remember I'll submit a pull request after PM9 is released and I've tested it then :)
Title: Re: RetroPie Peppermint OS 8 Support
Post by: Wolfenprey on October 08, 2018, 06:34:05 pm
Anybody knows if the retropie script works on Peppermint 9? I really want to try it!  :)
Title: Re: RetroPie Peppermint OS 8 Support
Post by: PCNetSpec on October 08, 2018, 07:15:49 pm
retropie 4.4.2 appears to install if you modify dro3m's instructions so the edit to ~/RetroPie-Setup/scriptmodules/system.sh now reads:-
Code: [Select]
        Peppermint)
            if compareVersions "$__os_release" lt 6; then
                error="You need Peppermint OS 6 or newer"
            elif compareVersions "$__os_release" lt 7; then
                __os_ubuntu_ver="14.04"
            elif compareVersions "$__os_release" lt 9; then
                __os_ubuntu_ver="16.04"
            else
                __os_ubuntu_ver="18.04"
            fi
            __os_debian_ver="9"
            ;;
(the full edited file is attached below for comparison)

Can't say how well it'll run though, Google suggests there were some issues on 18.04/Mint 19 .. but they may be resolved now, and there are workarounds anyway, such as
https://retropie.org.uk/forum/topic/18724/retropie-4-4-1-on-mint-19-ubuntu-16-04-18-04-debian-8-9-black-screen-when-starting-roms-gl-sdl2-fixes-i-think-its-an-issue-with-retropie-not-linux



Just follow the instructions for Ubuntu here:
https://retropie.org.uk/docs/Debian/
but be sure to modify system.sh BEFORE running
Code: [Select]
sudo ./retropie_setup.sh
Title: Re: RetroPie Peppermint OS 8 Support
Post by: Wolfenprey on October 08, 2018, 07:19:49 pm
Thanks!  I will try it, and see what happens. I will back reporting about  ;)
Title: Re: RetroPie Peppermint OS 8 Support
Post by: Wolfenprey on October 10, 2018, 06:04:47 am
IT WORKS LIKE A CHARM.............!!!


(http://i67.tinypic.com/28i5iy1.png)

Thanks for your help! I played some games and have no problem, all works, including my 360 cheap clone controller. Now my laptop it's complete!
Title: Re: RetroPie Peppermint OS 8 Support
Post by: PCNetSpec on October 10, 2018, 07:30:37 am
Great news, yeah it looks like they've fixed it for 18.04 in RetroPie 4.4.2 :)

The edit in my last post above to system.sh should now make it installable in Peppermint 6, 7, 8, and 9
Title: Re: RetroPie Peppermint OS 8 Support
Post by: Baileybrat on December 14, 2018, 06:55:25 pm
This also works if you are getting an unsupported OS error. It is finally installing!!!!!
Title: Re: RetroPie Peppermint OS 8 Support
Post by: PCNetSpec on December 15, 2018, 10:11:18 am
Cool, let us know how it goes :)
Title: Re: RetroPie Peppermint OS 8 Support
Post by: Forrito on May 05, 2019, 04:19:57 pm
Works. Thank you very much!