forked from lxcafe/lxcafe
added test infrastructure based on docker/podman
* documentation added * scripts to setup image and start container added
This commit is contained in:
@@ -0,0 +1,236 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# "Anderungs Historie
|
||||
# Datum Version Name Änderung
|
||||
# 2025-11-11 v6 MartinP mehr Erläuterungen reingeschrieben
|
||||
# 2025-11-17 v7 Mark Simualtion Modus und 32Bit abfrage entfernt
|
||||
# 2025-12-12 v8 MartinP Erläuterungen ergänzt und Typos entfernt
|
||||
#
|
||||
|
||||
bIsVlcInstalled=false
|
||||
|
||||
# Prompt helper: ask a question and return 0 (yes) for j/J/ja/y/Y, non-zero otherwise
|
||||
question_answered_with_yes() {
|
||||
local prompt="$1"
|
||||
local ans
|
||||
# -r prevents backslash escapes being interpreted; -p prints the prompt
|
||||
read -rp "$prompt [j/N]: " ans
|
||||
case "$ans" in
|
||||
j|J|ja|y|Y) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
echo "
|
||||
###################################
|
||||
#### Nachinstallationsarbeiten ####
|
||||
###################################
|
||||
|
||||
#### Was tut dieses Skript? ####
|
||||
|
||||
# Vorausgesetzt wird eine Installation von Linux Mint XFCE.
|
||||
# Das Skript bietet -teilweise interaktiv- die Installation von zusätzlichen Programmen an, die Linux Mint XFCE nicht standardmässig mitbringt.
|
||||
#
|
||||
# Zu Beginn werden -ohne weitere Rückfrage- die folgenden zusätzlichen Programme installiert:
|
||||
#
|
||||
# xfce4-goodies (zusätzliche Elemente für die Taskleiste)
|
||||
# xfce4-panel-profiles (Tool für die Taskleistenbearbeitung)
|
||||
# clementine (Audioplayer und Musikbibliothekverwaltung)
|
||||
# vlc (weltbester Mediaplayer ;-))
|
||||
# htop (Systemmonitortool)
|
||||
# hardinfo (Übersicht der Systemeigenschaften)
|
||||
# font-manager (Schriftarten verwalten)
|
||||
# asunder (Audio-CDs in z.B. mp3-Dateien verwandeln (rippen))
|
||||
# gtkhash (Prüfsummen von Dateien erstellen und überprüfen)
|
||||
|
||||
|
||||
# Danach geht es interaktiv weiter.
|
||||
"
|
||||
#
|
||||
#
|
||||
#
|
||||
sudo apt-get update
|
||||
|
||||
sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S')
|
||||
|
||||
|
||||
echo
|
||||
if question_answered_with_yes $'#### 64 bit Mint XFCE ; Zusatzprogramme ####\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "#### 64 bit Mint XFCE ####"
|
||||
sudo apt -y install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash xfce4-panel-profiles
|
||||
bIsVlcInstalled=true
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo
|
||||
echo
|
||||
echo "#### nur auf Wunsch / bei Bedarf ####"
|
||||
echo
|
||||
### Sensoren ###
|
||||
if question_answered_with_yes $' ### Sensoren ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### Sensoren ###"
|
||||
sudo apt install lm-sensors psensor
|
||||
sudo sensors-detect
|
||||
sudo service kmod start
|
||||
echo "## im Anschluss \"psensor\" konfigurieren im XFCE-Applet in der Taskleiste"
|
||||
fi
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
if [ "$bIsVlcInstalled" = true ]; then
|
||||
echo "### Kauf-DVDs abspielen ###"
|
||||
if question_answered_with_yes $' ### Film DVDs ###\n\tGeben Sie j oder n ein und die Eingabetaste,\n\tAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### Kauf-DVDs abspielen ###"
|
||||
sudo apt install libdvd-pkg
|
||||
sudo dpkg-reconfigure libdvd-pkg
|
||||
fi
|
||||
else
|
||||
echo "Player Fehlt
|
||||
## VLC muss installiert sein um Kauf-DVDs abspielen zu können"
|
||||
fi
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "### Schriften, falls Microsoft-Office-Dokumente weiterverwendet werden sollen oder Dokumentenaustausch mit Microsoft-Nutzern gewünscht ist ###
|
||||
## frei verfügbare, alte Microsoft-Standardschriften installieren:"
|
||||
|
||||
if question_answered_with_yes $' ### M$ Schriften ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### M$ Schriften ###"
|
||||
sudo apt install ttf-mscorefonts-installer
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo " ## freie Google-Schriften als Ersatz für aktuelle MS-Standardschriften installieren:"
|
||||
if question_answered_with_yes $' ### Google Schriften ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo
|
||||
echo "### Google Schriften ###"
|
||||
|
||||
_gf="google-fonts"
|
||||
fGoogleSchriften=./$_gf".tar.gz"
|
||||
if [ ! -f "$fGoogleSchriften" ]; then
|
||||
echo ""
|
||||
echo "$fGoogleSchriften nicht gefunden."
|
||||
echo " soll das Archiv "google-fonts.tar.gz" von Github heruntergeladen werden? Es ist ca. 1,4GB gross! "
|
||||
if question_answered_with_yes $' ### Download Google Schriften ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
_wgeturl="https://github.com/google/fonts/archive/main.tar.gz"
|
||||
echo "Connecting to Github server to download fonts..."
|
||||
wget "$_wgeturl" -O "$_gf.tar.gz"
|
||||
fi
|
||||
fi
|
||||
if [ -f "$fGoogleSchriften" ]; then
|
||||
echo
|
||||
echo "Extracting the downloaded archive..."
|
||||
tar -zxvf "$_gf.tar.gz"
|
||||
echo "Creating the /usr/share/fonts/truetype/$_gf folder"
|
||||
sudo mkdir -p /usr/share/fonts/truetype/$_gf
|
||||
echo "Installing all .ttf fonts in /usr/share/fonts/truetype/$_gf"
|
||||
find "$PWD/fonts-main/" -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || echo "An error occured, please run this script again."
|
||||
echo "Updating the font cache"
|
||||
fc-cache -f
|
||||
echo "Done. Now you can delete the tarball file $_gf.tar.gz if you wish."
|
||||
|
||||
echo "Temporärer Fontordner wird gelöscht"
|
||||
rm -r fonts-main
|
||||
echo "Google-Schriften sind installiert. Die Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office muss manuell erfolgen, falls gewünscht."
|
||||
else
|
||||
echo "Schriften Fehlen immer noch. Manuell herunterladen und installieren"
|
||||
fi
|
||||
|
||||
fi
|
||||
#
|
||||
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "#### Chromium Browser installieren:"
|
||||
if question_answered_with_yes $' ### Chromium ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### Chromium ###"
|
||||
sudo apt install chromium-browser
|
||||
sudo apt install chromium
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "#### Vivaldi Browser installieren:"
|
||||
if question_answered_with_yes $' ### Vivaldi ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### ###"
|
||||
echo "## nötige Zusatzpakete installieren"
|
||||
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y
|
||||
#
|
||||
echo "## ## key importieren"
|
||||
curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/vivaldi.gpg > /dev/null
|
||||
#
|
||||
echo "## ## Repository hinzufügen"
|
||||
echo deb [arch=amd64,armhf signed-by=/usr/share/keyrings/vivaldi.gpg] https://repo.vivaldi.com/stable/deb/ stable main | sudo tee /etc/apt/sources.list.d/vivaldi.list
|
||||
#
|
||||
sudo apt update && sudo apt install vivaldi-stable
|
||||
#
|
||||
echo "## ## Gnome-Schlüsselbund-Fehlermeldung bei jedem Start von Chrome/Chromium beheben: Starter bzw. .desktop-Datei mit folgendem Parameter ergänzen: "
|
||||
echo "## ## --password-store=basic"
|
||||
#
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "####Signal für Desktop (die Nutzung setzt eine Signal-Installation auf einem Android- Oder Apple-Gerät voraus!)#### "
|
||||
if question_answered_with_yes $' ### Signal ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### ###"
|
||||
echo "## zusätzliches Repository nötig!
|
||||
## NOTE: These instructions only work for 64-bit Debian-based
|
||||
## Linux distributions such as Ubuntu, Mint etc.
|
||||
## key importieren
|
||||
"
|
||||
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
|
||||
cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
|
||||
#
|
||||
echo "## Repository hinzufügen:"
|
||||
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee /etc/apt/sources.list.d/signal-xenial.list
|
||||
sudo apt update && sudo apt install signal-desktop
|
||||
#
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "### Anpassung der Panel-Konfiguration / Taskleiste #### "
|
||||
echo "### SystemMonitor, ArbeitsflächenAnzeige #### "
|
||||
echo
|
||||
echo "Achtung! Es kann vorkommen, dass die Taskleiste nach diesem Schritt verschwunden ist."
|
||||
echo "Ein Abmelden und Wiederanmelden des Benutzers oder ein Reboot behebt das Problem."
|
||||
echo
|
||||
if question_answered_with_yes $' ### Panel ###\nGeben Sie j oder n ein und die Eingabetaste,\nAbbruch mit jeder anderen Taste ...'; then
|
||||
echo "### ###"
|
||||
echo "## Austausch der Panel-Konfigurationsdatei:"
|
||||
xfce4-panel-profiles load current-config.tar.bz2
|
||||
fi
|
||||
echo
|
||||
echo "###############################"
|
||||
echo "######### Skript ENDE #########"
|
||||
echo "###############################"
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
echo "Verbleibende manuelle Schritte:"
|
||||
echo
|
||||
echo "### Taskleiste ###: XFCE-Applets für 2x Netzwerkmonitor (LAN + WLAN) konfigurieren"
|
||||
echo
|
||||
echo "Wenn ### Sensoren ### installiert wurden: psensor konfigurieren im XFCE-Applet in der Taskleiste, falls gewünscht."
|
||||
echo
|
||||
echo "Wenn ### Google-Schriften ### installiert wurden: Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office, falls gewünscht."
|
||||
echo
|
||||
echo
|
||||
if question_answered_with_yes $' ### Um dieses Fenster zu schliessen, "Enter" drücken ###'; then
|
||||
exit 0
|
||||
fi
|
||||
@@ -0,0 +1,380 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
cMode="KeineSimulation"
|
||||
cMode="simulation"
|
||||
bIsVlcInstalled=false
|
||||
|
||||
|
||||
echo "
|
||||
###################################
|
||||
#### Nachinstallationsarbeiten ####
|
||||
###################################
|
||||
"
|
||||
#
|
||||
#
|
||||
#
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo " simulation sudo apt-get update"
|
||||
else
|
||||
sudo apt-get update
|
||||
fi
|
||||
|
||||
sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S')
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "A) #### 64 bit Mint XFCE ####"
|
||||
echo "B) #### 32 bit Debian XFCE ####"
|
||||
echo "q) Quit. Abbruch"
|
||||
echo "sonst <enter> zum überspringen."
|
||||
read -p "
|
||||
Geben Sie a oder b ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " option;
|
||||
case "$option" in
|
||||
[aAmM])
|
||||
echo "A) #### 64 bit Mint XFCE ####"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo "simulation
|
||||
sudo apt -y install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash pcmanfm
|
||||
";
|
||||
bIsVlcInstalled=true
|
||||
else
|
||||
sudo apt -y install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash pcmanfm
|
||||
bIsVlcInstalled=true
|
||||
fi
|
||||
;;
|
||||
[bBdD])
|
||||
echo "#### 32 bit Debian XFCE ####"
|
||||
echo "## sources list"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo "### Paketquellen eintragen:"
|
||||
echo " cp /etc/apt/sources.list /etc/apt/sources.list_" $sSuffixDate
|
||||
echo "simulation deb http://deb.debian.org/debian bookworm main contrib non-free > /etc/apt/sources.list"
|
||||
echo "simulation deb-src http://deb.debian.org/debian bookworm main contrib non-free >> /etc/apt/sources.list"
|
||||
echo "simulation deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free >> /etc/apt/sources.list"
|
||||
echo "simulation deb-src http://deb.debian.org/debian-security/ bookworm-security main contrib non-free >> /etc/apt/sources.list"
|
||||
echo "simulation deb http://deb.debian.org/debian bookworm-updates main contrib non-free >> /etc/apt/sources.list"
|
||||
echo "simulation deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free >> /etc/apt/sources.list"
|
||||
echo "### zusätzliche Standardprogramme installieren:"
|
||||
echo "simulation sudo apt install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash pcmanfm timeshift gnome-system-tools gnome-disk-utility inxi "
|
||||
bIsVlcInstalled=true
|
||||
echo " FIN #### 64 bit Mint XFCE ####"
|
||||
else
|
||||
echo "### Paketquellen eintragen:"
|
||||
cp /etc/apt/sources.list /etc/apt/sources.list_$sSuffixDate
|
||||
deb http://deb.debian.org/debian bookworm main contrib non-free > /etc/apt/sources.list
|
||||
deb-src http://deb.debian.org/debian bookworm main contrib non-free >> /etc/apt/sources.list
|
||||
deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free >> /etc/apt/sources.list
|
||||
deb-src http://deb.debian.org/debian-security/ bookworm-security main contrib non-free >> /etc/apt/sources.list
|
||||
deb http://deb.debian.org/debian bookworm-updates main contrib non-free >> /etc/apt/sources.list
|
||||
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free >> /etc/apt/sources.list
|
||||
echo "### zusätzliche Standardprogramme installieren:"
|
||||
sudo apt install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash pcmanfm timeshift gnome-system-tools gnome-disk-utility inxi
|
||||
bIsVlcInstalled=true
|
||||
echo " FIN #### 32 bit Debian XFCE ####"
|
||||
fi
|
||||
;;
|
||||
q) echo "Quit. Abbruch"
|
||||
exit
|
||||
;;
|
||||
*) echo "Unknown parameter"
|
||||
esac
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo "#### alle Systeme ####"
|
||||
#
|
||||
echo "### Taskleiste mit XFCE-Applets für Systemauslastung und 2x Netzwerkmonitor (LAN + WLAN) ergänzen und konfigurieren"
|
||||
echo " leider fehlt die automatisierung noch "
|
||||
echo " Manuelle Arbeit notwendig "
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
echo
|
||||
echo
|
||||
echo "#### nur auf Wunsch / bei Bedarf ####"
|
||||
#
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
### Sensoren ###
|
||||
# alle Abfragen können mit "ja" beantwortet werden!
|
||||
read -p " ### Sensoren ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo "### Sensoren ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo " simulation "
|
||||
echo " apt -y Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively."
|
||||
echo "simulation sudo apt -y install lm-sensors psensor"
|
||||
echo "simulation sudo sensors-detect"
|
||||
echo "# alle Abfragen können mit "ja" beantwortet werden!"
|
||||
echo "simulation sudo service kmod start"
|
||||
else
|
||||
sudo apt install lm-sensors psensor
|
||||
sudo sensors-detect
|
||||
echo "# alle Abfragen können mit "ja" beantwortet werden!"
|
||||
sudo service kmod start
|
||||
echo "## dann psensor konfigurieren im Applet in der Taskleiste"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
if $bIsVlcInstalled; then
|
||||
echo "### Kauf-DVDs abspielen ###"
|
||||
read -p " ### Film DVDs ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo "### Sensoren ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo " simulation "
|
||||
echo "simulation sudo service kmod start"
|
||||
echo " simulation sudo apt install libdvd-pkg"
|
||||
echo " simulationsudo dpkg-reconfigure libdvd-pkg"
|
||||
else
|
||||
sudo apt install libdvd-pkg
|
||||
sudo dpkg-reconfigure libdvd-pkg
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "Player Fehlt
|
||||
## vlc muss installiert sein! Zum Kauf-DVDs abspielen"
|
||||
fi
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "### Schriften, falls Microsoft-Office-Dokumente weiterverwendet werden sollen oder Dokumentenaustausch mit Microsoft-Nutzern gewünscht ist ###
|
||||
## frei verfügbare, alte Microsoft-Standardschriften installieren:"
|
||||
|
||||
read -p " ### M$ Schriften ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo "### M$ Schriften ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo "simulation
|
||||
sudo apt install ttf-mscorefonts-installer"
|
||||
else
|
||||
sudo apt install ttf-mscorefonts-installer
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo " ## freie Google-Schriften mit gleicher Laufweite wie aktuelle MS-Standardschriften installieren:"
|
||||
read -p " ### Google Schriften ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo
|
||||
echo "### Google Schriften ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
|
||||
_gf="google-fonts"
|
||||
fGoogleSchriften=./$_gf".tar.gz"
|
||||
if [ ! -f "$fGoogleSchriften" ]; then
|
||||
echo
|
||||
echo "$fGoogleSchriften nicht gefunden."
|
||||
echo " soll das Archiv "google-fonts.tar.gz" von Github runter geladen werden ca. 1GB gross! "
|
||||
read -p " ### Download Google Schriften ### j/n: " runterLaden;
|
||||
if [ $runterLaden == 'j' -o $runterLaden == 'J' -o $runterLaden == 'ja' -o $runterLaden == 'y' -o $runterLaden == 'Y' ]; then
|
||||
echo " Download Google Schriften ###"
|
||||
echo "simulation
|
||||
_wgeturl=https://github.com/google/fonts/archive/main.tar.gz
|
||||
_gf=google-fonts
|
||||
o Connecting to Github server to download fonts...
|
||||
wget $_wgeturl -O $_gf.tar.gz"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "$fGoogleSchriften" ]; then
|
||||
echo
|
||||
echo "Extracting the downloaded archive..."
|
||||
echo " simulationtar -zxvf $_gf.tar.gz"
|
||||
echo "Creating the /usr/share/fonts/truetype/$_gf folder"
|
||||
echo " simulationsudo mkdir -p /usr/share/fonts/truetype/$_gf"
|
||||
echo "Installing all .ttf fonts in /usr/share/fonts/truetype/$_gf"
|
||||
echo " simulationfind $PWD/fonts-main/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; "
|
||||
echo "Updating the font cache"
|
||||
echo " simulationfc-cache -f"
|
||||
else
|
||||
echo "Schriften Fehlen immer noch. Manuell runterladen und installieren"
|
||||
fi
|
||||
|
||||
# "Simulation"
|
||||
else
|
||||
# "KeineSimulation"
|
||||
|
||||
_gf="google-fonts"
|
||||
fGoogleSchriften=./$_gf".tar.gz"
|
||||
if [ ! -f "$fGoogleSchriften" ]; then
|
||||
echo ""
|
||||
echo "$fGoogleSchriften nicht gefunden."
|
||||
echo " soll das Archiv "google-fonts.tar.gz" von Github runter geladen werden ca. 1GB gross! "
|
||||
read -p " ### Download Google Schriften ### " runterLaden;
|
||||
if [ $runterLaden == 'j' -o $runterLaden == 'J' -o $runterLaden == 'ja' -o $runterLaden == 'y' -o $runterLaden == 'Y' ]; then
|
||||
_wgeturl="https://github.com/google/fonts/archive/main.tar.gz"
|
||||
echo "Connecting to Github server to download fonts..."
|
||||
wget $_wgeturl -O $_gf.tar.gz
|
||||
fi
|
||||
fi
|
||||
if [ -f "$fGoogleSchriften" ]; then
|
||||
echo
|
||||
echo "$fGoogleSchriften nicht gefunden."
|
||||
echo "Extracting the downloaded archive..."
|
||||
tar -zxvf $_gf.tar.gz
|
||||
echo "Creating the /usr/share/fonts/truetype/$_gf folder"
|
||||
sudo mkdir -p /usr/share/fonts/truetype/$_gf
|
||||
echo "Installing all .ttf fonts in /usr/share/fonts/truetype/$_gf"
|
||||
find $PWD/fonts-main/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || echo "An error occured, please run this script again."
|
||||
echo "Updating the font cache"
|
||||
fc-cache -f
|
||||
echo "Done. Now you can delete the tarball file $_gf.tar.gz if you wish."
|
||||
else
|
||||
echo "Schriften Fehlen immer noch. Manuell runterladen und installieren"
|
||||
fi
|
||||
|
||||
# "KeineSimulation"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "#### Chromium Browser installieren:"
|
||||
read -p " ### Chromium ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo "### Chromium ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo "simulation
|
||||
sudo apt install chromium
|
||||
sudo apt install chromium-browser
|
||||
"
|
||||
echo " tbd DateiName!?
|
||||
## Gnome-Schlüsselbund-Fehlermeldung bei jedem Start von Chrome/Chromium beheben: Starter bzw. .desktop-Datei mit folgendem Parameter ergänzen:
|
||||
## --password-store=basic "
|
||||
else
|
||||
sudo apt install chromium-browser
|
||||
fi88=
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "### Vivaldi Browser installieren:#### "
|
||||
read -p " ### Vivaldi ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo "### ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo "simulation
|
||||
## nötige Zusatzpakete installieren
|
||||
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y
|
||||
## key importieren
|
||||
curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/vivaldi.gpg > /dev/null
|
||||
## Repository hinzufügen
|
||||
echo deb [arch=amd64,armhf signed-by=/usr/share/keyrings/vivaldi.gpg] https://repo.vivaldi.com/stable/deb/ stable main | sudo tee /etc/apt/sources.list.d/vivaldi.list
|
||||
sudo apt update && sudo apt install vivaldi-stable"
|
||||
echo " tbd DateiName!?
|
||||
## Gnome-Schlüsselbund-Fehlermeldung bei jedem Start von Chrome/Chromium beheben: Starter bzw. .desktop-Datei mit folgendem Parameter ergänzen:
|
||||
## --password-store=basic "
|
||||
|
||||
|
||||
else
|
||||
echo "## nötige Zusatzpakete installieren"
|
||||
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y
|
||||
#
|
||||
echo "## ## key importieren"
|
||||
curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/vivaldi.gpg > /dev/null
|
||||
#
|
||||
echo "## ## Repository hinzufügen"
|
||||
echo deb [arch=amd64,armhf signed-by=/usr/share/keyrings/vivaldi.gpg] https://repo.vivaldi.com/stable/deb/ stable main | sudo tee /etc/apt/sources.list.d/vivaldi.list
|
||||
#
|
||||
sudo apt update && sudo apt install vivaldi-stable
|
||||
#
|
||||
echo "## ## Gnome-Schlüsselbund-Fehlermeldung bei jedem Start von Chrome/Chromium beheben: Starter bzw. .desktop-Datei mit folgendem Parameter ergänzen: "
|
||||
echo "## ## --password-store=basic"
|
||||
#
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "####Signal für Desktop (setzt Signalinstallation auf einem Android- Oder Apple-Gerät voraus!)#### "
|
||||
read -p " ### Signal ###
|
||||
Geben Sie j oder n ein und die Eingabetaste,
|
||||
Abbruch mit jeder anderen Taste ... " kommando;
|
||||
if [ $kommando == 'j' -o $kommando == 'J' -o $kommando == 'ja' -o $kommando == 'y' -o $kommando == 'Y' ]; then
|
||||
echo "### ###"
|
||||
if [ "$cMode" != "KeineSimulation" ]; then
|
||||
echo "simulation
|
||||
## zusätzliches Repository nötig!
|
||||
#
|
||||
## NOTE: These instructions only work for 64-bit Debian-based
|
||||
## Linux distributions such as Ubuntu, Mint etc.
|
||||
#
|
||||
## key importieren
|
||||
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
|
||||
cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
|
||||
## Repository hinzufügen:
|
||||
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee /etc/apt/sources.list.d/signal-xenial.list
|
||||
sudo apt update && sudo apt install signal-desktop
|
||||
|
||||
"
|
||||
else
|
||||
echo "## zusätzliches Repository nötig!
|
||||
## NOTE: These instructions only work for 64-bit Debian-based
|
||||
## Linux distributions such as Ubuntu, Mint etc.
|
||||
## key importieren
|
||||
"
|
||||
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
|
||||
cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
|
||||
#
|
||||
echo "## Repository hinzufügen:"
|
||||
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee /etc/apt/sources.list.d/signal-xenial.list
|
||||
sudo apt update && sudo apt install signal-desktop
|
||||
#
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Skript ENDE"
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
echo "Manuelle Schritte"
|
||||
echo
|
||||
echo "### Taskleiste mit XFCE-Applets für Systemauslastung und 2x Netzwerkmonitor (LAN + WLAN) ergänzen und konfigurieren"
|
||||
echo
|
||||
echo
|
||||
echo "Wenn
|
||||
### Sensoren ###
|
||||
installiert wurden
|
||||
## dann psensor konfigurieren im Applet in der Taskleiste "
|
||||
echo
|
||||
echo
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Post-Installation Script
|
||||
|
||||
This directory contains all files belonging to the Linux Mint XFCE post-installation script.
|
||||
|
||||
## Usage
|
||||
|
||||
Run the main script:
|
||||
|
||||
```bash
|
||||
cd post_installation_script
|
||||
bash 20251212_Nachinstallationsarbeiten_LC_Esslingen_XFCE_v8.sh
|
||||
```
|
||||
|
||||
The script is interactive and will prompt for confirmation before each installation step.
|
||||
|
||||
## Testing
|
||||
|
||||
See `../post_installation_script_test/README.md` for container-based testing instructions.
|
||||
Reference in New Issue
Block a user