This commit is contained in:
Dirk Alders 2025-08-06 09:08:58 +02:00
commit 586a52a26b

View File

@ -1,7 +1,8 @@
#!/bin/sh
#!/bin/bash
#
#
# Sources file (will be changed)
SOURCES_FILE="/etc/apt/sources.list"
# Additional Packages
COMMON=""
COMMON="$COMMON htop keepassxc vim-nox" # systemd-sysv
@ -15,13 +16,16 @@ COMMON="$COMMON nextcloud-desktop dolphin-nextcloud"
## COMMON="$COMMON fonts-powerline powerline powerline-gitstatus"
MULTIMEDIA=""
MULTIMEDIA="$MULTIMEDIA libavcodec-extra libdvd-pkg"
MULTIMEDIA="$MULTIMEDIA rhythmbox ario kodi kodi-pvr-hts"
## MULTIMEDIA="$MULTIMEDIA lame"
## MULTIMEDIA="$MULTIMEDIA qjackctl carla carla-lv2 carla-vst ardour calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs lame"
MULTIMEDIA="$MULTIMEDIA audacious"
## MULTIMEDIA="$MULTIMEDIA qjackctl carla carla-lv2 carla-vst ardour calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs"
TOOLS=""
TOOLS="$TOOLS cd-discid libdiscid0 cdparanoia lame" # for pyrip
TOOLS="$TOOLS wavemon retext" # gnuplot
TOOLS="evolution gnuplot latexmk texlive-latex-recommended texlive-latex-extra texlive-lang-german texlive-plain-generic texlive-fonts-recommended"
TOOLS="$TOOLS tigervnc-viewer"
TOOLS="$TOOLS evolution gnuplot latexmk texlive-latex-recommended texlive-latex-extra texlive-lang-german texlive-plain-generic texlive-fonts-recommended"
PROGRAMMING=""
PROGRAMMING="$PROGRAMMING python-is-python3 python3-venv python3-wxgtk4.0 jq meld"
@ -39,15 +43,23 @@ read -r -p "Are you sure? [y/N] " response
echo ------------------------------------------------------------------------------
case "$response" in
[yY][eE][sS]|[yY])
echo "Adding contrib repository for libdvd-pkg"
echo ------------------------------------------------------------------------------
if [[ ! -e $SOURCES_FILE.orig ]]; then
su --command="cp $SOURCES_FILE $SOURCES_FILE.orig"
fi
su --command="sed -i.bak '/^deb.*trixie.* main / { /trixie.* main contrib /! s/main /main contrib / }' $SOURCES_FILE"
echo ------------------------------------------------------------------------------
echo "Adding Microsoft repository for code"
echo ------------------------------------------------------------------------------
su --command="apt install curl"
su --command="curl -sSL https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/keyrings/microsoft.gpg > /dev/null"
su --command="echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main' > /etc/apt/sources.list.d/vscode.list"
su --command="apt update"
echo ------------------------------------------------------------------------------
echo Installing $ALL
echo ------------------------------------------------------------------------------
su --command="apt update"
su --command="apt-get install -y $ALL"
;;
*)