diff --git a/configure-gallium.sh b/configure-gallium.sh index 68f3811..6bc93ce 100644 --- a/configure-gallium.sh +++ b/configure-gallium.sh @@ -30,16 +30,22 @@ function configureMachine() { apt-get -y install flatpak flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak install -y flathub com.moonlight_stream.Moonlight - flatpak run com.moonlight_stream.Moonlight quit # This generates the ~/.var/ structure for the config. - + # Configure Moonlight keys. + flatpak run com.moonlight_stream.Moonlight quit # This generates the ~/.var/ structure for the config. + wget https://forge.duensing.digital/Duensing_Digital/chromebook-linux/raw/branch/master/Moonlight.conf + chown ${SUDO_USER}:${SUDO_USER} Moonlight.conf + mv Moonlight.conf "/home/${SUDO_USER}/.var/app/com.moonlight_stream.Moonlight/config/Moonlight Game Streaming Project/." # Make Moonlight run on startup. - :<<-BLARGH + echo "flatpak run com.moonlight_stream.Moonlight" > /home/${SUDO_USER}/moonlight.sh + chown ${SUDO_USER}:${SUDO_USER} /home/${SUDO_USER}/moonlight.sh + chmod +x /home/${SUDO_USER}/moonlight.sh + cat <<- STARTUP >> .profile if [ -z "$SSH_CLIENT" ] ; then - ... + ./moonlight.sh fi - BLARGH + STARTUP # Reboot! reboot