7 Commits

10 changed files with 202 additions and 626 deletions
+47 -1
View File
@@ -1,4 +1,50 @@
# lxcafe Repository # lxcafe Repository
Linux Mint post-installation scripts.
Ablage für Code Schnipsel ## Structure
- **post_installation_script/** - Main post-installation scripts for Linux Mint XFCE
- **post_installation_script_test/** - Docker based testing environment for script development
- **.agents/** - Agent instructions for AI-assisted development
See individual README files in each directory for detailed information on usage and development.
## Test post installation script
To test the full functionality of post-installation script in a safe, isolated environment, use VirtualBox or similar virtualization
software to create a virtual machine with Linux Mint XFCE. Then, copy the script to the virtual machine and run it there.
This allows you to test the script without affecting your main system.
You can also make use of snapshot feature of the virtualization software to easily revert to a clean state after testing,
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.
## Release Process
This project uses a simple release process based on git tags.
### Versioning
- Version is stored in `VERSION` file (format: v0, v1, v2, ...)
- Major version increments only (major-bugfix scheme)
- Script version is also stored in `SCRIPT_VERSION` variable within the main script to display version during script execution
### Creating a Release
Run the release script from the repository root:
```bash
./release.sh
```
The script will:
1. Check for uncommitted local changes (exits if any exist)
2. Show current version and propose next version
3. Prompt for confirmation
4. Update VERSION file and SCRIPT_VERSION in the script
5. Create a git commit
6. Create an annotated tag
7. Prompt to push to origin (including tags)
### Gitea Integration
When a tag is pushed to the remote, Gitea automatically creates a release from it.
### Requirements
- Clean working tree (no uncommitted changes)
- Git remote configured (origin)
+1
View File
@@ -0,0 +1 @@
v9
@@ -1,380 +0,0 @@
#!/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
@@ -1,12 +1,6 @@
#!/bin/bash #!/bin/bash
SCRIPT_VERSION="v9"
# "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 bIsVlcInstalled=false
@@ -26,15 +20,21 @@ question_answered_with_yes() {
echo " echo "
################################### #####################################
#### Nachinstallationsarbeiten #### #### Nachinstallationsarbeiten
################################### #### Version: $SCRIPT_VERSION
#####################################
#### Was tut dieses Skript? #### #### Was tut dieses Skript? ####
# Vorausgesetzt wird eine Installation von Linux Mint XFCE. # 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. # Das Skript bietet -teilweise interaktiv- die Installation von zusätzlichen Programmen an, die Linux Mint XFCE nicht standardmässig mitbringt.
# #
# Folgende Dateien werden aus dem Skript referenziert und werden im selben Verzeichnis wie dieses Skript erwartet
## - Microsoft Aptos Fonts.zip
## - google-fonts.tar.gz
## - xfce4-panel.xml
#
# Zu Beginn werden die folgenden zusätzlichen Programme in einem Schritt installiert: # Zu Beginn werden die folgenden zusätzlichen Programme in einem Schritt installiert:
# #
# xfce4-goodies (zusätzliche Elemente für die Taskleiste) # xfce4-goodies (zusätzliche Elemente für die Taskleiste)
@@ -54,6 +54,8 @@ echo "
# #
# #
sudo apt-get update sudo apt-get update
# needed by script to unzip Aptos font
sudo apt install unzip -y
sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S') sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S')
@@ -61,7 +63,7 @@ sSuffixDate=$(date '+%Y-%m-%d_%H:%M:%S')
echo echo
if question_answered_with_yes "#### Installiere Zusatzprogramme für 64 bit Mint XFCE? ####"; then if question_answered_with_yes "#### Installiere Zusatzprogramme für 64 bit Mint XFCE? ####"; then
echo "#### 64 bit Mint XFCE ####" echo "#### 64 bit Mint XFCE ####"
sudo apt -y install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash xfce4-panel-profiles sudo apt -y install xfce4-goodies clementine vlc htop hardinfo font-manager asunder gtkhash
bIsVlcInstalled=true bIsVlcInstalled=true
fi fi
@@ -106,6 +108,32 @@ if question_answered_with_yes " ### Installiere M$ Schriften? ###"; then
sudo apt install ttf-mscorefonts-installer sudo apt install ttf-mscorefonts-installer
fi fi
echo
echo
echo " ## Microsoft Aptos Schriftarten installieren:"
if question_answered_with_yes " ### Installiere Aptos Schriften? ###"; then
echo
echo "### Aptos Schriften ###"
_aptos_zip="Microsoft Aptos Fonts.zip"
if [ ! -f "$_aptos_zip" ]; then
echo ""
echo "$_aptos_zip nicht gefunden."
echo "Bitte laden Sie die Datei von Microsoft herunter und legen Sie sie im selben Verzeichnis wie dieses Skript ab."
else
echo
echo "Entpacke das Archiv..."
unzip -o "$_aptos_zip"
echo "Erstelle /usr/share/fonts/truetype/aptos/"
sudo mkdir -p /usr/share/fonts/truetype/aptos
echo "Installiere alle .ttf Schriften..."
find . -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/aptos/ \; 2>/dev/null || true
echo "Aktualisiere den Font-Cache"
fc-cache -f
echo "Fertig! Aptos Schriftarten sind installiert."
fi
fi
echo echo
echo echo
echo " ## freie Google-Schriften als Ersatz für aktuelle MS-Standardschriften installieren:" echo " ## freie Google-Schriften als Ersatz für aktuelle MS-Standardschriften installieren:"
@@ -214,8 +242,9 @@ echo "Ein Abmelden und Wiederanmelden des Benutzers oder ein Reboot behebt das P
echo echo
if question_answered_with_yes " ### Änderungen am Panel durchführen? ###"; then if question_answered_with_yes " ### Änderungen am Panel durchführen? ###"; then
echo "### ###" echo "### ###"
sudo apt install xfce4-panel-profiles -y
echo "## Austausch der Panel-Konfigurationsdatei:" echo "## Austausch der Panel-Konfigurationsdatei:"
xfce4-panel-profiles load current-config.tar.bz2 xfce4-panel-profiles load xfce4-panel-profiles.tar.bz2
fi fi
echo echo
echo "###############################" echo "###############################"
+8 -2
View File
@@ -1,6 +1,12 @@
# Post-Installation Script # Post-Installation Script
This directory contains all files belonging to the Linux Mint XFCE post-installation script. This directory contains files belonging to the Linux Mint XFCE post-installation script.
## Prerequisites to run the script
- Linux Mint XFCE installed and running
- Internet connection for downloading packages and updates
- Script file: `Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh` copied to Desktop
- External files are referenced by the script, please check header comments in the script
## Usage ## Usage
@@ -8,7 +14,7 @@ Run the main script:
```bash ```bash
cd post_installation_script cd post_installation_script
bash 20251212_Nachinstallationsarbeiten_LC_Esslingen_XFCE_v8.sh bash Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh
``` ```
The script is interactive and will prompt for confirmation before each installation step. The script is interactive and will prompt for confirmation before each installation step.
-220
View File
@@ -1,220 +0,0 @@
<?xml version="1.1" encoding="UTF-8"?>
<channel name="xfce4-panel" version="1.0">
<property name="configver" type="int" value="2"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<value type="int" value="2"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=6;x=0;y=0"/>
<property name="length" type="uint" value="100"/>
<property name="position-locked" type="bool" value="true"/>
<property name="icon-size" type="uint" value="16"/>
<property name="size" type="uint" value="29"/>
<property name="plugin-ids" type="array">
<value type="int" value="1"/>
<value type="int" value="2"/>
<value type="int" value="3"/>
<value type="int" value="5"/>
<value type="int" value="6"/>
<value type="int" value="8"/>
<value type="int" value="9"/>
<value type="int" value="10"/>
<value type="int" value="11"/>
<value type="int" value="12"/>
<value type="int" value="13"/>
<value type="int" value="14"/>
<value type="int" value="7"/>
<value type="int" value="26"/>
<value type="int" value="28"/>
</property>
<property name="nrows" type="uint" value="2"/>
<property name="border-width" type="uint" value="1"/>
</property>
<property name="panel-2" type="empty">
<property name="autohide-behavior" type="uint" value="1"/>
<property name="position" type="string" value="p=10;x=0;y=0"/>
<property name="position-locked" type="bool" value="true"/>
<property name="size" type="uint" value="48"/>
<property name="plugin-ids" type="array">
<value type="int" value="15"/>
<value type="int" value="16"/>
<value type="int" value="17"/>
<value type="int" value="18"/>
<value type="int" value="19"/>
<value type="int" value="20"/>
<value type="int" value="21"/>
<value type="int" value="22"/>
</property>
</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-2" type="string" value="tasklist">
<property name="grouping" type="uint" value="1"/>
</property>
<property name="plugin-3" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-5" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-6" type="string" value="systray">
<property name="show-frame" type="bool" value="false"/>
<property name="square-icons" type="bool" value="true"/>
<property name="names-ordered" type="array">
<value type="string" value="pamac-tray"/>
<value type="string" value="connman-gtk"/>
</property>
<property name="known-legacy-items" type="array">
<value type="string" value="ethernet-netzverbindung »wired connection 1« ist aktiv"/>
<value type="string" value="netzwerk-manager-applet"/>
</property>
<property name="known-items" type="array">
<value type="string" value="Nextcloud"/>
</property>
</property>
<property name="plugin-8" type="string" value="pulseaudio">
<property name="enable-keyboard-shortcuts" type="bool" value="true"/>
<property name="show-notifications" type="bool" value="true"/>
</property>
<property name="plugin-9" type="string" value="power-manager-plugin"/>
<property name="plugin-10" type="string" value="notification-plugin"/>
<property name="plugin-11" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-12" type="string" value="clock"/>
<property name="plugin-13" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-14" type="string" value="actions"/>
<property name="plugin-15" type="string" value="showdesktop"/>
<property name="plugin-16" type="string" value="separator"/>
<property name="plugin-17" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15869715091.desktop"/>
</property>
</property>
<property name="plugin-18" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15869715092.desktop"/>
</property>
</property>
<property name="plugin-19" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15869715093.desktop"/>
</property>
</property>
<property name="plugin-20" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="15869715094.desktop"/>
</property>
</property>
<property name="plugin-21" type="string" value="separator"/>
<property name="plugin-22" type="string" value="directorymenu">
<property name="base-directory" type="string" value="/home/artix"/>
</property>
<property name="plugin-1" type="string" value="whiskermenu">
<property name="button-icon" type="string" value="artixlinux-logo"/>
<property name="show-button-title" type="bool" value="true"/>
<property name="launcher-icon-size" type="int" value="3"/>
<property name="hover-switch-category" type="bool" value="true"/>
<property name="favorites-in-recent" type="bool" value="true"/>
<property name="position-search-alternate" type="bool" value="true"/>
<property name="position-categories-alternate" type="bool" value="true"/>
<property name="command-switchuser" type="string" value="gdmflexiserver"/>
<property name="favorites" type="array">
<value type="string" value="xfce4-web-browser.desktop"/>
<value type="string" value="xfce4-mail-reader.desktop"/>
<value type="string" value="xfce4-file-manager.desktop"/>
<value type="string" value="xfce4-terminal-emulator.desktop"/>
</property>
<property name="recent" type="array">
<value type="string" value="xfce4-file-manager.desktop"/>
<value type="string" value="xfce4-terminal-emulator.desktop"/>
</property>
</property>
<property name="plugin-7" type="string" value="genmon">
<property name="command" type="string" value=""/>
<property name="use-label" type="bool" value="true"/>
<property name="text" type="string" value="(genmon)"/>
<property name="update-period" type="int" value="30000"/>
<property name="enable-single-row" type="bool" value="true"/>
<property name="font" type="string" value="Roboto 11"/>
</property>
<property name="plugin-26" type="string" value="whiskermenu"/>
<property name="plugin-28" type="string" value="cpugraph">
<property name="update-interval" type="int" value="2"/>
<property name="time-scale" type="int" value="0"/>
<property name="size" type="int" value="16"/>
<property name="mode" type="int" value="1"/>
<property name="color-mode" type="int" value="0"/>
<property name="frame" type="int" value="0"/>
<property name="border" type="int" value="1"/>
<property name="bars" type="int" value="1"/>
<property name="per-core" type="int" value="0"/>
<property name="tracked-core" type="int" value="0"/>
<property name="in-terminal" type="int" value="1"/>
<property name="startup-notification" type="int" value="0"/>
<property name="load-threshold" type="int" value="0"/>
<property name="smt-stats" type="int" value="0"/>
<property name="smt-issues" type="int" value="0"/>
<property name="per-core-spacing" type="int" value="1"/>
<property name="command" type="string" value=""/>
<property name="background" type="array">
<value type="double" value="1"/>
<value type="double" value="1"/>
<value type="double" value="1"/>
<value type="double" value="0"/>
</property>
<property name="foreground-1" type="array">
<value type="double" value="0"/>
<value type="double" value="1"/>
<value type="double" value="0"/>
<value type="double" value="1"/>
</property>
<property name="foreground-2" type="array">
<value type="double" value="1"/>
<value type="double" value="0"/>
<value type="double" value="0"/>
<value type="double" value="1"/>
</property>
<property name="foreground-3" type="array">
<value type="double" value="0"/>
<value type="double" value="0"/>
<value type="double" value="1"/>
<value type="double" value="1"/>
</property>
<property name="smt-issues-color" type="array">
<value type="double" value="0.90000000000000002"/>
<value type="double" value="0"/>
<value type="double" value="0"/>
<value type="double" value="1"/>
</property>
<property name="foreground-system" type="array">
<value type="double" value="0.90000000000000002"/>
<value type="double" value="0.10000000000000001"/>
<value type="double" value="0.10000000000000001"/>
<value type="double" value="1"/>
</property>
<property name="foreground-user" type="array">
<value type="double" value="0.10000000000000001"/>
<value type="double" value="0.40000000000000002"/>
<value type="double" value="0.90000000000000002"/>
<value type="double" value="1"/>
</property>
<property name="foreground-nice" type="array">
<value type="double" value="0.90000000000000002"/>
<value type="double" value="0.80000000000000004"/>
<value type="double" value="0.20000000000000001"/>
<value type="double" value="1"/>
</property>
<property name="foreground-iowait" type="array">
<value type="double" value="0.20000000000000001"/>
<value type="double" value="0.90000000000000002"/>
<value type="double" value="0.40000000000000002"/>
<value type="double" value="1"/>
</property>
</property>
</property>
</channel>
@@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
# Start container with the test image (interactive shell)
docker run -it --rm \ docker run -it --rm \
--tmpfs /tmp:rw \ --tmpfs /tmp:rw \
-v "$(pwd)/../post_installation_script/":/workspace/:ro \ --entrypoint bash \
mint-script-test -v "$(pwd)/../post_installation_script/":/workspace-source:ro \
mint-script-test \
-c 'cp -r /workspace-source/* /workspace/ && cd /workspace && exec bash'
+15 -7
View File
@@ -1,6 +1,12 @@
# Post-Installation Script Testing # Post-Installation Script Testing
This directory contains everything needed to test the post-installation script in a safe, isolated container environment. This directory contains a quick (but not complete) test for post-installation script in a safe, isolated container environment.
The container has no UI installed and therefore can't test the UI related parts of the script (Taskbar adaptions), but
it allows to test the logic, prompts, and error handling of the script.
## Prerequisites
- Docker or Podman installed on the host system. If Podman is used, an alias for `docker` command should be set up (e.g. `alias docker=podman`)
- in order to use the provided scripts without modification.
## Contents ## Contents
@@ -32,7 +38,7 @@ Run the prepared shell script to build the image
```bash ```bash
cd post_installation_script_test cd post_installation_script_test
sh 01_create_image.sh bash 01_create_image.sh
``` ```
### Start a container for testing ### Start a container for testing
@@ -41,23 +47,25 @@ image and remove container after it is stopped. After container is started an in
```bash ```bash
cd post_installation_script_test cd post_installation_script_test
sh 02_start_container_with_image.sh bash 02_start_container_with_image.sh
``` ```
### Test the script file in the running container ### Test the script file in the running container
After container is started an interactive session was started in the container and the script can be started for testing. After container is started an interactive session was started in the container and the script can be started for testing.
If script is changed on the host it just needs to be restarted in the container to reflect the changes. The source script folder is mounted read-only to `/workspace-source` and contents are copied to `/workspace` at container startup.
This works because to folder is mounted into the container. To test changes made on the host, restart the container - it will copy the updated files.
```bash ```bash
ls -al ls -al
sh <scriptName>.sh bash <scriptName>.sh
``` ```
## Security Notes ## Security Notes
- The script is mounted read-only (`:ro` flag) to prevent container from modifying host files - The source script folder is mounted read-only to `/workspace-source`
- Contents are automatically copied to `/workspace` (writable) at container startup
- This keeps the host script folder untouched while allowing the script to write files (e.g., font extraction)
- All apt installations are real but isolated in the container - All apt installations are real but isolated in the container
- Use `--tmpfs /tmp:rw` for any temporary writes inside the container - Use `--tmpfs /tmp:rw` for any temporary writes inside the container
- Container is automatically removed after exit (`--rm` flag) - Container is automatically removed after exit (`--rm` flag)
Executable
+85
View File
@@ -0,0 +1,85 @@
#!/usr/bin/env bash
set -e
if [ -n "$(git status --porcelain)" ]; then
echo "Error: You have uncommitted local changes."
echo "Please commit or stash them before releasing."
echo ""
echo "Uncommitted files:"
git status --short
exit 1
fi
VERSION_FILE="VERSION"
SCRIPT_FILE="post_installation_script/Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh"
if [ ! -f "$VERSION_FILE" ]; then
echo "Error: $VERSION_FILE not found"
exit 1
fi
CURRENT_VERSION=$(cat "$VERSION_FILE" | tr -d '\n')
if [ ! -f "$SCRIPT_FILE" ]; then
echo "Error: $SCRIPT_FILE not found"
exit 1
fi
CURRENT_MAJOR=${CURRENT_VERSION#v}
if ! [[ "$CURRENT_VERSION" =~ ^v[0-9]+$ ]]; then
echo "Error: Invalid version format in $VERSION_FILE. Expected v0, v1, v2, etc."
exit 1
fi
NEXT_VERSION=$((CURRENT_MAJOR + 1))
NEXT_VERSION_STR="v$NEXT_VERSION"
if git rev-parse "refs/tags/$NEXT_VERSION_STR" >/dev/null 2>&1; then
echo "Error: Tag $NEXT_VERSION_STR already exists locally."
exit 1
fi
if git remote get-url origin >/dev/null 2>&1; then
if git ls-remote --tags origin "$NEXT_VERSION_STR" 2>/dev/null | grep -q "$NEXT_VERSION_STR"; then
echo "Error: Tag $NEXT_VERSION_STR already exists on remote."
exit 1
fi
else
echo "Warning: No remote configured. You can still create the release locally."
fi
echo "Current version: $CURRENT_VERSION"
echo "Proposed version: $NEXT_VERSION_STR"
echo ""
read -p "Confirm release version $NEXT_VERSION_STR? [y/N]: " confirm
if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then
echo "Release aborted."
exit 0
fi
echo "$NEXT_VERSION_STR" > "$VERSION_FILE"
sed -i.bak "s/^SCRIPT_VERSION=.*/SCRIPT_VERSION=\"$NEXT_VERSION_STR\"/" "$SCRIPT_FILE"
if [ -f "${SCRIPT_FILE}.bak" ]; then
rm "${SCRIPT_FILE}.bak"
fi
git add "$VERSION_FILE" "$SCRIPT_FILE"
git commit -m "Release $NEXT_VERSION_STR"
git tag -a "$NEXT_VERSION_STR" -m "Release $NEXT_VERSION_STR"
echo ""
echo "Tag $NEXT_VERSION_STR created locally."
read -p "Push to origin (includes tags)? [y/N]: " push_confirm
if [[ "$push_confirm" == "y" || "$push_confirm" == "Y" ]]; then
git push origin --tags
echo "Done! Gitea will create release from tag $NEXT_VERSION_STR"
else
echo "Release prepared locally. Push manually with: git push origin --tags"
fi