74 lines
2.6 KiB
Bash
74 lines
2.6 KiB
Bash
#!/bin/bash -e
|
|
|
|
echo "!!! ACHTUNG !!!
|
|
|
|
Dieses Skript richtet Linux Mint nach bestimmten Vorgaben (größtenteils über Ansible Playbooks) ein und installiert neue Software
|
|
Dies setzt auch die Eingabe des sudo/root-Passwortes voraus.
|
|
|
|
Der Code kann hier eingesehen werden:
|
|
https://gitea.ds9.dedyn.io/olli/linux-mint
|
|
|
|
Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript wirklich von der oben erwähnten Quelle stammt und Vertrauen besteht.
|
|
"
|
|
|
|
read x
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# 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 -y install ttf-mscorefonts-installer
|
|
|
|
# run ansible playbooks
|
|
for playbook in debian.ansible.basics \
|
|
gtc-rename \
|
|
gtc-crypt \
|
|
linux-mint \
|
|
firefox \
|
|
chromium \
|
|
debian.ansible.docker \
|
|
debian.ansible.firewall \
|
|
debian.ansible.tornet.network \
|
|
debian.ansible.vnet.network
|
|
do
|
|
sudo rm -rf ${playbook}
|
|
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
|
|
|
|
sudo usermod -aG docker $(whoami)
|
|
|
|
# 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")]"
|
|
|
|
# Nemo Filemanager Settings
|
|
dconf write /org/nemo/preferences/default-folder-viewer "'list-view'"
|
|
dconf write /org/nemo/preferences/show-location-entry true
|
|
|
|
# dark theme
|
|
#dconf write /org/cinnamon/desktop/interface/gtk-theme "'Mint-Y-Dark'"
|
|
#dconf write /org/cinnamon/desktop/interface/icon-theme "'Mint-Y-Dark'"
|