First draft. :-)
This commit is contained in:
parent
815a339bdf
commit
36c01f7fb3
1 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue