added contrib repo to apt and installed libdvd-pkg (debian)
This commit is contained in:
parent
c14e55eb1a
commit
6aa6f754da
@ -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,6 +16,7 @@ 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 audacious"
|
||||
## 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 ------------------------------------------------------------------------------
|
||||
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"
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user