mint.sh aktualisiert
This commit is contained in:
parent
f28cb07947
commit
3d52586eae
10
mint.sh
10
mint.sh
@ -53,7 +53,6 @@ sudo pip install ansible
|
|||||||
# install mscore fonts
|
# install mscore fonts
|
||||||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
|
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ttf-mscorefonts-installer
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ttf-mscorefonts-installer
|
||||||
|
|
||||||
# get upstream release vars (needed for docker ubuntu repos)
|
# get upstream release vars (needed for docker ubuntu repos)
|
||||||
. /etc/upstream-release/lsb-release
|
. /etc/upstream-release/lsb-release
|
||||||
|
|
||||||
@ -89,12 +88,13 @@ defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
|||||||
# Add User to docker group
|
# Add User to docker group
|
||||||
sudo usermod -aG docker ${$defaultuser}
|
sudo usermod -aG docker ${$defaultuser}
|
||||||
|
|
||||||
# Backup-Script only if autologin deactivated
|
# Personal settings with .xsessionrc
|
||||||
|
sudo cat <<EOF >${defaultuserhome}/.xsessionrc
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Backup only if autologin deactivated
|
||||||
if ! grep -qr ^autologin-user= /etc/lightdm
|
if ! grep -qr ^autologin-user= /etc/lightdm
|
||||||
then
|
then
|
||||||
cat <<EOF >${defaultuserhome}/.xsessionrc
|
|
||||||
#!/bin/bash
|
|
||||||
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
|
||||||
@ -105,6 +105,7 @@ elif [ -f ~/.scripts/backup-this-device.sh ]
|
|||||||
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
|
||||||
|
|
||||||
# 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
|
||||||
@ -137,4 +138,3 @@ EOF
|
|||||||
|
|
||||||
chmod 700 "${defaultuserhome}"/.xsessionrc
|
chmod 700 "${defaultuserhome}"/.xsessionrc
|
||||||
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
|
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user