added contrib repo to apt and installed libdvd-pkg (debian)

This commit is contained in:
Dirk Alders 2025-08-05 09:28:23 +02:00
parent c14e55eb1a
commit 6aa6f754da

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/bash
# #
# # Sources file (will be changed)
SOURCES_FILE="/etc/apt/sources.list"
# Additional Packages # Additional Packages
COMMON="" COMMON=""
COMMON="$COMMON htop keepassxc vim-nox" # systemd-sysv COMMON="$COMMON htop keepassxc vim-nox" # systemd-sysv
@ -15,6 +16,7 @@ COMMON="$COMMON nextcloud-desktop dolphin-nextcloud"
## COMMON="$COMMON fonts-powerline powerline powerline-gitstatus" ## COMMON="$COMMON fonts-powerline powerline powerline-gitstatus"
MULTIMEDIA="" MULTIMEDIA=""
MULTIMEDIA="$MULTIMEDIA libavcodec-extra libdvd-pkg"
MULTIMEDIA="$MULTIMEDIA rhythmbox ario kodi kodi-pvr-hts" MULTIMEDIA="$MULTIMEDIA rhythmbox ario kodi kodi-pvr-hts"
MULTIMEDIA="$MULTIMEDIA audacious" MULTIMEDIA="$MULTIMEDIA audacious"
## MULTIMEDIA="$MULTIMEDIA qjackctl carla carla-lv2 carla-vst ardour calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs" ## MULTIMEDIA="$MULTIMEDIA qjackctl carla carla-lv2 carla-vst ardour calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs"
@ -41,15 +43,23 @@ read -r -p "Are you sure? [y/N] " response
echo ------------------------------------------------------------------------------ echo ------------------------------------------------------------------------------
case "$response" in case "$response" in
[yY][eE][sS]|[yY]) [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 "Adding Microsoft repository for code"
echo ------------------------------------------------------------------------------ echo ------------------------------------------------------------------------------
su --command="apt install curl" 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="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="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 ------------------------------------------------------------------------------
echo Installing $ALL echo Installing $ALL
echo ------------------------------------------------------------------------------ echo ------------------------------------------------------------------------------
su --command="apt update"
su --command="apt-get install -y $ALL" su --command="apt-get install -y $ALL"
;; ;;
*) *)