Compare commits
11 Commits
a312e81659
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6543cb93ad | ||
|
|
b0fe094994 | ||
|
|
b2312ca3a1 | ||
|
|
bd2f68f3ff | ||
|
|
068ec14d7d | ||
|
|
4e74623bc7 | ||
|
|
dd54fd19af | ||
|
|
b64f63ce0f | ||
|
|
5134ae5259 | ||
|
|
dff4c8af63 | ||
|
|
e7b59a8d4b |
@@ -15,7 +15,8 @@ then
|
||||
fi
|
||||
|
||||
# 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
|
||||
echo "mint.sh could not be downloaded trying again in 5 seconds"
|
||||
sleep 5
|
||||
|
||||
38
mint.sh
38
mint.sh
@@ -15,7 +15,20 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript
|
||||
|
||||
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
|
||||
if [ -s /etc/dnscrypt-proxy/blocked-names.txt ]
|
||||
@@ -34,6 +47,15 @@ fi
|
||||
defaultuser=$(getent passwd 1000 | cut -d: -f1)
|
||||
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
|
||||
if hostname | grep -q "^${defaultuser}-"
|
||||
@@ -114,9 +136,9 @@ for playbook in debian.ansible.basics \
|
||||
debian.ansible.firewall \
|
||||
debian.ansible.tornet.network \
|
||||
debian.ansible.vnet.network \
|
||||
debian.ansible.autoupdate \
|
||||
debian.ansible.signal-cli.client \
|
||||
debian.ansible.dedyn.client
|
||||
debian.ansible.signal-desktop \
|
||||
debian.ansible.element-desktop \
|
||||
debian.ansible.autoupdate
|
||||
do
|
||||
sudo rm -rf ${playbook}
|
||||
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
|
||||
rm -rf ~/.var/app/im.riot.Riot/config/Element/GPUCache
|
||||
|
||||
# Backup only if autologin deactivated
|
||||
if ! grep -qr ^autologin-user= /etc/lightdm
|
||||
then
|
||||
# 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
|
||||
@@ -155,7 +177,7 @@ then
|
||||
then
|
||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
||||
fi
|
||||
fi
|
||||
#fi
|
||||
|
||||
# Autoupdate flatpak and cinnamon
|
||||
dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true
|
||||
|
||||
24
mint.yml
24
mint.yml
@@ -52,8 +52,14 @@
|
||||
- mediathekview
|
||||
- audacious
|
||||
- guvcview
|
||||
- easyeffects
|
||||
- calf-plugins
|
||||
- lame
|
||||
- vorbis-tools
|
||||
- fdkaac
|
||||
- flac
|
||||
- opus-tools
|
||||
- wavpack
|
||||
- musepack-tools
|
||||
# retro
|
||||
- dosbox
|
||||
# brennen
|
||||
@@ -66,10 +72,18 @@
|
||||
- tinyproxy
|
||||
- hardinfo
|
||||
- rpi-imager
|
||||
- redshift-gtk
|
||||
# virtualization
|
||||
- virtualbox
|
||||
- virtualbox-qt
|
||||
- virtualbox-guest-additions-iso
|
||||
# screenshot
|
||||
- flameshot
|
||||
# groupware
|
||||
- evolution
|
||||
# nextcloud
|
||||
- nextcloud-desktop
|
||||
- nemo-nextcloud
|
||||
update_cache: yes
|
||||
install_recommends: no
|
||||
|
||||
@@ -77,18 +91,10 @@
|
||||
community.general.flatpak:
|
||||
name:
|
||||
- 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
|
||||
- tv.kodi.Kodi
|
||||
- im.riot.Riot
|
||||
state: present
|
||||
method: system
|
||||
|
||||
|
||||
- name: mint-config-update
|
||||
blockinfile:
|
||||
path: /etc/systemd/system/mint-config-update.service
|
||||
|
||||
Reference in New Issue
Block a user