Compare commits
13 Commits
6bea9c2982
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6543cb93ad | ||
|
|
b0fe094994 | ||
|
|
b2312ca3a1 | ||
|
|
bd2f68f3ff | ||
|
|
068ec14d7d | ||
|
|
4e74623bc7 | ||
|
|
dd54fd19af | ||
|
|
b64f63ce0f | ||
|
|
5134ae5259 | ||
|
|
dff4c8af63 | ||
|
|
e7b59a8d4b | ||
|
|
a312e81659 | ||
|
|
c135f0e1c7 |
@@ -15,7 +15,8 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# download and run
|
# download and run
|
||||||
until wget https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint.sh -O /tmp/mint.sh
|
#until wget https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint.sh -O /tmp/mint.sh
|
||||||
|
until wget https://raw.githubusercontent.com/egabosh/linux-setups/refs/heads/main/mint/mint.sh -O /tmp/mint.sh
|
||||||
do
|
do
|
||||||
echo "mint.sh could not be downloaded trying again in 5 seconds"
|
echo "mint.sh could not be downloaded trying again in 5 seconds"
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|||||||
100
mint.sh
100
mint.sh
@@ -15,7 +15,20 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript
|
|||||||
|
|
||||||
whoami | grep -q ^root$ || read x
|
whoami | grep -q ^root$ || read x
|
||||||
|
|
||||||
set -x
|
## sudo without password
|
||||||
|
#echo '%adm ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/adm
|
||||||
|
#sudo chmod 640 /etc/sudoers.d/adm
|
||||||
|
|
||||||
|
## admin actions without password
|
||||||
|
#echo '/* Allow members of the adm group to execute any actions
|
||||||
|
# * without password authentication, similar to "sudo NOPASSWD:"
|
||||||
|
# */
|
||||||
|
#polkit.addRule(function(action, subject) {
|
||||||
|
# if (subject.isInGroup("adm")) {
|
||||||
|
# return polkit.Result.YES;
|
||||||
|
# }
|
||||||
|
#});' | sudo tee /etc/polkit-1/rules.d/adm.rules
|
||||||
|
#sudo chmod 644 /etc/polkit-1/rules.d/adm.rules
|
||||||
|
|
||||||
# Check for using DoHoT
|
# Check for using DoHoT
|
||||||
if [ -s /etc/dnscrypt-proxy/blocked-names.txt ]
|
if [ -s /etc/dnscrypt-proxy/blocked-names.txt ]
|
||||||
@@ -34,6 +47,15 @@ fi
|
|||||||
defaultuser=$(getent passwd 1000 | cut -d: -f1)
|
defaultuser=$(getent passwd 1000 | cut -d: -f1)
|
||||||
defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
||||||
|
|
||||||
|
# move data from element/signal flatpaks to default element/signal
|
||||||
|
if [ -d "$defaultuserhome/.var/app/org.signal.Signal/config/Signal" ]
|
||||||
|
then
|
||||||
|
[ -d "$defaultuserhome/.config/Signal" ] || rsync -av "$defaultuserhome"/.var/app/org.signal.Signal/config/Signal/ "$defaultuserhome"/.config/Signal/
|
||||||
|
fi
|
||||||
|
if [ -d "$defaultuserhome/.var/app/im.riot.Riot/config/Element" ]
|
||||||
|
then
|
||||||
|
[ -d "$defaultuserhome/.config/Element" ] || rsync -av "$defaultuserhome"/.var/app/im.riot.Riot/config/Element/ "$defaultuserhome"/.config/Element/
|
||||||
|
fi
|
||||||
|
|
||||||
# hostname
|
# hostname
|
||||||
if hostname | grep -q "^${defaultuser}-"
|
if hostname | grep -q "^${defaultuser}-"
|
||||||
@@ -83,7 +105,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
|
|||||||
# install ansible
|
# install ansible
|
||||||
if grep -q ^RELEASE=22 /etc/linuxmint/info
|
if grep -q ^RELEASE=22 /etc/linuxmint/info
|
||||||
then
|
then
|
||||||
sudo apt-get -y install ansible
|
sudo apt-get -y install ansible git
|
||||||
else
|
else
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip git
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip git
|
||||||
sudo pip install ansible
|
sudo pip install ansible
|
||||||
@@ -114,9 +136,9 @@ for playbook in debian.ansible.basics \
|
|||||||
debian.ansible.firewall \
|
debian.ansible.firewall \
|
||||||
debian.ansible.tornet.network \
|
debian.ansible.tornet.network \
|
||||||
debian.ansible.vnet.network \
|
debian.ansible.vnet.network \
|
||||||
debian.ansible.autoupdate \
|
debian.ansible.signal-desktop \
|
||||||
debian.ansible.signal-cli.client \
|
debian.ansible.element-desktop \
|
||||||
debian.ansible.dedyn.client
|
debian.ansible.autoupdate
|
||||||
do
|
do
|
||||||
sudo rm -rf ${playbook}
|
sudo rm -rf ${playbook}
|
||||||
git clone https://gitea.${mydomain}/olli/${playbook}.git
|
git clone https://gitea.${mydomain}/olli/${playbook}.git
|
||||||
@@ -142,9 +164,9 @@ sudo cat <<EOF >${defaultuserhome}/.xsessionrc
|
|||||||
# https://github.com/vector-im/element-web/issues/25776
|
# https://github.com/vector-im/element-web/issues/25776
|
||||||
rm -rf ~/.var/app/im.riot.Riot/config/Element/GPUCache
|
rm -rf ~/.var/app/im.riot.Riot/config/Element/GPUCache
|
||||||
|
|
||||||
# Backup only if autologin deactivated
|
# Backup #only if autologin deactivated
|
||||||
if ! grep -qr ^autologin-user= /etc/lightdm
|
#if ! grep -qr ^autologin-user= /etc/lightdm
|
||||||
then
|
#then
|
||||||
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
||||||
then
|
then
|
||||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
||||||
@@ -155,46 +177,54 @@ then
|
|||||||
then
|
then
|
||||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
||||||
fi
|
fi
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Autoupdate flatpak and cinnamon
|
# Autoupdate flatpak and cinnamon
|
||||||
dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true
|
dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true
|
||||||
dconf write /com/linuxmint/updates/auto-update-flatpaks true
|
dconf write /com/linuxmint/updates/auto-update-flatpaks true
|
||||||
|
|
||||||
# disable saving recent files
|
if ! [ -s ~/.initial-mint-config-by-xsessionrc ]
|
||||||
dconf write /org/cinnamon/desktop/privacy/remember-recent-files false
|
then
|
||||||
|
|
||||||
# Touchpad Scrolling
|
# disable saving recent files
|
||||||
dconf write /org/cinnamon/desktop/peripherals/touchpad/edge-scrolling-enabled true
|
dconf write /org/cinnamon/desktop/privacy/remember-recent-files false
|
||||||
dconf write /org/cinnamon/desktop/peripherals/touchpad/two-finger-scrolling-enabled false
|
|
||||||
|
|
||||||
# Terminus font in Terminal
|
# Touchpad Scrolling
|
||||||
#dconf write "/org/gnome/terminal$(dconf dump /org/gnome/terminal/ | egrep '/profiles:...*' | sed 's/\[//g ; s/\]//g; s/\/$//')/font" "'Terminus (TTF) Medium 12'"
|
dconf write /org/cinnamon/desktop/peripherals/touchpad/edge-scrolling-enabled true
|
||||||
|
dconf write /org/cinnamon/desktop/peripherals/touchpad/two-finger-scrolling-enabled false
|
||||||
|
|
||||||
# Winkey+l=Locksreen
|
# Terminal font Terminus
|
||||||
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/command '"cinnamon-screensaver-command --lock"'
|
termprofile=\$(dconf dump /org/gnome/terminal/legacy/profiles:/ | grep '^\\[:' | cut -d : -f2 | cut -d] -f1)
|
||||||
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/binding "['<Mod4>l']"
|
dconf write "/org/gnome/terminal/legacy/profiles:/:\${termprofile}/font" "'Terminus (TTF) Medium 12'"
|
||||||
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
|
# Winkey+l=Locksreen
|
||||||
#dconf write /org/cinnamon/desktop/interface/gtk-theme "'Mint-Y-Dark'"
|
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/command '"cinnamon-screensaver-command --lock"'
|
||||||
#dconf write /org/cinnamon/desktop/interface/icon-theme "'Mint-Y-Dark'"
|
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__']"
|
||||||
|
|
||||||
|
# dark theme
|
||||||
|
dconf write /org/cinnamon/desktop/interface/gtk-theme "'Mint-Y-Dark'"
|
||||||
|
dconf write /org/cinnamon/desktop/interface/icon-theme "'Mint-Y'"
|
||||||
|
dconf write /org/cinnamon/theme/name "'Mint-Y-Dark'"
|
||||||
|
dconf write /org/gnome/desktop/interface/icon-theme "'Mint-Y-Dark'"
|
||||||
|
dconf write /org/gnome/desktop/interface/gtk-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
|
||||||
|
|
||||||
# Nemo Filemanager Settings
|
# Traditional Cinnamon task bar (https://forums.linuxmint.com/viewtopic.php?t=321872)
|
||||||
dconf write /org/nemo/preferences/default-folder-viewer "'list-view'"
|
dconf write /org/cinnamon/panels-enabled "['1:0:bottom']"
|
||||||
dconf write /org/nemo/preferences/show-location-entry true
|
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']"
|
||||||
|
|
||||||
# Traditional Cinnamon task bar (https://forums.linuxmint.com/viewtopic.php?t=321872)
|
date >> ~/.initial-mint-config-by-xsessionrc
|
||||||
dconf write /org/cinnamon/panels-enabled "['1:0:bottom']"
|
|
||||||
dconf write /org/cinnamon/panels-height "['1:27']"
|
fi
|
||||||
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
|
[ -x ~/.xsessionrc.followup ] && ~/.xsessionrc.followup
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sudo chmod 700 "${defaultuserhome}"/.xsessionrc
|
sudo chmod 700 "${defaultuserhome}"/.xsessionrc
|
||||||
|
|||||||
23
mint.yml
23
mint.yml
@@ -52,8 +52,14 @@
|
|||||||
- mediathekview
|
- mediathekview
|
||||||
- audacious
|
- audacious
|
||||||
- guvcview
|
- guvcview
|
||||||
- easyeffects
|
|
||||||
- calf-plugins
|
- calf-plugins
|
||||||
|
- lame
|
||||||
|
- vorbis-tools
|
||||||
|
- fdkaac
|
||||||
|
- flac
|
||||||
|
- opus-tools
|
||||||
|
- wavpack
|
||||||
|
- musepack-tools
|
||||||
# retro
|
# retro
|
||||||
- dosbox
|
- dosbox
|
||||||
# brennen
|
# brennen
|
||||||
@@ -66,10 +72,18 @@
|
|||||||
- tinyproxy
|
- tinyproxy
|
||||||
- hardinfo
|
- hardinfo
|
||||||
- rpi-imager
|
- rpi-imager
|
||||||
|
- redshift-gtk
|
||||||
# virtualization
|
# virtualization
|
||||||
- virtualbox
|
- virtualbox
|
||||||
- virtualbox-qt
|
- virtualbox-qt
|
||||||
- virtualbox-guest-additions-iso
|
- virtualbox-guest-additions-iso
|
||||||
|
# screenshot
|
||||||
|
- flameshot
|
||||||
|
# groupware
|
||||||
|
- evolution
|
||||||
|
# nextcloud
|
||||||
|
- nextcloud-desktop
|
||||||
|
- nemo-nextcloud
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
install_recommends: no
|
install_recommends: no
|
||||||
|
|
||||||
@@ -77,17 +91,10 @@
|
|||||||
community.general.flatpak:
|
community.general.flatpak:
|
||||||
name:
|
name:
|
||||||
- org.gtk.Gtk3theme.Mint-Y-Dark
|
- org.gtk.Gtk3theme.Mint-Y-Dark
|
||||||
- org.signal.Signal
|
|
||||||
- com.nextcloud.desktopclient.nextcloud
|
|
||||||
- com.vscodium.codium
|
|
||||||
- org.ksnip.ksnip
|
|
||||||
- org.gnome.Evolution
|
|
||||||
- com.github.tchx84.Flatseal
|
- com.github.tchx84.Flatseal
|
||||||
- tv.kodi.Kodi
|
|
||||||
state: present
|
state: present
|
||||||
method: system
|
method: system
|
||||||
|
|
||||||
|
|
||||||
- name: mint-config-update
|
- name: mint-config-update
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/systemd/system/mint-config-update.service
|
path: /etc/systemd/system/mint-config-update.service
|
||||||
|
|||||||
Reference in New Issue
Block a user