From f1743ea11b5113a84850f47004ca5842525b85ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20K=C3=B6pferl?= Date: Sun, 2 May 2021 20:27:33 +0200 Subject: [PATCH] Mint-Skript ebenfalls mit oem-config ausgestattet und apt-proxy verwenden, falls da --- mint/linux_mint.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/mint/linux_mint.sh b/mint/linux_mint.sh index dd904ff..f1823d5 100755 --- a/mint/linux_mint.sh +++ b/mint/linux_mint.sh @@ -18,6 +18,7 @@ packages=( gimp inkscape pinta + krita # Office libreoffice @@ -26,7 +27,7 @@ packages=( keepassxc # Games - 0ad + #0ad beneath-a-steel-sky billard-gl blobby @@ -59,6 +60,7 @@ packages=( # System management gparted + oem-config # Tools f3 @@ -167,6 +169,18 @@ echo "\ " e "Starte initiales Setup für Rechner mit frisch installiertem '${script_distro}' …" +# apt proxy benutzen (bedingt = wenn da) +ping -c 1 apt-proxy +if [ "$?" -eq "0" ]; then + echo 'Acquire::https::Proxy "http://apt-proxy:3142";' > /etc/apt/apt.conf.d/01aptproxy + echo 'Acquire::http::Proxy "http://apt-proxy:3142";' >> /etc/apt/apt.conf.d/01aptproxy + e "Proxy Apt-Aktiv" +else + e "Kein Apt-Proxy" +fi +echo 'Dpkg::Options "--force-unsafe-io";' >> /etc/apt/apt.conf.d/01aptproxy + + ### # Automatic installation ### @@ -230,4 +244,8 @@ dconf update ### # Finalisation ### +e "Apt proxy wieder entfernen..." +rm /etc/apt/apt.conf.d/01aptproxy + e "Initiales Setup beendet." +oem-config-prepare