46 lines
2.1 KiB
Bash
46 lines
2.1 KiB
Bash
#!/bin/bash -xe
|
|
|
|
# systemupdate
|
|
sudo apt-get update
|
|
sudo apt-get -y dist-upgrade
|
|
|
|
# install ansible
|
|
sudo apt-get -y install python3-pip git
|
|
sudo pip install ansible
|
|
|
|
# install mscore fonts
|
|
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
|
|
sudo apt-get install ttf-mscorefonts-installer
|
|
|
|
# run ansible playbooks
|
|
for playbook in debian.ansible.basics debian.ansible.docker debian.ansible.firewall debian.ansible.tornet.network debian.ansible.vnet.network firefox chromium gtc-rename gtc-crypt
|
|
do
|
|
git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git
|
|
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
|
|
sudo rm -rf ${playbook}
|
|
done
|
|
|
|
git clone https://gitea.ds9.dedyn.io/olli/linux-mint.git
|
|
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) linux-mint/mint.yml
|
|
sudo rm -rf linux-mint
|
|
|
|
# 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
|
|
|
|
# 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'"
|