debian.ansible.kodi/raspi.sh

123 lines
4.7 KiB
Bash
Raw Normal View History

2022-11-17 12:44:29 +01:00
#!/bin/bash
2022-10-17 16:08:03 +02:00
2024-04-02 16:39:20 +02:00
# https://www.raspberrypi.com/documentation/computers/configuration.html
2024-04-02 16:46:07 +02:00
raspi-config nonint do_ssh 0
2024-04-02 16:39:02 +02:00
raspi-config nonint do_boot_behaviour B1
raspi-config nonint do_wayland W1
2024-04-03 15:29:18 +02:00
raspi-config nonint do_change_locale de_DE.UTF-8
2024-04-02 16:39:02 +02:00
2024-04-10 15:59:05 +02:00
apt -y install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
2024-04-03 15:57:34 +02:00
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
2024-04-02 14:32:24 +02:00
cd /root
rm -f install.sh
wget https://gitea.ds9.dedyn.io/olli/debian.ansible.basics/raw/branch/main/install.sh
2022-11-17 13:42:01 +01:00
2024-04-02 14:32:24 +02:00
#export GITSRVURL="ssh://git@gitea.ds9.dedyn.io:333/olli"
2023-04-19 14:57:01 +02:00
2024-04-02 14:32:24 +02:00
export PLAYBOOKS="
debian.ansible.basics
gtc-rename
gtc-crypt
gtc-x11vnc
2024-04-05 11:58:21 +02:00
firefox
2024-10-02 15:37:16 +02:00
chromium
2024-04-02 14:32:24 +02:00
debian.ansible.firewall
debian.ansible.flatpak
debian.ansible.kodi
debian.ansible.dedyn.client
2024-04-05 09:16:19 +02:00
debian.ansible.docker
2024-10-02 15:37:16 +02:00
debian.ansible.autoupdate
debian.ansible.docker
debian.ansible.whoogle
2024-04-02 14:32:24 +02:00
"
bash install.sh
2022-10-17 16:08:03 +02:00
2022-10-20 17:55:04 +02:00
2024-04-05 17:19:36 +02:00
# Personal settings with .xsessionrc
sudo cat <<EOF >/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 "['<Mod4>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
2022-10-20 18:01:35 +02:00
chmod 700 /home/pi/.xsessionrc
2024-04-05 17:19:36 +02:00
chown pi /home/pi/.xsessionrc