From 36c01f7fb39bbaadce9d647baf1e6e0ab4f9221a Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Fri, 2 May 2025 14:03:21 -0500 Subject: [PATCH] First draft. :-) --- configure-gallium.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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