Rolen aus bookworm übernommen
This commit is contained in:
parent
b74032925f
commit
420d9ea7b0
34 changed files with 1239 additions and 23 deletions
3
roles/custom/qg-base/files/52-arduino.rules
Normal file
3
roles/custom/qg-base/files/52-arduino.rules
Normal file
|
@ -0,0 +1,3 @@
|
|||
SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{idVendor}=="16c0",ATTRS{idProduct}=="0483",GROUP="dialout",MODE="0666"
|
||||
SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{idVendor}=="2341",ATTRS{idProduct}=="0043",GROUP="dialout",MODE="0666"
|
||||
SUBSYSTEMS=="usb",KERNEL=="ttyUSB*",ATTRS{idVendor}=="1a86",ATTRS{idProduct}=="7523",GROUP="dialout",MODE="0666"
|
2
roles/custom/qg-base/files/81-wol.rules
Normal file
2
roles/custom/qg-base/files/81-wol.rules
Normal file
|
@ -0,0 +1,2 @@
|
|||
# enable wol
|
||||
ACTION=="add", SUBSYSTEM=="net", NAME=="*", RUN+="/usr/sbin/ethtool -s $name wol g"
|
67
roles/custom/qg-base/files/BeamerSetup.sh
Executable file
67
roles/custom/qg-base/files/BeamerSetup.sh
Executable file
|
@ -0,0 +1,67 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Get connected monitors and their native resolutions
|
||||
monitor_info=$(xrandr --query)
|
||||
|
||||
# Extract primary monitor name
|
||||
primary_monitor_name=$(echo "$monitor_info" | grep " primary" | cut -d" " -f1)
|
||||
|
||||
# Extract secondary monitor name and native resolution
|
||||
secondary_monitor_line=$(echo "$monitor_info" | grep -m1 -n -P " connected(?! primary)")
|
||||
secondary_monitor_line_number=$(echo "$secondary_monitor_line" | cut -d":" -f1)
|
||||
secondary_monitor_name=$(echo "$secondary_monitor_line" | cut -d":" -f2 | cut -d" " -f1)
|
||||
if [ ! -z "$secondary_monitor_line_number" ]; then
|
||||
secondary_resolution=$(echo "$monitor_info" | sed -e "1,${secondary_monitor_line_number}d" | grep -m1 "+" | awk '{ print $1 }')
|
||||
fi
|
||||
|
||||
if [ -z "$secondary_monitor_name" ] || [ -z "$secondary_resolution" ] || [ -z "$primary_monitor_name" ]; then
|
||||
zenity --error --text="Es konnten keine passenden Bildschirme gefunden werden. Sind Sie sich sicher, dass der Beamer eingeschaltet und verbunden ist?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Find out which resolutions we want to recommend
|
||||
if [ "$secondary_resolution" = "1920x1080" ]; then
|
||||
recommend_high_res="Ja"
|
||||
recommend_low_res="Nein"
|
||||
default_xga="FALSE"
|
||||
default_hd="TRUE"
|
||||
else
|
||||
recommend_high_res="Nein"
|
||||
recommend_low_res="Ja"
|
||||
default_xga="TRUE"
|
||||
default_hd="FALSE"
|
||||
fi
|
||||
|
||||
# Generate GUI to let the user select a resolution
|
||||
mode=$(zenity --list --radiolist --title="Beamer Setup" --text="Beamer mit der Auflösung $secondary_resolution gefunden." \
|
||||
--print-column=3 --width 500 --height 250 \
|
||||
--column= --column="Name" --column="Auflösung" --column="Format" --column="Empfohlen" \
|
||||
FALSE "Full HD" "1920x1080" "16:9" "$recommend_high_res" \
|
||||
"$default_hd" "HD" "1280x720" "16:9" "Ja" \
|
||||
"$default_xga" "XGA" "1024x768" "4:3" "$recommend_low_res")
|
||||
|
||||
# Use xrandr to configure both displays
|
||||
if [ ! -z "$mode" ]; then
|
||||
xrandr --output $primary_monitor_name --mode $mode
|
||||
xrandr --output $secondary_monitor_name --mode $mode --same-as $primary_monitor_name
|
||||
fi
|
||||
|
||||
# Use pactl to set audio output to hdmi
|
||||
profile="output:hdmi-stereo+input:analog-stereo"
|
||||
sink_line=$(pactl list short sinks | grep -m1 alsa_output.pci-)
|
||||
sink_nr=$(echo $sink_line | awk '{ print $1 }')
|
||||
sink_name_hdmi=$(echo $sink_line | awk '{ print $2 }' | grep hdmi)
|
||||
if [ ! -z "$sink_nr" ] && [ -z "$sink_name_hdmi" ]; then
|
||||
card_name=$(pactl list cards short | grep -m1 alsa_card.pci- | awk '{ print $2 }')
|
||||
pactl set-card-profile $card_name $profile
|
||||
fi
|
||||
|
||||
if [ ! -z "$sink_nr" ]; then
|
||||
pactl set-default-sink $(pactl list short sinks | grep -m1 alsa_output.pci- | awk '{ print $1 }')
|
||||
fi
|
||||
|
||||
# if there is no hdmi sink search for a card profile to change
|
||||
if [ -z "$sink_nr" ]; then
|
||||
card_name=$(pactl list cards short | head -n 1 | awk '{ print $2 }')
|
||||
pactl set-card-profile $card_name $profile
|
||||
fi
|
BIN
roles/custom/qg-base/files/beamer.png
Normal file
BIN
roles/custom/qg-base/files/beamer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
104
roles/custom/qg-base/files/firefox-esr.desktop
Normal file
104
roles/custom/qg-base/files/firefox-esr.desktop
Normal file
|
@ -0,0 +1,104 @@
|
|||
[Desktop Entry]
|
||||
Name=Firefox ESR
|
||||
Name[bg]=Firefox ESR
|
||||
Name[ca]=Firefox ESR
|
||||
Name[cs]=Firefox ESR
|
||||
Name[el]=Firefox ESR
|
||||
Name[es]=Firefox ESR
|
||||
Name[fa]=Firefox ESR
|
||||
Name[fi]=Firefox ESR
|
||||
Name[fr]=Firefox ESR
|
||||
Name[hu]=Firefox ESR
|
||||
Name[it]=Firefox ESR
|
||||
Name[ja]=Firefox ESR
|
||||
Name[ko]=Firefox ESR
|
||||
Name[nb]=Firefox ESR
|
||||
Name[nl]=Firefox ESR
|
||||
Name[nn]=Firefox ESR
|
||||
Name[no]=Firefox ESR
|
||||
Name[pl]=Firefox ESR
|
||||
Name[pt]=Firefox ESR
|
||||
Name[pt_BR]=Firefox ESR
|
||||
Name[ru]=Firefox ESR
|
||||
Name[sk]=Firefox ESR
|
||||
Name[sv]=Firefox ESR
|
||||
Comment=Browse the World Wide Web
|
||||
Comment[bg]=Сърфиране в Мрежата
|
||||
Comment[ca]=Navegueu per el web
|
||||
Comment[cs]=Prohlížení stránek World Wide Webu
|
||||
Comment[de]=Im Internet surfen
|
||||
Comment[el]=Περιηγηθείτε στον παγκόσμιο ιστό
|
||||
Comment[es]=Navegue por la web
|
||||
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
|
||||
Comment[fi]=Selaa Internetin WWW-sivuja
|
||||
Comment[fr]=Navigue sur Internet
|
||||
Comment[hu]=A világháló böngészése
|
||||
Comment[it]=Esplora il web
|
||||
Comment[ja]=ウェブを閲覧します
|
||||
Comment[ko]=웹을 돌아 다닙니다
|
||||
Comment[nb]=Surf på nettet
|
||||
Comment[nl]=Verken het internet
|
||||
Comment[nn]=Surf på nettet
|
||||
Comment[no]=Surf på nettet
|
||||
Comment[pl]=Przeglądanie stron WWW
|
||||
Comment[pt]=Navegue na Internet
|
||||
Comment[pt_BR]=Navegue na Internet
|
||||
Comment[ru]=Обозреватель Всемирной Паутины
|
||||
Comment[sk]=Prehliadanie internetu
|
||||
Comment[sv]=Surfa på webben
|
||||
GenericName=Web Browser
|
||||
GenericName[bg]=Интернет браузър
|
||||
GenericName[ca]=Navegador web
|
||||
GenericName[cs]=Webový prohlížeč
|
||||
GenericName[de]=Webbrowser
|
||||
GenericName[el]=Περιηγητής ιστού
|
||||
GenericName[es]=Navegador web
|
||||
GenericName[fa]=مرورگر اینترنتی
|
||||
GenericName[fi]=WWW-selain
|
||||
GenericName[fr]=Navigateur Web
|
||||
GenericName[hu]=Webböngésző
|
||||
GenericName[it]=Browser Web
|
||||
GenericName[ja]=ウェブ・ブラウザ
|
||||
GenericName[ko]=웹 브라우저
|
||||
GenericName[nb]=Nettleser
|
||||
GenericName[nl]=Webbrowser
|
||||
GenericName[nn]=Nettlesar
|
||||
GenericName[no]=Nettleser
|
||||
GenericName[pl]=Przeglądarka WWW
|
||||
GenericName[pt]=Navegador Web
|
||||
GenericName[pt_BR]=Navegador Web
|
||||
GenericName[ru]=Интернет-браузер
|
||||
GenericName[sk]=Internetový prehliadač
|
||||
GenericName[sv]=Webbläsare
|
||||
X-GNOME-FullName=Firefox ESR Web Browser
|
||||
X-GNOME-FullName[bg]=Интернет браузър (Firefox ESR)
|
||||
X-GNOME-FullName[ca]=Navegador web Firefox ESR
|
||||
X-GNOME-FullName[cs]=Firefox ESR Webový prohlížeč
|
||||
X-GNOME-FullName[el]=Περιηγήτης Ιστού Firefox ESR
|
||||
X-GNOME-FullName[es]=Navegador web Firefox ESR
|
||||
X-GNOME-FullName[fa]=مرورگر اینترنتی Firefox ESR
|
||||
X-GNOME-FullName[fi]=Firefox ESR-selain
|
||||
X-GNOME-FullName[fr]=Navigateur Web Firefox ESR
|
||||
X-GNOME-FullName[hu]=Firefox ESR webböngésző
|
||||
X-GNOME-FullName[it]=Firefox ESR Browser Web
|
||||
X-GNOME-FullName[ja]=Firefox ESR ウェブ・ブラウザ
|
||||
X-GNOME-FullName[ko]=Firefox ESR 웹 브라우저
|
||||
X-GNOME-FullName[nb]=Firefox ESR Nettleser
|
||||
X-GNOME-FullName[nl]=Firefox ESR webbrowser
|
||||
X-GNOME-FullName[nn]=Firefox ESR Nettlesar
|
||||
X-GNOME-FullName[no]=Firefox ESR Nettleser
|
||||
X-GNOME-FullName[pl]=Przeglądarka WWW Firefox ESR
|
||||
X-GNOME-FullName[pt]=Firefox ESR Navegador Web
|
||||
X-GNOME-FullName[pt_BR]=Navegador Web Firefox ESR
|
||||
X-GNOME-FullName[ru]=Интернет-браузер Firefox ESR
|
||||
X-GNOME-FullName[sk]=Internetový prehliadač Firefox ESR
|
||||
X-GNOME-FullName[sv]=Webbläsaren Firefox ESR
|
||||
Exec=/usr/lib/firefox-esr/firefox-esr %u --allow-downgrade
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Type=Application
|
||||
Icon=firefox-esr
|
||||
Categories=Network;WebBrowser;
|
||||
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
|
||||
StartupWMClass=Firefox-esr
|
||||
StartupNotify=true
|
70
roles/custom/qg-base/files/firefox_policies.json
Normal file
70
roles/custom/qg-base/files/firefox_policies.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"policies": {
|
||||
"Proxy": {
|
||||
"Mode": "system"
|
||||
},
|
||||
"OverrideFirstRunPage": "https://www.qg-moessingen.de",
|
||||
"Homepage": {
|
||||
"URL": "https://www.debian.org",
|
||||
"Locked": false,
|
||||
"StartPage": "previous-session"
|
||||
},
|
||||
"DisplayBookmarksToolbar": true,
|
||||
"ManagedBookmarks": [
|
||||
{
|
||||
"toplevel_name": "QG Mössingen"
|
||||
},
|
||||
{
|
||||
"url": "https://server.qgm.lan",
|
||||
"name": "Passwort ändern"
|
||||
},
|
||||
{
|
||||
"url": "https://wolke.qg-moessingen.de",
|
||||
"name": "QG-Wolke"
|
||||
},
|
||||
{
|
||||
"url": "https://moodle.qg-moessingen.de",
|
||||
"name": "QG-Moodle"
|
||||
},
|
||||
{
|
||||
"name": "Debian",
|
||||
"children": [
|
||||
{
|
||||
"url": "https://www.debian.org",
|
||||
"name": "Debian Homepage"
|
||||
},
|
||||
{
|
||||
"url": "https://wiki.debian.org",
|
||||
"name": "Debian Wiki"
|
||||
},
|
||||
{
|
||||
"name": "Debian LAN/Live",
|
||||
"children": [
|
||||
{
|
||||
"url": "https://salsa.debian.org/andi/debian-lan-ansible",
|
||||
"name": "Debian LAN Ansible"
|
||||
},
|
||||
{
|
||||
"url": "https://wiki.debian.org/DebianLive",
|
||||
"name": "Debian Live"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SearchEngines": {
|
||||
"Add": [
|
||||
{
|
||||
"Name": "Startpage",
|
||||
"URLTemplate": "https://www.startpage.com/sp/search?query={searchTerms}",
|
||||
"Method": "GET",
|
||||
"IconURL": "https://www.startpage.com/sp/cdn/favicons/favicon--default.ico",
|
||||
"Alias": "sp",
|
||||
"Description": "Startpage Search Engine"
|
||||
}
|
||||
],
|
||||
"Default": "Startpage"
|
||||
}
|
||||
}
|
||||
}
|
BIN
roles/custom/qg-base/files/logout.png
Normal file
BIN
roles/custom/qg-base/files/logout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
13
roles/custom/qg-base/files/qgm-abmelden.desktop
Normal file
13
roles/custom/qg-base/files/qgm-abmelden.desktop
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Exec=qdbus6 org.kde.Shutdown /Shutdown org.kde.Shutdown.logout
|
||||
Name[de_DE]=Abmelden
|
||||
Name=Abmelden
|
||||
Icon=/usr/share/icons/logout.png
|
||||
Hidden=false
|
||||
Comment=
|
||||
Path=
|
||||
StartupNotify=false
|
15
roles/custom/qg-base/files/qgm-beamersetup.desktop
Normal file
15
roles/custom/qg-base/files/qgm-beamersetup.desktop
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Exec=BeamerSetup.sh
|
||||
Name[de_DE]=QG-Beamersetup
|
||||
Name=QG-Beamersetup
|
||||
Icon=/usr/share/icons/beamer.png
|
||||
Hidden=false
|
||||
Comment=
|
||||
Path=
|
||||
StartupNotify=false
|
||||
|
29
roles/custom/qg-base/files/qgm-login.sh
Normal file
29
roles/custom/qg-base/files/qgm-login.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
[[ "${UID}" -lt 10000 ]] && return
|
||||
|
||||
# Desktop Verzeichnis?
|
||||
DESKDIR=$(xdg-user-dir DESKTOP)
|
||||
echo $DESKDIR >> /tmp/login.log
|
||||
|
||||
# Wallpaper
|
||||
chmod u+x "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc"
|
||||
kwriteconfig5 --file "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" --group 'Containments' --group '1' --group 'Wallpaper' --group 'org.kde.image' --group 'General' --key 'Image' "/usr/local/share/qgm/qgm_background_wallpaper.jpg" || return
|
||||
# DiscoverButton löschen funzt noch nicht
|
||||
kwriteconfig5 --file "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" --group 'Containments' --group '2' --group 'Applets' --group '5' --group 'Configuration' --group 'General' --key 'launchers' "applications:systemsettings.desktop,preferred://filemanager,preferred://browser" || return
|
||||
|
||||
# Beamer-Icon
|
||||
rm -f $DESKDIR/qgm-beamersetup.desktop
|
||||
if [[ $(hostname -s) = lt-* || $(hostname -s) = r109-dell16 ]]; then
|
||||
cp /usr/share/applications/qgm-beamersetup.desktop $DESKDIR/qgm-beamersetup.desktop
|
||||
chmod 755 $DESKDIR/qgm-beamersetup.desktop
|
||||
fi
|
||||
|
||||
# Abmelden Knopf
|
||||
echo "cp /usr/share/applications/qgm-abmelden.desktop $DESKDIR/qgm-abmelden.desktop" >> /tmp/login.log
|
||||
cp /usr/share/applications/qgm-abmelden.desktop $DESKDIR/qgm-abmelden.desktop
|
||||
chmod 755 $DESKDIR/qgm-abmelden.desktop
|
||||
|
||||
# user-places löschen, wegen Schuljahreswechsel...
|
||||
echo "rm $HOME/.local/share/user-places.xbel" >> /tmp/login.log
|
||||
rm $HOME/.local/share/user-places.xbel
|
||||
|
||||
echo "Done" >> /tmp/login.log
|
Loading…
Add table
Add a link
Reference in a new issue