Commit 578b59ad authored by Andre's avatar Andre
Browse files

Setup in Einzelskripte aufgeteilt

parent 6aefb059
Pipeline #2359 passed with stage
in 21 minutes and 50 seconds
......@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
## 2022-06-16
### Change
- Splitted setup.sh to separate scripts
## 2022-06-03
### Add
- Added language pack for ukraine
......
#!/bin/bash
# FirstBoot Script zum Aufruf der setup.sh wieder löschen
rm /home/schule/.config/autostart/firstboot.desktop
# Screensaver und Lock-Screen deaktivieren
gsettings set org.gnome.desktop.screensaver lock-enabled 'false'
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
gsettings set org.gnome.desktop.session idle-delay 0
# anzeigen der systemparameter
zenity --info --text "$(lshw -C memory)\n------------------------------------\nAnzahl Kerne: $(nproc)\n------------------------------------\n$(lshw -C cpu)" --width 1024
# Audio testen
zenity --info --text "OK klicken um Audio zu testen"
arecord|aplay &
PID=$!
zenity --info --text "Du solltest ein Echo hören. OK klicken um Audio-Test zu beenden"
kill $PID
# Kamera testen
guvcview --gui none
# Laufwerk testen
eject
# Script aus setup-Netzwerk ausführen (sofern vorhanden)
if nmcli dev wifi connect 'HeyAlter Setup'; then
gnome-terminal --wait -- bash -c 'curl set.up | bash'
fi
# Rechte der kopierten Dateien fixen
gnome-terminal --wait -- bash -c "sudo /opt/setup/setuproot.sh"
# optinale Skripte ausführen
find /opt/setup/setup_extensions/ -name "*.sh" | sort -k1 | xargs -I {} bash {}
find /opt/setup/setup_steps/ -name "*.sh" | sort -k1 | xargs -I {} bash {}
\ No newline at end of file
Bash scripts in this directory will be executed automatically at the end of the setup.sh
#!/bin/bash
# FirstBoot Script zum Aufruf der setup.sh wieder löschen
rm /home/schule/.config/autostart/firstboot.desktop
\ No newline at end of file
#!/bin/bash
# Screensaver und Lock-Screen deaktivieren
gsettings set org.gnome.desktop.screensaver lock-enabled 'false'
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
gsettings set org.gnome.desktop.session idle-delay 0
\ No newline at end of file
#!/bin/bash
# anzeigen der systemparameter
zenity --info --text "$(lshw -C memory)\n------------------------------------\nAnzahl Kerne: $(nproc)\n------------------------------------\n$(lshw -C cpu)" --width 1024
\ No newline at end of file
#!/bin/bash
# Audio testen
zenity --info --text "OK klicken um Audio zu testen"
arecord|aplay &
PID=$!
zenity --info --text "Du solltest ein Echo hören. OK klicken um Audio-Test zu beenden"
kill $PID
\ No newline at end of file
#!/bin/bash
# Kamera testen
cheese
\ No newline at end of file
#!/bin/bash
# Laufwerk testen
eject
\ No newline at end of file
#!/bin/bash
# Script aus setup-Netzwerk ausführen (sofern vorhanden)
if nmcli dev wifi connect 'HeyAlter Setup'; then
gnome-terminal --wait -- bash -c 'curl set.up | bash'
fi
\ No newline at end of file
#!/bin/bash
# Rechte der kopierten Dateien fixen
gnome-terminal --wait -- bash -c "sudo /opt/setup/setuproot.sh"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment