#!/bin/bash # https://www.raspberrypi.com/documentation/computers/configuration.html raspi-config nonint do_ssh 0 raspi-config nonint do_boot_behaviour B1 raspi-config nonint do_wayland W1 raspi-config nonint do_change_locale de_DE.UTF-8 apt -y install flatpak flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo echo 'LANG=de_DE.UTF-8 LANGUAGE=de_DE LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" ' >/etc/default/locale update-locale cd /root rm -f install.sh wget https://gitea.ds9.dedyn.io/olli/debian.ansible.basics/raw/branch/main/install.sh #export GITSRVURL="ssh://git@gitea.ds9.dedyn.io:333/olli" export PLAYBOOKS=" debian.ansible.basics gtc-rename gtc-crypt gtc-x11vnc firefox chromium debian.ansible.firewall debian.ansible.flatpak debian.ansible.kodi debian.ansible.dedyn.client debian.ansible.docker debian.ansible.autoupdate debian.ansible.docker debian.ansible.whoogle " bash install.sh # Personal settings with .xsessionrc sudo cat </home/pi/.xsessionrc #!/bin/bash # Clean GPU Cache of Element # https://github.com/vector-im/element-web/issues/25776 rm -rf ~/.var/app/im.riot.Riot/config/Element/GPUCache # Backup only if autologin deactivated if ! grep -qr ^autologin-user= /etc/lightdm then if [ -f ~/Nextcloud/scripts/backup-this-device.sh ] then gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh elif [ -f ~/scripts/backup-this-device.sh ] then gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/scripts/backup-this-device.sh elif [ -f ~/.scripts/backup-this-device.sh ] then gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh fi fi # Autoupdate flatpak and cinnamon dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true dconf write /com/linuxmint/updates/auto-update-flatpaks true # disable saving recent files dconf write /org/cinnamon/desktop/privacy/remember-recent-files false # Touchpad Scrolling dconf write /org/cinnamon/desktop/peripherals/touchpad/edge-scrolling-enabled true dconf write /org/cinnamon/desktop/peripherals/touchpad/two-finger-scrolling-enabled false # Terminus font in Terminal #dconf write "/org/gnome/terminal$(dconf dump /org/gnome/terminal/ | egrep '/profiles:...*' | sed 's/\[//g ; s/\]//g; s/\/$//')/font" "'Terminus (TTF) Medium 12'" # Winkey+l=Locksreen dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/command '"cinnamon-screensaver-command --lock"' dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/binding "['l']" dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/name '"Lockscreen"' dconf write /org/cinnamon/desktop/keybindings/custom-list "['__dummy__'$(dconf dump / 2>&1 | egrep '^\[org/cinnamon/desktop/keybindings/custom-keybindings/' | cut -d/ -f 6 | cut -d] -f1 | perl -pe "s/(.+)\n/, '\$1'/g")]" # dark theme #dconf write /org/cinnamon/desktop/interface/gtk-theme "'Mint-Y-Dark'" #dconf write /org/cinnamon/desktop/interface/icon-theme "'Mint-Y-Dark'" # Nemo Filemanager Settings dconf write /org/nemo/preferences/default-folder-viewer "'list-view'" dconf write /org/nemo/preferences/show-location-entry true # Traditional Cinnamon task bar (https://forums.linuxmint.com/viewtopic.php?t=321872) dconf write /org/cinnamon/panels-enabled "['1:0:bottom']" dconf write /org/cinnamon/panels-height "['1:27']" dconf write /org/cinnamon/panel-zone-icon-sizes '[{"left":0,"center":0,"right":0,"panelId":1}]' #dconf write /org/cinnamon/enabled-applets "['panel1:left:0:menu@cinnamon.org','panel1:left:1:show-desktop@cinnamon.org','panel1:left:2:panel-launchers@cinnamon.org','panel1:left:3:window-list@cinnamon.org','panel1:right:0:systray@cinnamon.org','panel1:right:1:xapp-status@cinnamon.org','panel1:right:2:keyboard@cinnamon.org','panel1:right:3:notifications@cinnamon.org','panel1:right:4:printers@cinnamon.org','panel1:right:5:removable-drives@cinnamon.org','panel1:right:6:user@cinnamon.org','panel1:right:7:network@cinnamon.org','panel1:right:8:sound@cinnamon.org','panel1:right:9:power@cinnamon.org','panel1:right:10:calendar@cinnamon.org']" dconf write /org/cinnamon/theme/name "'Linux Mint'" #cinnamon --replace > /dev/null 2>&1 & disown [ -x ~/.xsessionrc.followup ] && ~/.xsessionrc.followup gnome-terminal --hide-menubar --title=share.sh --maximize -- ~/share.sh EOF chmod 700 /home/pi/.xsessionrc chown pi /home/pi/.xsessionrc