2024-10-10 13:49:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
sudo apt update
|
|
|
|
sudo apt upgrade -y
|
|
|
|
sudo apt install -y chicken-bin libchicken-dev libchicken11 \
|
|
|
|
libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev \
|
2024-10-21 14:18:08 +00:00
|
|
|
flatpak xdg-desktop-portal vim unclutter \
|
|
|
|
qemu-user-static
|
2024-10-10 13:49:40 +00:00
|
|
|
|
|
|
|
sudo systemctl enable bluetooth
|
|
|
|
blueman-tray &
|
|
|
|
|
|
|
|
sudo mkdir -p /etc/systemd/dnssd
|
|
|
|
cat << EOF > kodi.dnssd
|
|
|
|
[Service]
|
|
|
|
Name=%H
|
|
|
|
Type=_http._tcp
|
|
|
|
SubType=_kodi
|
|
|
|
Port=8080
|
|
|
|
EOF
|
|
|
|
sudo mv kodi.dnssd /etc/systemd/dnssd/
|
|
|
|
sudo systemctl restart systemd-resolved.service
|
|
|
|
|
2024-10-21 14:18:08 +00:00
|
|
|
flatpak remote-add -u --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
2024-10-10 13:49:40 +00:00
|
|
|
for FPAK in tv.kodi.Kodi org.libretro.RetroArch
|
|
|
|
do
|
2024-10-21 14:18:08 +00:00
|
|
|
flatpak install -u -y $FPAK
|
2024-10-10 13:49:40 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
cat <<EOF > led_off.sh
|
|
|
|
#!/bin/sh
|
|
|
|
echo none | sudo tee /sys/class/leds/blue_led/trigger
|
|
|
|
echo none | sudo tee /sys/class/leds/green_led/trigger
|
|
|
|
EOF
|
|
|
|
chmod +x led_off.sh
|
|
|
|
|
|
|
|
cat <<EOF > "${HOME}/.config/autostart/led_off.desktop"
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
|
|
|
Name=led_off
|
|
|
|
Exec=${HOME}/led_off.sh
|
|
|
|
X-GNOME-Autostart-enabled=true
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<EOF > "${HOME}/.config/autostart/menu.desktop"
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
|
|
|
Name=menu
|
|
|
|
Exec=${HOME}/ecmenu/menu
|
|
|
|
X-GNOME-Autostart-enabled=true
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<EOF > "${HOME}/.config/autostart/unclutter.desktop"
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
|
|
|
Name=unclutter
|
|
|
|
Exec=unclutter
|
|
|
|
X-GNOME-Autostart-enabled=true
|
|
|
|
EOF
|
|
|
|
|
2024-10-21 14:18:08 +00:00
|
|
|
### Steam Link
|
|
|
|
flatpak --arch=x86_64 -u install com.valvesoftware.SteamLink
|
|
|
|
|
|
|
|
### Stremio
|
|
|
|
# See https://github.com/Stremio/stremio-shell/blob/master/DEBIAN.md
|
|
|
|
|
|
|
|
sudo apt install qtcreator qt5-qmake g++ pkgconf libssl-dev librsvg2-bin \
|
|
|
|
libkf5webengineviewer-dev libqt5opengl5-dev \
|
|
|
|
libmpv-dev
|
|
|
|
git clone --depth=1 --recurse-submodules -j8 https://github.com/Stremio/stremio-shell.git
|
|
|
|
cd stremio-shell
|
|
|
|
qmake
|
|
|
|
make -f release.makefile
|
|
|
|
|
|
|
|
### Menu
|
|
|
|
|
2024-10-10 13:49:40 +00:00
|
|
|
git clone https://forgejo.lyrion.ch/zilti/ecmenu.git
|
|
|
|
cd ecmenu
|
|
|
|
./update
|