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:
#! /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!
Display More
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.