Is anyone have a latest x86 generic build to share?
RetroELEC Kodi+Wayland+Emulationstation+RetroArch (x86/XU4/RPi)
-
escalade -
May 12, 2016 at 2:26 PM -
Thread is Resolved
-
-
Hi escalade!
Can you describe your building process?
I downloaded your last source code(2020-11-24) then I built xenial docker image from tools/docker/xenial/Dockerfile. I ran the command "PROJECT=Generic ARCH=x86_64 DISTRO=RetroELEC make" in this image and had a lot of building errors. The googling helped me solve some errors but I stuck with python3 _ctypes module now.
All in all, I want to repeat your building process and then add my small changes.
I very like your project, thank you very much for it
-
I really enjoyed escalade's work with RetroELEC but I wanted to have my personal touch on the software, so I just ended up doing an Ubuntu 18.04 minimal install and then installed RetroPie (with Pegasus FE) + Kodi on it (can run Steam too, even in BPM). The upside with doing this is that you'll have access to more drivers and aren't limited to what's included in RetroELEC (or LibreELEC for that matter). You'll also be using Ubuntu which is widely supported and discussed in forums should you run into any issues or want to add something of your own.
Here's what I did if anyone is interested in trying:
Code
Display More#! /bin/bash #this setup script is brought to you by Northbane (c) 2020 #it is known to be very crude and simple #IMPORTANT: only run it once! or it will most likely fubar your os #need to install deps for RetroPie and PegasusFE sudo apt install git dialog unzip xmlstarlet x11-xserver-utils gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-good jq policykit-1 #install basic package in RetroPie or it wont work cd ~ git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git cd RetroPie-Setup sudo ./retropie_setup.sh #installing drivers if needed + openbox & lightdm sudo apt install ubuntu-drivers-common software-properties-common curl lightdm openbox sudo ubuntu-drivers autoinstall #disabling power saving mode echo "#turn off screen saver and power saving" >> ~/.profile echo "xset s off && xset -dpms" >> ~/.profile #add USB automount git clone https://github.com/rbrito/usbmount sudo apt install debhelper build-essential lockfile-progs cd usbmount dpkg-buildpackage -us -uc -b cd ~ && sudo dpkg -i usbmount*.deb #create autologin for current user if [ ! -e "/etc/lightdm/lightdm.conf" ]; then echo "[SeatDefaults]" >> ~/lightdm.conf echo "autologin-user=$USER" >> ~/lightdm.conf echo "autologin-user-timeout=0" >> ~/lightdm.conf echo "user-session=openbox" >> ~/lightdm.conf sudo mv ~/lightdm.conf /etc/lightdm/ fi #install pegasus fe / do this from within retropie setup / experimental packages if scraped videos aren't working curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add - sudo add-apt-repository 'deb https://dl.bintray.com/mmatyas/deb testing main' sudo apt update sudo apt install pegasus-frontend #remove password from user sudoers. #if grep -q "$USER ALL=(ALL) NOPASSWD:ALL" "/etc/sudoers"; then sudo sed -i -e '$a\$USER ALL=(ALL) NOPASSWD:ALL' /etc/sudoers #remove user from sudo sudo gpasswd -d $USER sudo #set up custom plymouth: cd ~ sudo apt-get install plymouth plymouth-themes plymouth-x11 -y git clone --depth=1 https://github.com/HerbFargus/plymouth-themes.git tempthemes sudo cp -r ~/tempthemes/. /usr/share/plymouth/themes/ rm -r -f tempthemes sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth 10 sudo update-alternatives --set default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth sudo update-initramfs -u sudo cp /etc/default/grub /etc/default/grub.backup sudo sed -i -e 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=2/g' /etc/default/grub sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="quiet splash"/g' /etc/default/grub sudo update-grub #create openbox autostart script for pegasus, which will start again if exited echo "#!/bin/bash" >> ~/pegasus.sh echo "while true; do" >> ~/pegasus.sh echo "pegasus-fe" >> ~/pegasus.sh echo "done" >> ~/pegasus.sh chmod +x ~/pegasus.sh mkdir ~/.config mkdir ~/.config/openbox if [ ! -e "~/.config/openbox/autostart" ]; then echo 'gnome-terminal --full-screen --hide-menubar -- ~/pegasus.sh' >> ~/.config/openbox/autostart fi #install kodi with rar support, user interaction required echo Installing Kodi (with RAR support), please wait sudo add-apt-repository ppa:team-xbmc/ppa sudo apt-get update sudo apt-get install kodi kodi-vfs-rar mkdir ~/RetroPie/roms/ports echo "kodi-standalone" >> ~/RetroPie/roms/ports/Kodi.sh chmod +x ~/RetroPie/roms/ports/Kodi.sh #install Steam echo Installing Steam, please wait sudo apt-get install steam echo "steam" >> ~/RetroPie/roms/ports/Steam.sh chmod +x ~/RetroPie/roms/ports/Steam.sh #tips : check https://wiki.archlinux.org/index.php/PulseAudio/Examples for more info echo "tip: lastly, don't forget to edit /etc/pulse/default.pa with the following line:" echo "do pacmd list-sinks | grep -e 'name:' -e 'index:'" echo "and ucomment the last line and set something like set-default-sink alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1" echo "" echo ALL DONE!
NOTES:
Also, make sure to install Pegasus FE from RetroPie Setup under experimental packages if videos aren't playing after scraping them.You can copy & save that as a file in your user home dir as "retropie_install.sh" for example and then run the cmd: "chmod +x retropie_install.sh"
execute with "sudo sh retropie_install.sh" afterwards. After a reboot you should now see the Pegasus frontend, you can scrape games with SkraperUI (run it from a Windows PC and point to your Ubuntu machine's LAN IP / name).
Good luck with your new project!
Audio issues? Check audio preferences withand ucomment the last line in /etc/pulse/default.pa and set something like set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1
Controller issues? Go to RetroPie section and launch Retroarch and setup your controller binds there.
Also if you have more than one user it will probably break stuff with the install script. Use a clean new Ubuntu 18.04 install for this.
Disclaimer: I'm not responsible for any damage running that script may cause. You're on your own if things go haywire.Note: If you want to use MizterB's RetroPie script for Ubuntu 18.04/20.04 you can download it here. It uses EmulationStation as frontend and installs main packages for RetroPie automatically
This intrigues me. Is there a place to discuss it further? I know this is an older post. What I want to know most is what the end result looks like allowing you to switch between systems (Kodi, Emulation Station, Steam) and whether a desktiop is needed or if there is a way to bind the three together for complete control with a remote?
-
This intrigues me. Is there a place to discuss it further? I know this is an older post. What I want to know most is what the end result looks like allowing you to switch between systems (Kodi, Emulation Station, Steam) and whether a desktiop is needed or if there is a way to bind the three together for complete control with a remote?
You can check out the theme at Pegasus Frontend , you simply add Kodi and Steam so you can start them like you'd start a game. I'm using a remote to start either and it works flawlessly.
-
Here's an updated version of the script, copy the text and open an editor such as nano and paste it and save as retropie_installer.sh (for example) then do: chmod +x retropie_installer.sh and then run: sh retropie_installer.sh
The old and borked script below should only be used for reference.Code
Display More#! /bin/bash #this setup script is brought to you by Northbane (c) 2021 #it is known to be very crude and simple #IMPORTANT: only run it once! or it will most likely fubar your os #Remember to install PegasusFE from RetroPie Setup experimental packages #need to install deps for RetroPie and PegasusFE sudo apt install menu python-xdg at-spi2-core pulseaudio alsa-utils libglib2.0-bin dbus-x11 triggerhappy git dialog unzip xmlstarlet x11-xserver-utils gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-good jq policykit-1 curl xdg-utils -y #installing drivers if needed + openbox & lightdm sudo apt install ubuntu-drivers-common software-properties-common curl lightdm openbox -y sudo add-apt-repository ppa:oibaf/graphics-drivers -y #check https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers for more info sudo apt-get update #sudo ubuntu-drivers autoinstall -y #uncomment the above line if you need other drivers and comment the oibaf rep not sure if needed tho #manually install basic package in RetroPie or it wont work and PegasusFE from exp packages cd ~ git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git cd RetroPie-Setup sudo ./retropie_setup.sh #enable lirc in Ubuntu 18.04 sudo apt purge ir-keytable lirc sudo sed -i '1 i\deb http://de.archive.ubuntu.com/ubuntu/ xenial universe' /etc/apt/sources.list sudo apt update sudo apt install lirc/xenial -y sudo apt-mark hold lirc #remove deb http://de.archive.ubuntu.com/ubuntu/ xenial universe from /etc/apt/sources.list echo "remove first line in sources.list" sudo nano /etc/apt/sources.list sudo apt update #disabling power saving mode #echo "#turn off screen saver and power saving" >> ~/.profile #echo "xset s off && xset -dpms" >> ~/.profile echo "1 i\xset s off && xset -dpms" > ~/.xsession #set up custom plymouth: cd ~ sudo apt-get install plymouth plymouth-themes plymouth-x11 -y git clone --depth=1 https://github.com/HerbFargus/plymouth-themes.git tempthemes sudo cp -r ~/tempthemes/. /usr/share/plymouth/themes/ rm -r -f tempthemes sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth 10 sudo update-alternatives --set default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth sudo update-initramfs -u sudo cp /etc/default/grub /etc/default/grub.backup sudo sed -i -e 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=2/g' /etc/default/grub sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="quiet splash"/g' /etc/default/grub sudo update-grub #sensitive stuff below could possibly break your system if ran more than once #create autologin for current user / deprecated? if [ ! -e "/etc/lightdm/lightdm.conf" ]; then echo "[SeatDefaults]" >> ~/lightdm.conf echo "autologin-user=$USER" >> ~/lightdm.conf echo "autologin-user-timeout=0" >> ~/lightdm.conf echo "user-session=openbox" >> ~/lightdm.conf sudo mv ~/lightdm.conf /etc/lightdm/ fi #remove password from user sudoers. sudo sed -i -e '$a\$USER ALL=(ALL) NOPASSWD:ALL' /etc/sudoers # OpenBox autostarts unclutter, then passes off to the RetroPie autostart mkdir -p ~/.config/openbox echo 'unclutter -idle 0.01 -root' >> ~/.config/openbox/autostart echo '/opt/retropie/configs/all/autostart.sh' >> ~/.config/openbox/autostart chown -R $USER:$USER ~/.config # Create RetroPie autostart mkdir -p /opt/retropie/configs/all touch /opt/retropie/configs/all/autostart.sh chmod +x /opt/retropie/configs/all/autostart.sh chown -R $USER:$USER /opt/retropie/configs #create openbox autostart script for pegasus, which will start again if exited echo "#!/bin/bash" >> ~/pegasus.sh echo "while true; do" >> ~/pegasus.sh echo "pegasus-fe" >> ~/pegasus.sh echo "done" >> ~/pegasus.sh chmod +x ~/pegasus.sh echo 'gnome-terminal --full-screen --hide-menubar -- ~/pegasus.sh' >> /opt/retropie/configs/all/autostart.sh #install kodi with rar support, user interaction required echo Installing Kodi with RAR support, please wait sudo add-apt-repository ppa:team-xbmc/ppa sudo apt-get update sudo apt-get install kodi kodi-vfs-rar -y mkdir ~/RetroPie/roms/ports touch ~/RetroPie/roms/ports/Kodi.sh echo "kodi-standalone" >> ~/RetroPie/roms/ports/Kodi.sh chmod +x ~/RetroPie/roms/ports/Kodi.sh #install Steam echo Installing Steam, please wait sudo apt-get install steam -y touch ~/RetroPie/roms/ports/Steam.sh echo "steam" >> ~/RetroPie/roms/ports/Steam.sh chmod +x ~/RetroPie/roms/ports/Steam.sh {~7 #installing requirements for Overcooked2 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get upgrade libstdc++6 -y #change audio to hdmi pulseaudio sudo sed -i -e 's/set-default-sink output/set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/g' /etc/pulse/default.pa #tips for retroarch echo "dont forget to edit retroarch with start pressed for 2 secs to enter menu" echo "" #tips on getting audio to work check https://wiki.archlinux.org/index.php/PulseAudio/Examples for more info echo "do pacmd list-sinks | grep -e 'name:' -e 'index:'" echo "check etc pulse default.pa" echo "and ucomment the last line and set something like set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1" echo "" echo "All Done!"
-
Here's an updated version of the script, copy the text and open an editor such as nano and paste it and save as retropie_installer.sh (for example) then do: chmod +x retropie_installer.sh and then run: sh retropie_installer.sh
Code
Display More#! /bin/bash #this setup script is brought to you by Northbane (c) 2020 #it is known to be very crude and simple #IMPORTANT: only run it once! or it will most likely fubar your os #need to install deps for RetroPie and PegasusFE sudo apt install menu python-xdg at-spi2-core pulseaudio alsa-utils libglib2.0-bin dbus-x11 triggerhappy git dialog unzip xmlstarlet x11-xserver-utils gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-good jq policykit-1 curl xdg-utils -y #manually install basic package in RetroPie or it wont work cd ~ git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git cd RetroPie-Setup sudo ./retropie_setup.sh #installing drivers if needed + openbox & lightdm sudo apt install ubuntu-drivers-common software-properties-common curl lightdm openbox sudo ubuntu-drivers autoinstall #disabling power saving mode #echo "#turn off screen saver and power saving" >> ~/.profile #echo "xset s off && xset -dpms" >> ~/.profile sed -i '1 i\xset s off && xset -dpms' ~/.xsession #add USB automount #git clone https://github.com/rbrito/usbmount #sudo apt install debhelper build-essential lockfile-progs #cd usbmount #dpkg-buildpackage -us -uc -b #cd ~ && sudo dpkg -i usbmount*.deb #create autologin for current user / deprecated? #if [ ! -e "/etc/lightdm/lightdm.conf" ]; then #echo "[SeatDefaults]" >> ~/lightdm.conf #echo "autologin-user=$USER" >> ~/lightdm.conf #echo "autologin-user-timeout=0" >> ~/lightdm.conf #echo "user-session=openbox" >> ~/lightdm.conf #sudo mv ~/lightdm.conf /etc/lightdm/ #fi #install pegasus fe / do this again from within retropie setup / experimental packages if scraped videos aren't working curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add - sudo add-apt-repository 'deb https://dl.bintray.com/mmatyas/deb testing main' sudo apt update sudo apt install pegasus-frontend # Start X as soon as autologin is complete function enable_autostart_xwindows() { echo "--------------------------------------------------------------------------------" echo "| Enabling autostart of X Windows" echo "--------------------------------------------------------------------------------" # Create a .xsession file to launch OpenBox when startx is called echo 'exec openbox-session' >> ~/.xsession chown $USER:$USER ~/.xsession # Add startx to .bash_profile cat << EOF >> ~/.bash_profile if [[ -z \$DISPLAY ]] && [[ \$(tty) = /dev/tty1 ]]; then exec startx -- >/dev/null 2>&1 fi EOF chown $USER:$USER ~/.bash_profile echo -e "FINISHED enable_autostart_xwindows \n\n" sleep 2 } #remove password from user sudoers. #if grep -q "$USER ALL=(ALL) NOPASSWD:ALL" "/etc/sudoers"; then sudo sed -i -e '$a\$USER ALL=(ALL) NOPASSWD:ALL' /etc/sudoers #remove user from sudo sudo gpasswd -d $USER sudo #set up custom plymouth: cd ~ sudo apt-get install plymouth plymouth-themes plymouth-x11 -y git clone --depth=1 https://github.com/HerbFargus/plymouth-themes.git tempthemes sudo cp -r ~/tempthemes/. /usr/share/plymouth/themes/ rm -r -f tempthemes sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth 10 sudo update-alternatives --set default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth sudo update-initramfs -u sudo cp /etc/default/grub /etc/default/grub.backup sudo sed -i -e 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=2/g' /etc/default/grub sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="quiet splash"/g' /etc/default/grub sudo update-grub # Hide Openbox Windows and reduce visibility of terminal function hide_openbox_windows() { echo "--------------------------------------------------------------------------------" echo "| Hiding window decorations in OpenBox" echo "--------------------------------------------------------------------------------" # Reduce the visibility of the gnome terminal by prepending these settings in the bash profile GNOME_TERMINAL_SETTINGS='dbus-launch gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/' cat << EOF >> ~/.bash_profile $GNOME_TERMINAL_SETTINGS use-theme-colors false $GNOME_TERMINAL_SETTINGS use-theme-transparency false $GNOME_TERMINAL_SETTINGS foreground-color '#FFFFFF' $GNOME_TERMINAL_SETTINGS background-color '#000000' $GNOME_TERMINAL_SETTINGS cursor-blink-mode 'off' $GNOME_TERMINAL_SETTINGS scrollbar-policy 'never' $GNOME_TERMINAL_SETTINGS audible-bell 'false' gsettings set org.gnome.Terminal.Legacy.Settings default-show-menubar false EOF chown $USER:$USER ~/.bash_profile # Further reduce the visibility of windows (terminal) by modifying the OpenBox config mkdir -p ~/.config/openbox cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml cat << EOF > /tmp/rc.xml.applications <application class="*"> <fullscreen>yes</fullscreen> <iconic>no</iconic> <layer>below</layer> <decor>no</decor> <maximized>true</maximized> </application> EOF sed -i '/<applications>/r /tmp/rc.xml.applications' ~/.config/openbox/rc.xml rm /tmp/rc.xml.applications sed -e 's/<keepBorder>yes<\/keepBorder>/<keepBorder>no<\/keepBorder>/g' -i ~/.config/openbox/rc.xml chown -R $USER:$USER ~/.config echo -e "FINISHED hide_openbox_xwindows \n\n" sleep 2 } # OpenBox autostarts unclutter, then passes off to the RetroPie autostart mkdir -p ~/.config/openbox echo 'unclutter -idle 0.01 -root' >> ~/.config/openbox/autostart echo '/opt/retropie/configs/all/autostart.sh' >> ~/.config/openbox/autostart chown -R $USER:$USER ~/.config # Create RetroPie autostart mkdir -p /opt/retropie/configs/all touch /opt/retropie/configs/all/autostart.sh chmod +x /opt/retropie/configs/all/autostart.sh chown -R $USER:$USER /opt/retropie/configs #create openbox autostart script for pegasus, which will start again if exited echo "#!/bin/bash" >> ~/pegasus.sh echo "while true; do" >> ~/pegasus.sh echo "pegasus-fe" >> ~/pegasus.sh echo "done" >> ~/pegasus.sh chmod +x ~/pegasus.sh echo 'gnome-terminal --full-screen --hide-menubar -- ~/pegasus.sh' >> /opt/retropie/configs/all/autostart.sh #install kodi with rar support, user interaction required echo Installing Kodi (with RAR support), please wait sudo add-apt-repository ppa:team-xbmc/ppa sudo apt-get update sudo apt-get install kodi kodi-vfs-rar mkdir ~/RetroPie/roms/ports echo "kodi-standalone" >> ~/RetroPie/roms/ports/Kodi.sh chmod +x ~/RetroPie/roms/ports/Kodi.sh #install Steam echo Installing Steam, please wait sudo apt-get install steam echo "steam" >> ~/RetroPie/roms/ports/Steam.sh chmod +x ~/RetroPie/roms/ports/Steam.sh #installing requirements for Overcooked2 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get upgrade libstdc++6 #change audio to hdmi pulseaudio sudo sed -i -e 's/set-default-sink output/set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/g' /etc/pulse/default.pa #tips for retroarch echo "dont forget to edit retroarch with start pressed for 2 secs to enter menu" echo "" #tips on getting audio to work check https://wiki.archlinux.org/index.php/PulseAudio/Examples for more info echo "do pacmd list-sinks | grep -e 'name:' -e 'index:'" echo "and ucomment the last line and set something like set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1" echo "" echo ALL DONE!
In the process of trying this a second time now. First time I had the connection close on me half way and I was unable to make it work afterwards. That install I used the WiFi built into my Lenovo M73, this time I'm going with Ethernet so I hope things go better. Not sure how but I hope at the end of things I'll be able to adjust the networking to WiFi because I am unable to run a cord to this desktop all the time at the moment.
Interestingly something in the settings had me end up with almost the entire Gnome desktop. Not sure this is intentional given the openbox installation later on.
ARGH...it died on me again while I was typing. error message says that:
CodeE: Failed to fetch https://dl.bintray.com/mmatyas/deb/dists/testing/InRelease 403 Forbidden [IP: 43.213.218.48 443] E: The repository 'https://dl.bintray.com/mmatyas/deb testing InRelease' is not singned. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package pegasus-frontend retropie_installer.sh: 49: Syntax error: "(" unexpected
So not really sure when you'll see this but it didn't work for me and I'm really not sure how to recover from this...
EDIT: Just wanted to mention that I've been trying to troubleshoot this with the help of a friend in Discord and on the Ubuntu-Mate forums. Sadly there seem to be multiple points of breakage, so when you come back I'd dearly appreciate your feedback on what we've got so far...
-
In the process of trying this a second time now. First time I had the connection close on me half way and I was unable to make it work afterwards. That install I used the WiFi built into my Lenovo M73, this time I'm going with Ethernet so I hope things go better. Not sure how but I hope at the end of things I'll be able to adjust the networking to WiFi because I am unable to run a cord to this desktop all the time at the moment.
Interestingly something in the settings had me end up with almost the entire Gnome desktop. Not sure this is intentional given the openbox installation later on.
ARGH...it died on me again while I was typing. error message says that:
CodeE: Failed to fetch https://dl.bintray.com/mmatyas/deb/dists/testing/InRelease 403 Forbidden [IP: 43.213.218.48 443] E: The repository 'https://dl.bintray.com/mmatyas/deb testing InRelease' is not singned. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package pegasus-frontend retropie_installer.sh: 49: Syntax error: "(" unexpected
So not really sure when you'll see this but it didn't work for me and I'm really not sure how to recover from this...
EDIT: Just wanted to mention that I've been trying to troubleshoot this with the help of a friend in Discord and on the Ubuntu-Mate forums. Sadly there seem to be multiple points of breakage, so when you come back I'd dearly appreciate your feedback on what we've got so far...
Sorry for being absent. I've updated the post you refer to (RE: RetroELEC Kodi+Wayland+Emulationstation+RetroArch (x86/XU4/RPi)) and removed the pegasus-frontend package as it seems to be removed.
Please try to run it again and check back if you succeed or run into any other issues. -
Sorry for being absent. I've updated the post you refer to (RE: RetroELEC Kodi+Wayland+Emulationstation+RetroArch (x86/XU4/RPi)) and removed the pegasus-frontend package as it seems to be removed.
Please try to run it again and check back if you succeed or run into any other issues.Great to see you back again!
Did you glance over at the Ubuntu-Mate thread I posted? I was trying to get things working with the assistance of a friend on Discord and one very kind and dedicated poster on the Ubuntu-Mate forums. We had to make a few changes (in addition to the issue with Pegasus) to fix things as we went along. The most recent version of that is this:
Code
Display More#! /bin/bash set -e #this setup script is brought to you by Northbane (c) 2020 #it is known to be very crude and simple #IMPORTANT: only run it once! or it will most likely fubar your os #need to install deps for RetroPie and PegasusFE sudo apt install menu python-xdg at-spi2-core pulseaudio alsa-utils libglib2.0-bin dbus-x11 triggerhappy git dialog unzip xmlstarlet x11-xserver-utils gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-good jq policykit-1 curl xdg-utils -y #manually install basic package in RetroPie or it wont work cd ~ git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git cd RetroPie-Setup sudo ./retropie_setup.sh #installing drivers if needed + openbox & lightdm sudo apt install ubuntu-drivers-common software-properties-common curl lightdm openbox sudo ubuntu-drivers autoinstall #disabling power saving mode #echo "#turn off screen saver and power saving" >> ~/.profile #echo "xset s off && xset -dpms" >> ~/.profile touch ~/.xsession echo "xset s off && xset -dpms" > ~/.xsession #add USB automount #git clone https://github.com/rbrito/usbmount #sudo apt install debhelper build-essential lockfile-progs #cd usbmount #dpkg-buildpackage -us -uc -b #cd ~ && sudo dpkg -i usbmount*.deb #create autologin for current user / deprecated? #if [ ! -e "/etc/lightdm/lightdm.conf" ]; then #echo "[SeatDefaults]" >> ~/lightdm.conf #echo "autologin-user=$USER" >> ~/lightdm.conf #echo "autologin-user-timeout=0" >> ~/lightdm.conf #echo "user-session=openbox" >> ~/lightdm.conf #sudo mv ~/lightdm.conf /etc/lightdm/ #fi #install pegasus fe / do this again from within retropie setup / experimental packages if scraped videos aren't working wget https://github.com/mmatyas/pegasus-frontend/releases/download/continuous/pegasus-frontend_0.15.12_amd64.deb sudo apt update sudo apt install ./pegasus-frontend*.deb # Start X as soon as autologin is complete function enable_autostart_xwindows { echo "--------------------------------------------------------------------------------" echo "| Enabling autostart of X Windows" echo "--------------------------------------------------------------------------------" # Create a .xsession file to launch OpenBox when startx is called echo 'exec openbox-session' >> ~/.xsession chown $USER:$USER ~/.xsession # Add startx to .bash_profile cat << EOF >> ~/.bash_profile if [[ -z \$DISPLAY ]] && [[ \$(tty) = /dev/tty1 ]]; then exec startx -- >/dev/null 2>&1 fi EOF chown $USER:$USER ~/.bash_profile echo -e "FINISHED enable_autostart_xwindows \n\n" sleep 2 } #remove password from user sudoers. #if grep -q "$USER ALL=(ALL) NOPASSWD:ALL" "/etc/sudoers"; then sudo sed -i -e '$a\$USER ALL=(ALL) NOPASSWD:ALL' /etc/sudoers #remove user from sudo sudo gpasswd -d $USER sudo #set up custom plymouth: cd ~ sudo apt-get install plymouth plymouth-themes plymouth-x11 -y git clone --depth=1 https://github.com/HerbFargus/plymouth-themes.git tempthemes sudo cp -r ~/tempthemes/. /usr/share/plymouth/themes/ rm -r -f tempthemes sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth 10 sudo update-alternatives --set default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth sudo update-initramfs -u sudo cp /etc/default/grub /etc/default/grub.backup sudo sed -i -e 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=2/g' /etc/default/grub sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="quiet splash"/g' /etc/default/grub sudo update-grub # Hide Openbox Windows and reduce visibility of terminal function hide_openbox_windows { echo "--------------------------------------------------------------------------------" echo "| Hiding window decorations in OpenBox" echo "--------------------------------------------------------------------------------" # Reduce the visibility of the gnome terminal by prepending these settings in the bash profile GNOME_TERMINAL_SETTINGS='dbus-launch gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/' cat << EOF >> ~/.bash_profile $GNOME_TERMINAL_SETTINGS use-theme-colors false $GNOME_TERMINAL_SETTINGS use-theme-transparency false $GNOME_TERMINAL_SETTINGS foreground-color '#FFFFFF' $GNOME_TERMINAL_SETTINGS background-color '#000000' $GNOME_TERMINAL_SETTINGS cursor-blink-mode 'off' $GNOME_TERMINAL_SETTINGS scrollbar-policy 'never' $GNOME_TERMINAL_SETTINGS audible-bell 'false' gsettings set org.gnome.Terminal.Legacy.Settings default-show-menubar false EOF chown $USER:$USER ~/.bash_profile # Further reduce the visibility of windows (terminal) by modifying the OpenBox config mkdir -p ~/.config/openbox cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml cat << EOF > /tmp/rc.xml.applications <application class="*"> <fullscreen>yes</fullscreen> <iconic>no</iconic> <layer>below</layer> <decor>no</decor> <maximized>true</maximized> </application> EOF sed -i '/<applications>/r /tmp/rc.xml.applications' ~/.config/openbox/rc.xml rm /tmp/rc.xml.applications sed -e 's/<keepBorder>yes<\/keepBorder>/<keepBorder>no<\/keepBorder>/g' -i ~/.config/openbox/rc.xml chown -R $USER:$USER ~/.config echo -e "FINISHED hide_openbox_xwindows \n\n" sleep 2 } # OpenBox autostarts unclutter, then passes off to the RetroPie autostart mkdir -p ~/.config/openbox echo 'unclutter -idle 0.01 -root' >> ~/.config/openbox/autostart echo '/opt/retropie/configs/all/autostart.sh' >> ~/.config/openbox/autostart chown -R $USER:$USER ~/.config # Create RetroPie autostart mkdir -p /opt/retropie/configs/all touch /opt/retropie/configs/all/autostart.sh chmod +x /opt/retropie/configs/all/autostart.sh chown -R $USER:$USER /opt/retropie/configs #create openbox autostart script for pegasus, which will start again if exited echo "#!/bin/bash" >> ~/pegasus.sh echo "while true; do" >> ~/pegasus.sh echo "pegasus-fe" >> ~/pegasus.sh echo "done" >> ~/pegasus.sh chmod +x ~/pegasus.sh echo 'gnome-terminal --full-screen --hide-menubar -- ~/pegasus.sh' >> /opt/retropie/configs/all/autostart.sh #install kodi with rar support, user interaction required echo Installing Kodi (with RAR support), please wait sudo add-apt-repository ppa:team-xbmc/ppa sudo apt-get update sudo apt-get install kodi kodi-vfs-rar mkdir ~/RetroPie/roms/ports echo "kodi-standalone" >> ~/RetroPie/roms/ports/Kodi.sh chmod +x ~/RetroPie/roms/ports/Kodi.sh #install Steam echo Installing Steam, please wait sudo apt-get install steam echo "steam" >> ~/RetroPie/roms/ports/Steam.sh chmod +x ~/RetroPie/roms/ports/Steam.sh #installing requirements for Overcooked2 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get upgrade libstdc++6 #change audio to hdmi pulseaudio sudo sed -i -e 's/set-default-sink output/set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/g' /etc/pulse/default.pa #tips for retroarch echo "dont forget to edit retroarch with start pressed for 2 secs to enter menu" echo "" #tips on getting audio to work check https://wiki.archlinux.org/index.php/PulseAudio/Examples for more info echo "do pacmd list-sinks | grep -e 'name:' -e 'index:'" echo "and ucomment the last line and set something like set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1" echo "" echo ALL DONE!
Admittedly that still contains the Pegasus section but there was stuff before that which needed to be fixed, such as ~/.xsession file not existing and causing issues. Would appreciate you taking a look at the above and advising accordingly. I'm prepared to do another install (dear God why me?) just because I really do want this to work.
Could I suggest that you add a section for this fix to make things 'just work' like they would under LibreELEC? The current versions of Ubuntu will have issues for most people's remotes otherwise. It's a small papercut but still matters. Possibly a good idea to enable oibaf's ppa for updated graphics as well, which requires enabling the PPA functionality via this first. Also it might be desirable to add a tweaked kernel such as Liquorix for better performance? Just asking because the way the script seems to read for me indicates there will not be a way to upgrade the system afterwards because the user accounts will be gone. Am I reading that right?
Also since the script seems to be pulling in a lot of stuff from Gnome and the intention seems to be to use OpenBox, I was wondering if it might make sense to start with something like Ubuntu-Mate, minimal install and then install what is needed in the script then once everything is there run a bunch of removals to keep the system as minimal as possible. Forgive me for the avalanche of comments, I've been thinking about this almost nonstop for two weeks now, and I'm bursting with ideas and comments.
Off to reinstall the minimal command line system for the script so I can try again...thanks for the reply.
EDIT: Script is running now. Yes, yes it does take me this long just to install the base system and get the script over there ready to use.
-
OK, it still died at the same place. I'm going to remove that section with Pegasus-FE as directed. I can always install it manually if needed.
Would like to note two things. One that there is something in line #17 that seems to be pulling in the Gnome Desktop for some reason. Also that something involved in the process here results in a boot to LightDM if the desktop is restarted and what seems to me a very minimal Gnome Desktop but when I attempt to connect to the wifi I am unable to see anything listed. Not sure where it is breaking here or what it is that is breaking.
Going to reinstall the base command line system, copy over your revised script and try again....
Hey before I go ahead and retry, is there a reason that the automount USB and the autologin sections are completely commented out?
Next attempt started...wish me luck.
-
And this is what we have using your updated script with no edits.
In the version that I was troubleshooting we ended up removing those () expressions since they tended to cause syntax errors.
Reinstalling the base system again for another go as soon as you can provide an updated script to work with.
EDIT: Base system has been installed, I just need a new script to follow.
-
And this is what we have using your updated script with no edits.
In the version that I was troubleshooting we ended up removing those () expressions since they tended to cause syntax errors.
Reinstalling the base system again for another go as soon as you can provide an updated script to work with.
EDIT: Base system has been installed, I just need a new script to follow.
I'm currently away, but as soon as I can I will create a virtual machine and try the script again and see where it fails and update accordingly. You can however try the other script (not written by me) if you're eager to try it out.
-
I'd much rather wait for you, I barely know what I am seeing when I look at the script and the 'other' script was just troubleshooting what you had posted. I assume that you know your own script best and since you had had success with this before I'd rather wait for you to be able to read it over and post corrections.
-
I'd much rather wait for you, I barely know what I am seeing when I look at the script and the 'other' script was just troubleshooting what you had posted. I assume that you know your own script best and since you had had success with this before I'd rather wait for you to be able to read it over and post corrections.
It took awhile but here it is, partially rewritten and tested on a VM just now and boots into Pegasus-FE afterwards (I installed it through the RetroPie-Setup script (from experimental packages). I also added the lirc stuff and the graphics drivers part, haven't tested that though so might not auto-install.
Code
Display More#! /bin/bash #this setup script is brought to you by Northbane (c) 2021 #it is known to be very crude and simple #IMPORTANT: only run it once! or it will most likely fubar your os #Remember to install PegasusFE from RetroPie Setup experimental packages #need to install deps for RetroPie and PegasusFE sudo apt install menu python-xdg at-spi2-core pulseaudio alsa-utils libglib2.0-bin dbus-x11 triggerhappy git dialog unzip xmlstarlet x11-xserver-utils gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-good jq policykit-1 curl xdg-utils wpasupplicant -y #installing drivers if needed + openbox & lightdm sudo apt install ubuntu-drivers-common software-properties-common curl lightdm openbox -y sudo add-apt-repository ppa:oibaf/graphics-drivers -y #check https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers for more info sudo apt-get update #sudo ubuntu-drivers autoinstall -y #uncomment the above line if you need other drivers and comment the oibaf repo #manually install basic package in RetroPie or it wont work and PegasusFE from exp packages cd ~ git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git cd RetroPie-Setup sudo ./retropie_setup.sh #enable lirc in Ubuntu 18.04 sudo apt purge ir-keytable lirc sudo sed -i '1 i\deb http://de.archive.ubuntu.com/ubuntu/ xenial universe' /etc/apt/sources.list sudo apt update sudo apt install lirc/xenial -y sudo apt-mark hold lirc #remove deb http://de.archive.ubuntu.com/ubuntu/ xenial universe from /etc/apt/sources.list echo "remove first line in sources.list" sudo nano /etc/apt/sources.list sudo apt update #disabling power saving mode #echo "#turn off screen saver and power saving" >> ~/.profile #echo "xset s off && xset -dpms" >> ~/.profile echo "1 i\xset s off && xset -dpms" > ~/.xsession #set up custom plymouth: cd ~ sudo apt-get install plymouth plymouth-themes plymouth-x11 -y git clone --depth=1 https://github.com/HerbFargus/plymouth-themes.git tempthemes sudo cp -r ~/tempthemes/. /usr/share/plymouth/themes/ rm -r -f tempthemes sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth 10 sudo update-alternatives --set default.plymouth /usr/share/plymouth/themes/retropie-pacman/retropie-pacman.plymouth sudo update-initramfs -u sudo cp /etc/default/grub /etc/default/grub.backup sudo sed -i -e 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=2/g' /etc/default/grub sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="quiet splash"/g' /etc/default/grub sudo update-grub #sensitive stuff below could possibly break your system if ran more than once #create autologin for current user / deprecated? if [ ! -e "/etc/lightdm/lightdm.conf" ]; then echo "[SeatDefaults]" >> ~/lightdm.conf echo "autologin-user=$USER" >> ~/lightdm.conf echo "autologin-user-timeout=0" >> ~/lightdm.conf echo "user-session=openbox" >> ~/lightdm.conf sudo mv ~/lightdm.conf /etc/lightdm/ fi #remove password from user sudoers. sudo sed -i -e '$a\$USER ALL=(ALL) NOPASSWD:ALL' /etc/sudoers # OpenBox autostarts unclutter, then passes off to the RetroPie autostart mkdir -p ~/.config/openbox echo 'unclutter -idle 0.01 -root' >> ~/.config/openbox/autostart echo '/opt/retropie/configs/all/autostart.sh' >> ~/.config/openbox/autostart chown -R $USER:$USER ~/.config # Create RetroPie autostart mkdir -p /opt/retropie/configs/all touch /opt/retropie/configs/all/autostart.sh chmod +x /opt/retropie/configs/all/autostart.sh chown -R $USER:$USER /opt/retropie/configs #create openbox autostart script for pegasus, which will start again if exited echo "#!/bin/bash" >> ~/pegasus.sh echo "while true; do" >> ~/pegasus.sh echo "pegasus-fe" >> ~/pegasus.sh echo "done" >> ~/pegasus.sh chmod +x ~/pegasus.sh echo 'gnome-terminal --full-screen --hide-menubar -- ~/pegasus.sh' >> /opt/retropie/configs/all/autostart.sh #install kodi with rar support, user interaction required echo Installing Kodi with RAR support, please wait sudo add-apt-repository ppa:team-xbmc/ppa sudo apt-get update sudo apt-get install kodi kodi-vfs-rar -y mkdir ~/RetroPie/roms/ports touch ~/RetroPie/roms/ports/Kodi.sh echo "kodi-standalone" >> ~/RetroPie/roms/ports/Kodi.sh chmod +x ~/RetroPie/roms/ports/Kodi.sh #install Steam echo Installing Steam, please wait sudo apt-get install steam -y touch ~/RetroPie/roms/ports/Steam.sh echo "steam" >> ~/RetroPie/roms/ports/Steam.sh chmod +x ~/RetroPie/roms/ports/Steam.sh {~7 #installing requirements for Overcooked2 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get upgrade libstdc++6 -y #change audio to hdmi pulseaudio sudo sed -i -e 's/set-default-sink output/set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/g' /etc/pulse/default.pa #tips for retroarch echo "dont forget to edit retroarch with start pressed for 2 secs to enter menu" echo "" #tips on getting audio to work check https://wiki.archlinux.org/index.php/PulseAudio/Examples for more info echo "do pacmd list-sinks | grep -e 'name:' -e 'index:'" echo "check etc pulse default.pa" echo "and ucomment the last line and set something like set-default-sink output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1" echo "" echo "All Done!"
If you (or anyone else) have any suggestions, feel free to comment
-
It took awhile but here it is, partially rewritten and tested on a VM just now and boots into Pegasus-FE afterwards (I installed it through the RetroPie-Setup script (from experimental packages). I also added the lirc stuff and the graphics drivers part, haven't tested that though so might not auto-install.
If you (or anyone else) have any suggestions, feel free to comment
Looks good, I'll be giving it a try in a few minutes. One quick question before I do, is there any way to send the output of the actions or a log to someplace online so you can get them?
-
Looks good, I'll be giving it a try in a few minutes. One quick question before I do, is there any way to send the output of the actions or a log to someplace online so you can get them?
As far as I know, no. But paste it in a pastebin entry or similar where the lines will be seen so it'll be easier to know where it fails, if it does.
-
As far as I know, no. But paste it in a pastebin entry or similar where the lines will be seen so it'll be easier to know where it fails, if it does.
So far things are going pretty well as far as I can see. I'm at the point where it is compiling retropie. Working its way through Mupen64plus at the moment. Hoping this time we get the end and everything works.
Quick question: I've been assuming that the display manager you prefer is lightdm so when I get a message asking me to choose between lightdm and GDM3, I've been selecting for lightdm every time. Was this a correct assumption to be making?
-
So far things are going pretty well as far as I can see. I'm at the point where it is compiling retropie. Working its way through Mupen64plus at the moment. Hoping this time we get the end and everything works.
Quick question: I've been assuming that the display manager you prefer is lightdm so when I get a message asking me to choose between lightdm and GDM3, I've been selecting for lightdm every time. Was this a correct assumption to be making?
Most likely will, but of course I hope so too
Yes, that's the one I use. I install Ubuntu 18.04 minimal so I don't have any other display manager. Did you install a different one? -
Most likely will, but of course I hope so too
Yes, that's the one I use. I install Ubuntu 18.04 minimal so I don't have any other display manager. Did you install a different one?Yes, I'm using the minimal from 20.04 but I was getting these same errors and dialog in both versions. Have an update on the progress...
There is an error around line 32/33. It dumps the user in nano but doesn't actually do anything. I navigated to the top and hit CTRL+K to remove the first line. Not sure if I was at the end of the file because I navigated there previously under the expectation it would be the last line (that's how I add it myself when doing those steps for my Ubuntu installs) but for someone not familiar with things this would be puzzling. After I removed the line, saved the file and exited nano the script resumed as expected. So far, so good...
...and it's done. I guess I do a sudo reboot and see what happens!
EDIT: Restarting got me a nice Plymouth screen for a bit and then dumped me at terminal with the message that my drive was clean. Switching to terminal one gave me login, so I went ahead and entered my credentials....and still nothing. Starting to suspect something broke but I don't know what. I'm sitting at terminal with my account logged in. Was something supposed to start Pegasus-FE? Should I type 'startx' or something else?
-