First draft. :-)

This commit is contained in:
Scott Duensing 2025-05-02 14:03:21 -05:00
parent 815a339bdf
commit 36c01f7fb3

View file

@ -30,16 +30,22 @@ function configureMachine() {
apt-get -y install flatpak apt-get -y install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub com.moonlight_stream.Moonlight 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. # 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. # 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 if [ -z "$SSH_CLIENT" ] ; then
... ./moonlight.sh
fi fi
BLARGH STARTUP
# Reboot! # Reboot!
reboot reboot