mirror of
https://codeberg.org/knightsub9/lxcafe.git
synced 2026-07-19 19:30:16 +02:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b90195586c | ||
|
|
4fcfcbe06b | ||
|
|
cf5de8f44e |
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Linux-Café Esslingen
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -18,6 +18,10 @@ You can also make use of snapshot feature of the virtualization software to easi
|
|||||||
e.g. state directly after Linux Mint installation, before running the post-installation script.
|
e.g. state directly after Linux Mint installation, before running the post-installation script.
|
||||||
This way you can test the script multiple times without needing to reinstall Linux Mint each time.
|
This way you can test the script multiple times without needing to reinstall Linux Mint each time.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||||||
|
|
||||||
## Release Process
|
## Release Process
|
||||||
|
|
||||||
This project uses a two-step release process.
|
This project uses a two-step release process.
|
||||||
|
|||||||
@@ -2,18 +2,6 @@
|
|||||||
|
|
||||||
SCRIPT_VERSION="v11"
|
SCRIPT_VERSION="v11"
|
||||||
|
|
||||||
question_answered_with_yes() {
|
|
||||||
local prompt="$1"
|
|
||||||
local ans
|
|
||||||
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
|
|
||||||
read -r ans
|
|
||||||
case "$ans" in
|
|
||||||
j|J|ja|y|Y) return 0 ;;
|
|
||||||
n|N|"") return 1 ;;
|
|
||||||
*) echo "Abbruch."; exit 1 ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
#####################################
|
#####################################
|
||||||
#### Nachinstallationsarbeiten
|
#### Nachinstallationsarbeiten
|
||||||
@@ -50,13 +38,13 @@ sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S')
|
|||||||
detect_desktop() {
|
detect_desktop() {
|
||||||
if [ -n "$XDG_CURRENT_DESKTOP" ]; then
|
if [ -n "$XDG_CURRENT_DESKTOP" ]; then
|
||||||
case "$XDG_CURRENT_DESKTOP" in
|
case "$XDG_CURRENT_DESKTOP" in
|
||||||
XFCE|Xfce|xfce) echo "xfce" ;;
|
XFCE | Xfce | xfce) echo "xfce" ;;
|
||||||
X-Cinnamon|Cinnamon|cinnamon) echo "cinnamon" ;;
|
X-Cinnamon | Cinnamon | cinnamon) echo "cinnamon" ;;
|
||||||
esac
|
esac
|
||||||
elif [ -n "$DESKTOP_SESSION" ]; then
|
elif [ -n "$DESKTOP_SESSION" ]; then
|
||||||
case "$DESKTOP_SESSION" in
|
case "$DESKTOP_SESSION" in
|
||||||
*xfce*|*XFCE*) echo "xfce" ;;
|
*xfce* | *XFCE*) echo "xfce" ;;
|
||||||
*cinnamon*|*Cinnamon*) echo "cinnamon" ;;
|
*cinnamon* | *Cinnamon*) echo "cinnamon" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -80,7 +68,10 @@ if [ -z "$DETECTED_DESKTOP" ]; then
|
|||||||
case "$desktop_choice" in
|
case "$desktop_choice" in
|
||||||
1) DESKTOP="xfce" ;;
|
1) DESKTOP="xfce" ;;
|
||||||
2) DESKTOP="cinnamon" ;;
|
2) DESKTOP="cinnamon" ;;
|
||||||
*) echo "Ungültige Auswahl. Skript wird beendet."; exit 1 ;;
|
*)
|
||||||
|
echo "Ungültige Auswahl. Skript wird beendet."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
@@ -99,16 +90,19 @@ else
|
|||||||
case "$desktop_choice" in
|
case "$desktop_choice" in
|
||||||
1) DESKTOP="xfce" ;;
|
1) DESKTOP="xfce" ;;
|
||||||
2) DESKTOP="cinnamon" ;;
|
2) DESKTOP="cinnamon" ;;
|
||||||
*) echo "Ungültige Auswahl. Skript wird beendet."; exit 1 ;;
|
*)
|
||||||
|
echo "Ungültige Auswahl. Skript wird beendet."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$DESKTOP" in
|
case "$DESKTOP" in
|
||||||
xfce)
|
xfce)
|
||||||
source "$SCRIPT_DIR/xfce/xfce.sh"
|
source "$SCRIPT_DIR/xfce/xfce.sh"
|
||||||
;;
|
;;
|
||||||
cinnamon)
|
cinnamon)
|
||||||
source "$SCRIPT_DIR/cinnamon/cinnamon.sh"
|
source "$SCRIPT_DIR/cinnamon/cinnamon.sh"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -130,7 +124,6 @@ if question_answered_with_yes " ### Installiere Sensoren? ###"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "### Kauf-DVDs abspielen ###"
|
echo "### Kauf-DVDs abspielen ###"
|
||||||
@@ -140,7 +133,6 @@ if question_answered_with_yes " ### Installiere Paket um Film DVDs abspielen zu
|
|||||||
sudo dpkg-reconfigure libdvd-pkg
|
sudo dpkg-reconfigure libdvd-pkg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "### Schriften, falls Microsoft-Office-Dokumente weiterverwendet werden sollen oder Dokumentenaustausch mit Microsoft-Nutzern gewünscht ist ###
|
echo "### Schriften, falls Microsoft-Office-Dokumente weiterverwendet werden sollen oder Dokumentenaustausch mit Microsoft-Nutzern gewünscht ist ###
|
||||||
@@ -197,7 +189,7 @@ if question_answered_with_yes " ### Installiere Google Schriften? ###"; then
|
|||||||
curl -s -o /tmp/"$_font".zip "${_google_fonts_url_base}/$_font?download=zip&subsets=latin,latin-ext&variants=regular,700"
|
curl -s -o /tmp/"$_font".zip "${_google_fonts_url_base}/$_font?download=zip&subsets=latin,latin-ext&variants=regular,700"
|
||||||
if [ -s /tmp/"$_font".zip ] && head -c 2 /tmp/"$_font".zip | grep -q "PK"; then
|
if [ -s /tmp/"$_font".zip ] && head -c 2 /tmp/"$_font".zip | grep -q "PK"; then
|
||||||
unzip -o /tmp/"$_font".zip -d /tmp/"$_font"_fonts
|
unzip -o /tmp/"$_font".zip -d /tmp/"$_font"_fonts
|
||||||
sudo cp /tmp/"$_font"_fonts/fonts/"$_font"/* "$_google_fonts_dir/" 2>/dev/null || \
|
sudo cp /tmp/"$_font"_fonts/fonts/"$_font"/* "$_google_fonts_dir/" 2>/dev/null ||
|
||||||
sudo cp /tmp/"$_font"_fonts/* "$_google_fonts_dir/" 2>/dev/null || true
|
sudo cp /tmp/"$_font"_fonts/* "$_google_fonts_dir/" 2>/dev/null || true
|
||||||
rm -rf /tmp/"$_font".zip /tmp/"$_font"_fonts
|
rm -rf /tmp/"$_font".zip /tmp/"$_font"_fonts
|
||||||
else
|
else
|
||||||
@@ -212,8 +204,6 @@ if question_answered_with_yes " ### Installiere Google Schriften? ###"; then
|
|||||||
echo "Die Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office muss manuell erfolgen, falls gewünscht."
|
echo "Die Anpassung der Standardschriften und/oder das Erstellen der Ersetzungstabelle in Libre Office muss manuell erfolgen, falls gewünscht."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "#### Chromium Browser installieren:"
|
echo "#### Chromium Browser installieren:"
|
||||||
@@ -223,7 +213,6 @@ if question_answered_with_yes " ### Installiere Chromium? ###"; then
|
|||||||
sudo apt install chromium
|
sudo apt install chromium
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "#### Vivaldi Browser installieren:"
|
echo "#### Vivaldi Browser installieren:"
|
||||||
@@ -233,7 +222,7 @@ if question_answered_with_yes " ### Installiere Vivaldi? ###"; then
|
|||||||
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y
|
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y
|
||||||
#
|
#
|
||||||
echo "## ## key importieren"
|
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
|
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 "## ## 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
|
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
|
||||||
@@ -245,7 +234,6 @@ if question_answered_with_yes " ### Installiere Vivaldi? ###"; then
|
|||||||
#
|
#
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "####Signal für Desktop (die Nutzung setzt eine Signal-Installation auf einem Android- Oder Apple-Gerät voraus!)#### "
|
echo "####Signal für Desktop (die Nutzung setzt eine Signal-Installation auf einem Android- Oder Apple-Gerät voraus!)#### "
|
||||||
@@ -256,8 +244,8 @@ if question_answered_with_yes " ### Installiere Signal? ###"; then
|
|||||||
## Linux distributions such as Ubuntu, Mint etc.
|
## Linux distributions such as Ubuntu, Mint etc.
|
||||||
## key importieren
|
## key importieren
|
||||||
"
|
"
|
||||||
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > /tmp/signal-desktop-keyring.gpg
|
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor >/tmp/signal-desktop-keyring.gpg
|
||||||
cat /tmp/signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
|
cat /tmp/signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg >/dev/null
|
||||||
#
|
#
|
||||||
echo "## Repository hinzufügen:"
|
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
|
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
|
||||||
@@ -265,7 +253,8 @@ if question_answered_with_yes " ### Installiere Signal? ###"; then
|
|||||||
#
|
#
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# execute bundles
|
||||||
|
# example: $SCRIPT_DIR/bundles/template.sh
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "###############################"
|
echo "###############################"
|
||||||
|
|||||||
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# <short description here>
|
||||||
|
# A shellscript meant to be used as subscript of `/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh`.
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "$0")"/.. && pwd)"
|
||||||
|
source "$SCRIPT_DIR/common.sh"
|
||||||
|
|
||||||
|
# please seperate stuff that doesn't belong together and maybe put short descriptions before those blocks (as comments) like in the following example:
|
||||||
|
# # Steam and Steam-related packages
|
||||||
|
# echo '### Steam ###'
|
||||||
|
# if question_answered_with_yes " ### Installiere Steam? ###"; then
|
||||||
|
# echo "### Steam ###"
|
||||||
|
# sudo apt install steam-installer
|
||||||
|
# # sudo flatpak install com.valvesoftware.Steam
|
||||||
|
# if question_answered_with_yes " ### Installiere Steam-Geräte-Unterstützungspaket (z. B. für Steam-Controller)? ###"; then
|
||||||
|
# echo "### Steam-Devices ###"
|
||||||
|
# sudo apt install steam-devices
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
# echo '### Ende Steam ###'
|
||||||
Executable
+16
@@ -0,0 +1,16 @@
|
|||||||
|
# functions and variables for use in multiple files ("common" functions and variables)
|
||||||
|
|
||||||
|
question_answered_with_yes() {
|
||||||
|
local prompt="$1"
|
||||||
|
local ans
|
||||||
|
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
|
||||||
|
read -r ans
|
||||||
|
case "$ans" in
|
||||||
|
j | J | ja | y | Y) return 0 ;;
|
||||||
|
n | N | "") return 1 ;;
|
||||||
|
*)
|
||||||
|
echo "Abbruch."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user